From a First Partial to a Second Partial
A first partial derivative measures how a function changes as one coordinate varies while the other coordinates are held fixed. A pure second partial derivative repeats that operation in the same coordinate. For example, first differentiate with respect to \(x\), then differentiate the result with respect to \(x\) again.
This repeated process records how the rate of change in one coordinate varies as that same coordinate changes. It is a calculation with a precise condition: the first partial must itself be differentiable with respect to the chosen variable at the point under consideration.
More explicitly, at a point \((x,y)\), the definition of \(f_{xx}\) is the one-variable derivative of the function \(f_x\), with \(y\) fixed:
provided this limit exists. Similarly, \(f_{yy}(x,y)\) is obtained from the difference quotient for \(f_y\) as \(y\) changes while \(x\) stays fixed. The subscript is a reminder of the variable used on that differentiation pass.
How Powers Change on the Second Pass
For a nonnegative integer \(n\), differentiating \(x^n\) once gives \(n x^{n-1}\) when \(n\geq 1\). Differentiating this result with respect to \(x\) again gives \(n(n-1)x^{n-2}\) when \(n\geq 2\). When \(n=0\) or \(n=1\), the second derivative is zero.
A factor involving only the other coordinate is constant during both differentiations. Thus, if \(c\) is independent of \(x\), then differentiating \(c x^n\) twice with respect to \(x\) leaves \(c\) as a factor. For example, \(y^3\) is independent of \(x\), so it remains unchanged when the differentiation variable is \(x\).
Worked Example: Finding \(f_{xx}\) Term by Term
Worked Example: Finding \(f_{xx}\) Term by Term
Let \(f(x,y)=3x^4y^2-5x^2y+7y^3+4x\). Find \(f_{xx}\).
First differentiate each term with respect to \(x\). The factors \(y^2\), \(y\), and \(y^3\) do not depend on \(x\), so they stay in place:
Now differentiate this first partial with respect to \(x\) again. In \(12x^3y^2\), the factor \(y^2\) remains unchanged; in \(-10xy\), the factor \(y\) remains unchanged; and the constant \(4\) differentiates to zero:
To check, differentiate the displayed first partial \(f_x=12x^3y^2-10xy+4\) with respect to \(x\): its terms give \(36x^2y^2\), \(-10y\), and \(0\), respectively. This reproduces \(f_{xx}=36x^2y^2-10y\).
Why the Repeated Power Rule Works
The reason a factor in the other coordinate stays unchanged is built into the definition of a partial derivative: only one coordinate varies at a time. Fix a value \(y=y_0\), and consider the one-variable function \(g(x)=f(x,y_0)\). By the definition of the first partial, \(g'(x)=f_x(x,y_0)\) wherever that derivative exists. If \(g'\) is differentiable, then differentiating it once more gives \(g''(x)=f_{xx}(x,y_0)\). The calculation of a pure second partial is therefore an ordinary second derivative of a coordinate slice.
For a monomial \(c x^n y^m\), where \(c\) is constant and \(m,n\) are nonnegative integers, fixing \(y\) makes \(c y^m\) a constant. The first differentiation gives \(c y^m n x^{n-1}\) for \(n\geq 1\); differentiating again gives \(c y^m n(n-1)x^{n-2}\) for \(n\geq 2\). If \(n=0\), the term is constant in \(x\), and if \(n=1\), its first derivative is constant in \(x\). In either of those cases, the second derivative is zero.
This rule applies term by term because partial differentiation is linear: the derivative of a finite sum is the sum of the derivatives. For products, a useful special case is a product of factors separated by coordinate: one factor depends only on \(x\), and the other only on \(y\). On an \(x\)-differentiation pass, the \(y\)-factor is constant, and on a \(y\)-differentiation pass, the \(x\)-factor is constant.
Worked Example: Finding \(f_{yy}\)
Worked Example: Finding \(f_{yy}\)
Let \(f(x,y)=2x^3y^5-4x^2y^2+6x+9y^3\). Find \(f_{yy}\).
Differentiate with respect to \(y\). The factors \(x^3\), \(x^2\), and \(x\) are independent of \(y\):
Differentiate that result with respect to \(y\) again:
Check by differentiating \(f_y=10x^3y^4-8x^2y+27y^2\) with respect to \(y\): the three terms become \(40x^3y^3\), \(-8x^2\), and \(54y\). The result agrees with the computed \(f_{yy}\).
Products with Separate Coordinate Factors
A product does not automatically make both factors variable-dependent for the chosen differentiation. If \(f(x,y)=a(x)b(y)\), where \(a\) depends only on \(x\) and \(b\) only on \(y\), then \(b(y)\) is constant while differentiating with respect to \(x\), and \(a(x)\) is constant while differentiating with respect to \(y\). Repeating the differentiation therefore gives \(f_{xx}=a''(x)b(y)\) and \(f_{yy}=a(x)b''(y)\), wherever the corresponding one-variable second derivatives exist.
This conclusion depends on the stated separation of the factors. If both factors depend on the differentiation variable, neither can simply be treated as constant. In that situation, the product rule is needed on each differentiation pass. The next example uses separated factors so the role of a coordinate-independent factor is visible.
Worked Example: A Product of Separate Factors
Worked Example: A Product of Separate Factors
Let \(f(x,y)=(x^3-2x)(y^2+1)\). Find both pure second partial derivatives.
For \(f_{xx}\), the factor \(y^2+1\) is independent of \(x\). The first partial is
Differentiate this with respect to \(x\) again, leaving \(y^2+1\) unchanged:
For \(f_{yy}\), the factor \(x^3-2x\) is independent of \(y\). First differentiate once:
Differentiate again with respect to \(y\):
Check both results from the first partials. Differentiating \(f_x=(3x^2-2)(y^2+1)\) with respect to \(x\) gives \(6x(y^2+1)\). Differentiating \(f_y=2y(x^3-2x)\) with respect to \(y\) gives \(2(x^3-2x)\). Both checks match.
A Common Mistake: Differentiating the Fixed Coordinate
Consider \(f(x,y)=x^2y^3\). A common error is to find \(f_x=2xy^3\), then incorrectly differentiate \(y^3\) while taking the next \(x\)-partial:
This calculation differentiates with respect to \(y\), not \(x\). During an \(x\)-partial, \(y^3\) is constant. The correct second partial is
To check, differentiate the first partial \(2xy^3\) with respect to \(x\): its coefficient \(2y^3\) is constant, so the derivative is exactly \(2y^3\). Keeping the differentiation variable visible at each step prevents this mistake.
A Reliable Calculation Process
For either pure second partial, write the variable for each differentiation pass before doing the algebra. Then apply the first partial rules to obtain an intermediate expression, and differentiate that expression once more in the same variable. A short check against the intermediate first partial is useful because the second differentiation must act on that expression, not on the original function in a different variable.
For \(f_{xx}\), use \(x\) on both passes; for \(f_{yy}\), use \(y\) on both passes.
Differentiate \(f\) with respect to the chosen variable, holding the other coordinate fixed.
Apply the same variable and the relevant rules to the first partial.
Differentiate the written first partial once more and compare term by term with the proposed second partial.
Why Pure Second Partials Matter
Pure second partials describe how a coordinatewise rate of change itself changes along that coordinate. They are important in studying the local shape of functions of several variables and in later calculations involving second-order information. The computation here is deliberately coordinate-specific: \(f_{xx}\) repeats the \(x\)-partial, while \(f_{yy}\) repeats the \(y\)-partial. Differentiating first in one coordinate and then in another is a different operation.
The essential habits are straightforward: identify the variable, hold the other coordinate fixed, differentiate the first partial again, and verify the result from that first partial. These habits make repeated differentiation both systematic and easier to audit.
Check Your Understanding
For each question, state which coordinate is held fixed during the differentiations.
- For \(f(x,y)=5x^3y^2\), find \(f_x\) and then \(f_{xx}\).
- For \(g(x,y)=4x^2y^4-3y\), find \(g_y\) and then \(g_{yy}\).
- If \(h(x,y)=a(x)b(y)\), with the indicated factors depending only on their displayed variables, what are \(h_{xx}\) and \(h_{yy}\) in terms of \(a\) and \(b\)?
- Explain why differentiating \(2xy^3\) with respect to \(x\) gives \(2y^3\), rather than \(6xy^2\).
- What condition must hold for \(f_{xx}(x,y)\) to be defined by repeated differentiation at a point?