A surface has a different slope in every direction through a point, but along the two coordinate directions the slope is an ordinary derivative that the calculus of one variable already knows how to take.
The previous lesson defined limits and continuity in two variables and found that freezing one variable at a time is a poor test of continuity, because it looks along only two paths. As a way of measuring slopes, freezing works well. This lesson defines the partial derivative, computes it with the rules of Calculus I, reads it off real models, differentiates twice, and meets the theorem that makes second derivatives manageable, together with the function where it fails.
Freeze every variable but one
Let be a function of and and fix a point . Holding at leaves , a function of one variable, and its ordinary derivative at is the partial derivative of with respect to :
Only moves in the quotient; sits at throughout. Holding at and moving instead gives , the same limit with in place of .
Two notations are in use and they mean exactly the same thing: , compact enough for long calculations, and the Leibniz form , whose curly warns that other variables are being held still. Adrien-Marie Legendre used the symbol in 1786 and Carl Jacobi made it standard in 1841.
Take the paraboloid at , where . Holding , the difference quotient is
which tends to , so . The same work in gives , so . At the quotients are and , the east and north slopes found by stepping away from when this surface first appeared, in the lesson on functions of several variables.
Nobody evaluates that limit for every function. Since is an ordinary derivative, every rule of Calculus I applies, and the one new instruction is to treat every other variable as a constant. In the term is a constant as far as is concerned, so and likewise , and falls out by substitution. In with frozen, is a coefficient like the in , so the partial is and the partial is . The product rule returns only when both factors contain the moving variable, and the chain rule whenever the moving variable sits inside another function. In three or more variables nothing changes: freezes and and differentiates in .
Example. Find and for , and evaluate both at .
With constant, gives , and needs the chain rule with inner function , whose derivative is . So , and with constant the same steps give . At , , so and . A central difference in with step also gives : a partial derivative can always be checked by nudging one input.
Now you. Find and for at , to three decimal places.
Answer
In both factors of move, so the product rule gives , which at is . In the factor is a constant: .
The slope of a slice
Cut the surface with the vertical plane and what remains is the curve , the trace of the surface in that plane. Its slope at is . So is the slope of the surface for a walker heading due east, in the direction of increasing , and is the slope for a walker heading due north. Neither says anything about a walker heading north-east.
On the paraboloid, the slice is the parabola , whose tangent line at has slope . In space that line passes through and climbs units for each unit east, so it runs along ; the slice gives a tangent line along . Two lines through one point determine a plane, and any tangent plane at must contain both. Whether the surface actually has one is a question for the next lesson.
Each partial derivative has its own meaning and its own units. The wind chill index , with in degrees Celsius and in km/h, has , which at is : in that wind each degree of real cooling feels like degrees. It also has , which at and is degrees per km/h. Raising the wind from to km/h lowers the index by , slightly less than the rate because the curve flattens as the wind grows.
A rate with everything else fixed
In a model, a partial derivative answers the question every controlled experiment asks: change this one thing and hold the rest. The ideal gas law , with joules per mole per kelvin, has three. With and held, is a constant coefficient; with and held, appears as . So
and . For one mole at K in cubic metres, where Pa, these give Pa per kelvin and Pa per cubic metre, or Pa per litre. Finite steps from the same state, taken in the lesson on functions of several variables, found that one extra kelvin raises the pressure by Pa and one extra litre lowers it by Pa. The temperature figures agree exactly because is linear in . The volume step falls short of the rate because falls less and less steeply as grows, so a whole litre averages a weakening slope.
Example. A plant has the Cobb-Douglas production function , fitted to American manufacturing data in 1928, and runs at , . Find the marginal products and , the extra output per extra unit of each input with the other held fixed.
Treating as constant, , and the fourth root of is , so . Treating as constant, . An actual extra unit of labour raises output from to , an increase of , close to the rate. As a check, . That is no accident: the derivatives show and , so if each input were paid its marginal product, labour would take three quarters of the output, close to the share of wages Douglas found in the data.
Now you. Find and for the same plant at , , to three decimal places.
Answer
Now , so , and , so . With capital scarce, its marginal product is now the larger. The check matches .
Second and mixed partials
The partials and are functions of and again, so they have partials of their own. Differentiating in gives , the concavity of the slice , and is the concavity of the slice . The new objects are the mixed partials: differentiates with respect to , measuring how the eastward slope changes as the walker steps north, and differentiates with respect to .
The subscript reads left to right, , while Leibniz notation reads right to left, outwards from :
The conventions are opposite, which matters for the one function below where the order changes the answer. The pure partials are unambiguous: .
For , and : the eastward slope does not depend on , so walking north does not change it. For , is the derivative of and is the derivative of , and both are . Different calculations, same function.
Example. For , find all four second partial derivatives at .
The first partials are and . Then , , and both mixed partials come out as , one from and one from . At , with , , and .
Now you. For , find , and both mixed partials at , to three decimal places.
Answer
The first partials are and . Then and . Both mixed partials are .
Clairaut's theorem
The agreement of the mixed partials in every example so far is a theorem, used by Leonhard Euler and Alexis Clairaut in the 1730s and 1740s and first proved rigorously by Hermann Schwarz in 1873. If and both exist and are continuous on an open disc around , then . Every function built from polynomials, exponentials, sines and logarithms satisfies the hypothesis wherever it is defined, which is why the order of differentiation is normally ignored.
The proof shows where continuity enters. For small and , combine the values at the four corners of a small rectangle:
Read as with , the mean value theorem gives for some between and , and is a difference of in the direction, which the mean value theorem again turns into . So equals at some point of the rectangle. Grouping the four terms the other way shows it also equals at some point of the rectangle. Shrink the rectangle, and continuity forces both values to their values at , which must therefore agree.
A check on a less friendly function: for , and , and the quotient rule gives for both mixed partials. They are continuous away from the origin, and at both equal .
When the mixed partials disagree
The hypothesis of continuity is not decoration. Giuseppe Peano published the standard counterexample in 1884:
Since , its size is at most , so it is continuous everywhere, and its first partials exist everywhere. The trouble is at the second level.
Since is the derivative of , first find all along the axis. For , from the definition,
and at the quotient is because . So on the whole axis, and . Exchanging the roles, , so . The order of differentiation changes the answer.
Nudges alone confirm it. A central difference with step estimates and , and the outer quotient is . Nudging in the other order gives , and a smaller outer step changes neither.
Clairaut is not contradicted, because the hypothesis fails. Away from the origin
with numerator and denominator of the same degree, the pattern the previous lesson flagged: in polar coordinates cancels and only the direction remains. It equals along the axis, along the axis and along , however close to the origin, so is not continuous there.
A glimpse of partial differential equations
Once partial derivatives exist, equations can be written between them, and much of physics consists of such equations. In 1822 Joseph Fourier published the heat equation for the temperature at position along a thin bar at time :
A point warms where the temperature profile curves upwards, where it is colder than the average of its neighbours. The thermal diffusivity is about square metres per second for copper.
Checking a proposed solution needs only partial derivatives. For , holding gives , and holding gives and . So everywhere. For a copper bar one metre long with its ends held at zero and a single hump of heat, , and the hump halves when , after seconds, about ten and a half minutes.
When a flat plate has reached a steady temperature, and the two dimensional heat equation becomes Laplace's equation, , which Pierre-Simon Laplace studied in the 1780s in his work on gravitation. The function satisfies it, since , and so does . For , the first partials above give and , which cancel. The paraboloid fails, with sum : a bowl cannot be a steady temperature, since its centre is colder than everything around it.
Two slopes are not enough
Partial derivatives reduce the calculus of several variables to the calculus of one, but they look along only two lines through each point, and the previous lesson showed how little two lines can see. Its function
takes the constant value along each line through the origin, so it has no limit there and is not continuous. Yet for every , so the difference quotient is for every and . Likewise . Both partial derivatives exist at the origin, and both are zero.
The two slopes describe the plane . Along the diagonal , though, the surface stays at height all the way in, at as much as at . There is a cliff at the origin that the two coordinate slices step exactly around, and no plane can be tangent to a surface torn like that.
So the existence of and at a point does not make smooth there, or even continuous. The partials remain the right numbers to compute, but their existence is too weak to build on. What is needed is a condition that looks in every direction at once: near the point the surface should be close to a plane, with an error small compared with the distance moved. That is differentiability, the existence of a genuine tangent plane, and it is the subject of the next lesson.