The Central Idea

Suppose

\[ z=f(x,y). \]

The output \(z\) may change when \(x\) changes, when \(y\) changes, or when both change.

A partial derivative asks what happens when we change only one input at a time.

To differentiate with respect to \(x\), treat \(y\) as a constant. To differentiate with respect to \(y\), treat \(x\) as a constant.

From One Variable to Several Variables

In one-variable calculus,

\[ y=f(x) \]

has one input direction, so the derivative

\[ f'(x) \]

measures the local rate of change along that direction.

For

\[ z=f(x,y), \]

there are at least two independent input directions, so we need separate derivatives for those directions.

The Partial Derivative with Respect to \(x\)

The partial derivative of \(f\) with respect to \(x\) is written

\[ \boxed{f_x(x,y)} \]

or

\[ \boxed{\frac{\partial f}{\partial x}}. \]

It measures how \(f\) changes as \(x\) changes while \(y\) is held fixed.

The Partial Derivative with Respect to \(y\)

The partial derivative with respect to \(y\) is written

\[ \boxed{f_y(x,y)} \]

or

\[ \boxed{\frac{\partial f}{\partial y}}. \]

It measures how \(f\) changes as \(y\) changes while \(x\) is held fixed.

Why the Symbol \(\partial\) Appears

Ordinary derivatives often use

\[ \frac{dy}{dx}. \]

Partial derivatives use the rounded symbol

\[ \partial \]

to emphasize that we are measuring only one part of a multivariable dependence.

Thus,

\[ \frac{\partial z}{\partial x} \]

means the partial change of \(z\) with respect to \(x\).

Operational Rule

To compute

\[ \frac{\partial f}{\partial x}, \]

treat every variable other than \(x\) as a constant.

To compute

\[ \frac{\partial f}{\partial y}, \]

treat every variable other than \(y\) as a constant.

This is the main computational habit of partial differentiation.

Example: A Simple Polynomial

Let

\[ f(x,y)=x^2+3y. \]

Differentiate with respect to \(x\). Since \(y\) is treated as constant,

\[ f_x(x,y)=2x. \]

Differentiate with respect to \(y\). Since \(x\) is treated as constant,

\[ f_y(x,y)=3. \]

Therefore,

\[ \boxed{f_x=2x,\qquad f_y=3}. \]

Example: Products of Variables

Consider

\[ f(x,y)=x^2y^3. \]

With respect to \(x\), \(y^3\) behaves like a constant coefficient:

\[ f_x=2xy^3. \]

With respect to \(y\), \(x^2\) behaves like a constant coefficient:

\[ f_y=3x^2y^2. \]

Thus,

\[ \boxed{f_x=2xy^3,\qquad f_y=3x^2y^2}. \]

Terms Independent of the Active Variable Disappear

Suppose

\[ f(x,y)=4x^3-7y^2+5. \]

When differentiating with respect to \(x\), both \(-7y^2\) and \(5\) are constants:

\[ f_x=12x^2. \]

When differentiating with respect to \(y\), both \(4x^3\) and \(5\) are constants:

\[ f_y=-14y. \]

Example: Several Terms

Let

\[ f(x,y)=3x^4y^2-5x^2y+7y^3-9. \]

With respect to \(x\),

\[ \boxed{f_x=12x^3y^2-10xy}. \]

With respect to \(y\),

\[ \boxed{f_y=6x^4y-5x^2+21y^2}. \]

Partial Derivatives Are Functions

A partial derivative is usually not just one number. It is another function.

If

\[ f(x,y)=x^2y+y^2, \]

then

\[ f_x(x,y)=2xy \]

and

\[ f_y(x,y)=x^2+2y. \]

These functions tell us the \(x\)- and \(y\)-rates of change at every point where the derivatives exist.

Evaluating a Partial Derivative at a Point

Suppose

\[ f(x,y)=x^2y+y^2. \]

We found

\[ f_x=2xy. \]

At the point \((2,3)\),

\[ f_x(2,3)=2(2)(3)=12. \]

So at \((2,3)\), the function changes at an instantaneous rate of \(12\) units of output per unit increase in \(x\), with \(y\) held fixed.

Evaluating the Other Direction

For the same function,

\[ f_y=x^2+2y. \]

At \((2,3)\),

\[ f_y(2,3)=2^2+2(3)=10. \]

The local rate in the \(y\)-direction is therefore \(10\).

Limit Definition of a Partial Derivative

The partial derivative with respect to \(x\) can be defined by

\[ \boxed{ f_x(a,b) = \lim_{h\to0} \frac{f(a+h,b)-f(a,b)}{h} }. \]

Notice that only the first coordinate changes.

Similarly,

\[ \boxed{ f_y(a,b) = \lim_{h\to0} \frac{f(a,b+h)-f(a,b)}{h} }. \]

Here only the second coordinate changes.

Partial Derivatives Are Ordinary Derivatives Along Slices

Fix \(y=b\). Then

\[ g(x)=f(x,b) \]

is an ordinary one-variable function.

Its derivative is

\[ g'(a)=f_x(a,b). \]

Likewise, fixing \(x=a\) gives

\[ h(y)=f(a,y), \]

with

\[ h'(b)=f_y(a,b). \]

Geometric Meaning

For a surface

\[ z=f(x,y), \]

fixing \(y=b\) slices the surface with the vertical plane \(y=b\).

The slope of that cross-sectional curve at \((a,b,f(a,b))\) is

\[ f_x(a,b). \]

Similarly, fixing \(x=a\) produces a cross section whose slope is

\[ f_y(a,b). \]

Two Coordinate Slopes at One Point

A surface generally has more than one meaningful slope at a point.

At \((a,b)\),

\[ f_x(a,b) \]

measures slope in the positive \(x\)-direction, while

\[ f_y(a,b) \]

measures slope in the positive \(y\)-direction.

Later, directional derivatives will extend this idea to arbitrary directions.

Example: A Paraboloid

Let

\[ f(x,y)=x^2+y^2. \]

Then

\[ f_x=2x,\qquad f_y=2y. \]

At \((1,2)\),

\[ f_x(1,2)=2 \]

and

\[ f_y(1,2)=4. \]

The surface rises more rapidly in the positive \(y\)-direction than in the positive \(x\)-direction at that point.

Partial Derivatives with Exponentials

Consider

\[ f(x,y)=e^{xy}. \]

With respect to \(x\), use the chain rule:

\[ f_x=ye^{xy}. \]

With respect to \(y\),

\[ f_y=xe^{xy}. \]

Therefore,

\[ \boxed{f_x=ye^{xy},\qquad f_y=xe^{xy}}. \]

Partial Derivatives with Logarithms

Let

\[ f(x,y)=\ln(x^2+y^2). \]

Using the chain rule,

\[ f_x= \frac{2x}{x^2+y^2}, \]

and

\[ f_y= \frac{2y}{x^2+y^2}. \]

These formulas are valid where

\[ x^2+y^2>0. \]

Partial Derivatives with Trigonometric Functions

Consider

\[ f(x,y)=\sin(xy)+\cos y. \]

With respect to \(x\),

\[ f_x=y\cos(xy). \]

With respect to \(y\),

\[ f_y=x\cos(xy)-\sin y. \]

Product Rule in Partial Differentiation

The ordinary derivative rules still apply.

If

\[ f(x,y)=x^2e^y, \]

then with respect to \(x\),

\[ f_x=2xe^y, \]

because \(e^y\) is constant with respect to \(x\).

With respect to \(y\),

\[ f_y=x^2e^y. \]

When the Product Rule Is Actually Needed

Consider

\[ f(x,y)=x\sin(xy). \]

With respect to \(x\), both factors depend on \(x\), so the product rule is needed:

\[ f_x = \sin(xy)+xy\cos(xy). \]

With respect to \(y\), the factor \(x\) is constant:

\[ f_y=x^2\cos(xy). \]

Quotient Rule in Partial Differentiation

Let

\[ f(x,y)=\frac{x+y}{x-y}. \]

With respect to \(x\),

\[ f_x = \frac{(1)(x-y)-(x+y)(1)}{(x-y)^2} = \frac{-2y}{(x-y)^2}. \]

With respect to \(y\),

\[ f_y = \frac{(1)(x-y)-(x+y)(-1)}{(x-y)^2} = \frac{2x}{(x-y)^2}. \]

Chain Rule in Partial Differentiation

If

\[ f(x,y)=\sqrt{1+x^2+y^2}, \]

then

\[ f_x = \frac{x}{\sqrt{1+x^2+y^2}} \]

and

\[ f_y = \frac{y}{\sqrt{1+x^2+y^2}}. \]

The same chain-rule logic from one-variable calculus applies separately in each active variable.

Functions of Three Variables

Partial differentiation extends directly to more inputs.

If

\[ w=f(x,y,z), \]

then the first partial derivatives are

\[ f_x,\qquad f_y,\qquad f_z. \]

Each one varies one coordinate while holding the other two fixed.

Example: Three Variables

Let

\[ f(x,y,z)=x^2yz^3+4xy-z. \]

Then

\[ \boxed{f_x=2xyz^3+4y}, \] \[ \boxed{f_y=x^2z^3+4x}, \]

and

\[ \boxed{f_z=3x^2yz^2-1}. \]

First-Order Partial Derivatives

The derivatives

\[ f_x,\qquad f_y \]

are called first-order partial derivatives.

They measure first-order sensitivity of the output to each coordinate direction.

Second-Order Partial Derivatives

Partial derivatives can themselves be differentiated.

Starting from

\[ f_x, \]

we may differentiate again with respect to \(x\):

\[ f_{xx}. \]

Or we may differentiate \(f_x\) with respect to \(y\):

\[ f_{xy}. \]

The Four Second Partials in Two Variables

For a sufficiently differentiable function \(f(x,y)\), the four standard second-order partial derivatives are

\[ \boxed{ f_{xx},\qquad f_{xy},\qquad f_{yx},\qquad f_{yy} }. \]

The repeated-index derivatives \(f_{xx}\) and \(f_{yy}\) are called pure second partials.

The derivatives \(f_{xy}\) and \(f_{yx}\) are called mixed partials.

Notation for Second Partials

Common equivalent notations include

\[ f_{xx} = \frac{\partial^2 f}{\partial x^2}, \] \[ f_{yy} = \frac{\partial^2 f}{\partial y^2}, \]

and

\[ f_{xy} = \frac{\partial}{\partial y} \left( \frac{\partial f}{\partial x} \right). \]

Example: Second Partials

Let

\[ f(x,y)=x^3y^2+2xy. \]

First derivatives:

\[ f_x=3x^2y^2+2y, \] \[ f_y=2x^3y+2x. \]

Second derivatives:

\[ f_{xx}=6xy^2, \] \[ f_{xy}=6x^2y+2, \] \[ f_{yx}=6x^2y+2, \] \[ f_{yy}=2x^3. \]

Mixed Partials Often Agree

In the previous example,

\[ f_{xy}=f_{yx}. \]

For many well-behaved functions, the order of mixed partial differentiation does not matter.

A standard sufficient condition is that the relevant second partial derivatives are continuous near the point.

Clairaut's Theorem

Under standard smoothness conditions,

\[ \boxed{f_{xy}=f_{yx}}. \]

This result is commonly called Clairaut's theorem, or the equality of mixed partials.

The equality is extremely useful, but it should not be treated as an automatic identity for every imaginable function.

Second Partials as Curvature Information

The derivative

\[ f_{xx} \]

describes how the \(x\)-direction slope itself changes as \(x\) changes.

Likewise,

\[ f_{yy} \]

describes how the \(y\)-direction slope changes as \(y\) changes.

These ideas will later contribute to multivariable curvature and optimization tests.

Mixed Partials as Interaction Information

The mixed partial

\[ f_{xy} \]

asks how the \(x\)-direction rate changes when \(y\) changes.

In applied settings, this can measure interaction between inputs.

A nonzero mixed partial indicates that the effect of one input may depend on the level of another.

Example: Economic Interpretation

Suppose

\[ P(x,y) \]

represents profit from two production inputs.

Then

\[ P_x \]

measures the marginal change in profit when \(x\) increases while \(y\) remains fixed.

Similarly,

\[ P_y \]

measures the marginal change associated with \(y\).

Example: Temperature Field

Suppose

\[ T(x,y) \]

gives temperature at a location in a flat region.

Then

\[ T_x \]

measures the local east-west temperature rate of change if the \(x\)-axis is east-west, while

\[ T_y \]

measures the local north-south rate of change.

Example: Height Field

If

\[ h(x,y) \]

gives terrain elevation, then

\[ h_x(a,b) \]

describes the instantaneous uphill or downhill slope in the \(x\)-direction at \((a,b)\).

The sign tells whether elevation increases or decreases in that direction.

Interpreting the Sign

At a point:

The same interpretation applies to \(f_y\).

Units of Partial Derivatives

Partial derivatives carry units.

If \(f\) is measured in dollars and \(x\) is measured in units of product, then

\[ f_x \]

has units

\[ \frac{\text{dollars}}{\text{unit of product}}. \]

Dimensional interpretation remains just as important in multivariable calculus as in one-variable calculus.

Holding Other Variables Fixed Is a Modeling Assumption

The phrase “hold the other variables fixed” is mathematically precise but may represent an idealized experiment in an application.

Real variables can be physically linked. A partial derivative isolates one coordinate effect even when a real system may later require a more complete coupled analysis.

Partial Derivatives and Level Curves

The previous lesson introduced level curves

\[ f(x,y)=c. \]

Partial derivatives describe how the function changes as we cross through those levels along the coordinate directions.

This connection will become much stronger when we introduce the gradient.

Partial Derivatives Do Not Give Every Direction

The pair

\[ f_x,\qquad f_y \]

measures only the coordinate directions.

A surface can also be approached diagonally or along any other direction in the input plane.

Directional derivatives will generalize the coordinate-direction rates.

Common Error: Differentiating Every Variable

Consider

\[ f(x,y)=x^2y^3. \]

For \(f_x\), \(y^3\) is held constant:

\[ \boxed{f_x=2xy^3}. \]

It is incorrect to differentiate both \(x^2\) and \(y^3\) just because both appear in the expression.

Common Error: Dropping Constant Factors

If

\[ f(x,y)=yx^4, \]

then with respect to \(x\),

\[ f_x=4yx^3. \]

The factor \(y\) is constant with respect to \(x\), but it does not vanish. It stays as a constant multiplier.

Common Error: Keeping Terms That Should Vanish

For

\[ f(x,y)=x^3+5y^2, \]

the \(x\)-partial is

\[ f_x=3x^2, \]

because \(5y^2\) is constant with respect to \(x\).

Common Error: Misreading Mixed-Partial Order

In the notation

\[ f_{xy}, \]

one common convention is: differentiate first with respect to \(x\), then differentiate the result with respect to \(y\).

The operator notation removes ambiguity:

\[ f_{xy} = \frac{\partial}{\partial y} \left( \frac{\partial f}{\partial x} \right). \]

Common Error: Assuming Zero Partial Means No Change at All

If

\[ f_x(a,b)=0, \]

the function has zero instantaneous rate in the \(x\)-direction at that point.

It may still change in the \(y\)-direction or in another direction.

One zero partial does not imply the function is locally constant.

Common Error: Ignoring the Domain

A derivative formula is meaningful only where the original function and the relevant derivative are defined.

For

\[ f(x,y)=\ln(x^2+y^2), \]

the point \((0,0)\) is not in the domain, so partial derivatives there are not available.

A Reliable Procedure

  1. Identify the variable with respect to which you are differentiating.
  2. Treat all other independent variables as constants.
  3. Apply ordinary derivative rules to the active variable.
  4. Simplify the resulting expression.
  5. Repeat separately for any other requested partial derivatives.
  6. Check the domain of the original function and derivative.
  7. Evaluate at a point only after obtaining the derivative formula unless a direct limit is required.

Example: Full First-Partial Workflow

Let

\[ f(x,y)=x^3y^2+4x\sin y+e^{xy}. \]

With respect to \(x\),

\[ f_x = 3x^2y^2+4\sin y+ye^{xy}. \]

With respect to \(y\),

\[ f_y = 2x^3y+4x\cos y+xe^{xy}. \]

Therefore,

\[ \boxed{ f_x=3x^2y^2+4\sin y+ye^{xy} } \]

and

\[ \boxed{ f_y=2x^3y+4x\cos y+xe^{xy} }. \]

Example: Full Second-Partial Workflow

Let

\[ f(x,y)=x^2y^3+3xy. \]

First partials:

\[ f_x=2xy^3+3y, \] \[ f_y=3x^2y^2+3x. \]

Differentiate again:

\[ f_{xx}=2y^3, \] \[ f_{xy}=6xy^2+3, \] \[ f_{yx}=6xy^2+3, \] \[ f_{yy}=6x^2y. \]

Practice 1: Basic Polynomial

Find \(f_x\) and \(f_y\) for

\[ f(x,y)=x^3+4x^2y-5y^2. \]

Practice 2: Product of Powers

Find \(f_x\) and \(f_y\) for

\[ f(x,y)=x^4y^5. \]

Practice 3: Evaluate at a Point

For

\[ f(x,y)=x^2y+3y^2, \]

find \(f_x(2,1)\) and \(f_y(2,1)\).

Practice 4: Exponential

Find the first partial derivatives of

\[ f(x,y)=e^{x+2y}. \]

Practice 5: Trigonometric Function

Find \(f_x\) and \(f_y\) for

\[ f(x,y)=x\cos(xy). \]

Practice 6: Rational Function

Find \(f_x\) and \(f_y\) for

\[ f(x,y)=\frac{x}{x+y}. \]

Practice 7: Three Variables

For

\[ f(x,y,z)=x^2yz+xy^2z^3, \]

find \(f_x\), \(f_y\), and \(f_z\).

Practice 8: Second Partials

For

\[ f(x,y)=x^2y^2+3x^3, \]

find \(f_{xx}\), \(f_{xy}\), \(f_{yx}\), and \(f_{yy}\).

Practice 9: Interpretation

Suppose \(T(x,y)\) is temperature in degrees Celsius and \(x\) and \(y\) are measured in kilometers. Interpret

\[ T_x(4,2)=-3. \]

Practice 10: Identify the Error

A student differentiates

\[ f(x,y)=x^2y^3 \]

with respect to \(x\) and writes

\[ f_x=6xy^2. \]

Explain the error and give the correct derivative.

Practice Answers

Practice 1

\[ \boxed{f_x=3x^2+8xy} \] \[ \boxed{f_y=4x^2-10y}. \]

Practice 2

\[ \boxed{f_x=4x^3y^5} \] \[ \boxed{f_y=5x^4y^4}. \]

Practice 3

First,

\[ f_x=2xy, \] \[ f_y=x^2+6y. \]

Therefore,

\[ \boxed{f_x(2,1)=4} \]

and

\[ \boxed{f_y(2,1)=10}. \]

Practice 4

\[ \boxed{f_x=e^{x+2y}} \] \[ \boxed{f_y=2e^{x+2y}}. \]

Practice 5

With respect to \(x\), use the product rule:

\[ \boxed{ f_x=\cos(xy)-xy\sin(xy) }. \]

With respect to \(y\),

\[ \boxed{ f_y=-x^2\sin(xy) }. \]

Practice 6

Using the quotient rule,

\[ \boxed{ f_x=\frac{y}{(x+y)^2} } \]

and

\[ \boxed{ f_y=-\frac{x}{(x+y)^2} }. \]

Practice 7

\[ \boxed{ f_x=2xyz+y^2z^3 } \] \[ \boxed{ f_y=x^2z+2xyz^3 } \] \[ \boxed{ f_z=x^2y+3xy^2z^2 }. \]

Practice 8

First partials:

\[ f_x=2xy^2+9x^2, \] \[ f_y=2x^2y. \]

Therefore,

\[ \boxed{f_{xx}=2y^2+18x}, \] \[ \boxed{f_{xy}=4xy}, \] \[ \boxed{f_{yx}=4xy}, \] \[ \boxed{f_{yy}=2x^2}. \]

Practice 9

Near the point \((4,2)\), increasing \(x\) by one kilometer while holding \(y\) fixed decreases temperature at an instantaneous rate of approximately \(3\) degrees Celsius per kilometer.

Practice 10

When differentiating with respect to \(x\), the factor \(y^3\) must be treated as a constant. Therefore,

\[ \boxed{f_x=2xy^3}. \]

The incorrect result differentiated the \(y\)-factor even though \(y\) was supposed to remain fixed.

What to Remember

Partial differentiation extends ordinary differentiation to functions with several independent variables.

The essential computational rule is

\[ \boxed{ \text{differentiate one variable, hold the others fixed} }. \]

Where We Go Next

Partial derivatives give rates of change along the coordinate axes, but multivariable functions can be approached in infinitely many directions.

The next lesson, Directional Derivatives, extends the idea of a partial derivative from the \(x\)- and \(y\)-directions to any chosen direction in the input space.