Partial Derivative
calculator.
Find each partial derivative, the gradient and the Hessian of f at your point.
- Length |∇f|
- 13.6015
- Steepest heading
- 72.9°
- Critical point
- No
At (1, 2), a small step h in x changes f by about 4 × h and a small step h in y changes f by about 13 × h. No direction changes it faster than 13.6015 per unit of distance, the length of the gradient.
Level curve and gradient
A map of f on the square from x = 0 to 2 and y = 1 to 3. The dark curve is the level curve where f = 10, through the point. The thick arrow is the gradient, the direction of fastest increase, at right angles to that curve. The thin arrow is the heading of 45 degrees.
The rate in any direction
The rate is the gradient dotted with a unit arrow along the heading. It is largest along ∇f, at 72.9°, and it is 0 along the level curve.
Working
- 1Differentiate with respect to x, holding y fixed∂f∂x=2x y
- 2Differentiate with respect to y, holding x fixed∂f∂y=x2 + 3y2
- 3Put in the point (1, 2)fx = 4, fy = 13
- 4Gradient and its length∇f = (4, 13),|∇f| =√(4)² + (13)²= 13.6015
- 5Second derivative test: D = fxx × fyy − fxy²D = 4 × 12 − (2)² = 44. This point is not critical, so D does not classify it.
- 6Check: estimate each partial from nearby values of f aloneCentral differences ≈ (4, 13), which agree with the gradient
Hessian: partial of each first partial
| Then | ∂/∂x | ∂/∂y |
|---|---|---|
| ∂/∂x | 4 | 2 |
| ∂/∂y | 2 | 12 |
Second partials as formulas
| Partial | Formula | At the point |
|---|---|---|
| fxx | 2y | 4 |
| fxy | 2x | 2 |
| fyy | 6y | 12 |
The second derivative test, D = fxx × fyy − fxy²
| At a critical point | It is | Here |
|---|---|---|
| D > 0 and fxx > 0 | Local minimum | – |
| D > 0 and fxx < 0 | Local maximum | – |
| D < 0 | Saddle point | – |
| D = 0 | The test says nothing | – |
These four cases come from OpenStax Calculus Volume 3, section 4.7. They only apply where the gradient is zero.
How it's worked out
A partial derivative tells you how f changes when one input moves and the others stay put. To find one, you treat every other variable as a fixed number and use the ordinary rules. For , the y is just a coefficient when you differentiate by x, so you get .
You will also see this written as . Differentiating again gives the second partials: , and the mixed partial , which differentiates by x and then by y. Those numbers form a square table called the Hessian.
The gradient packs the first partials into one arrow. It points the way f rises fastest, its length is that fastest rate, and it is at right angles to the level curve through your point. To get the rate along any other heading, take the dot product of the gradient with a unit arrow pointing that way.
Where the gradient is zero, you have a critical point. The second derivative test then sorts it using one number, D. For three variables, the tool checks the signs of the Hessian's leading minors in place of D.
The formulas come from the sum, product, quotient, power and chain rules with light tidying, so they can look different from a textbook's form and still be equal. The values at your point use exact derivative rules on numbers, not formulas typed back in. As a check, the tool also estimates each partial from nearby values of f.
Worked examples
Ali works a textbook exercise by holding one variable fixed
Ali needs both first partials of at the point (2, 1). He holds y fixed for the first one and x fixed for the second.
At (2, 1) these give 16 and 8. So a small step h in x changes f by about 16 × h, and the same step in y changes it by about half that. The gradient has length 17.8885.
Jo plans the steepest way down a hill
A hill's height in meters is , with x and y in kilometers east and north of its top. Jo stands at (3, 2), where the height is 983 m. The gradient there is (−6, −8), in meters of height per kilometer.
Its heading is 233.1 degrees from east, and height rises fastest that way, at 10 m per km. The steepest way down is the opposite heading, 53.1 degrees. Walking due east, height changes by −6 m per km, and walking northeast by −9.9 m per km.
Wei sorts the critical points of a surface
Wei has and tests four points. The last row is there as a warning.
| Point | Gradient | D | Result |
|---|---|---|---|
| (0, 0) | (0, 0) | −16 | Saddle point |
| (1, 1) | (0, 0) | 128 | Local minimum |
| (−1, −1) | (0, 0) | 128 | Local minimum |
| (0.5, 0.5) | (−1.5, −1.5) | −7 | Not critical |
At (0.5, 0.5), D is −7, which looks like a verdict. But the gradient is not zero there, so D says nothing about that point. The test only sorts points where the slope is 0 in every direction.
Reading your result
Each partial is a rate. Its unit is the unit of f per unit of that variable. A partial of 0 means f is flat in that one direction, not that the point is critical. Only a whole gradient of zero gives you a critical point.
The Hessian is symmetric. By Clairaut's theorem, and match when they are continuous near the point. For at (1, 1), both are 5.4366, which is 2e. That is why only one mixed partial is listed for each pair.
Three variables work the same way. For at (1, 2, 3), the gradient is (6, 3, 8). f rises fastest in that direction, at 10.4403 per unit of distance. The map then shows a slice of f at your z value, because a flat picture can only hold two inputs.
D = 0 means look closer. and both give D = 0 at the origin, and the test reports "Inconclusive (D = 0)" for each. The first has a minimum there and the second has a saddle, so you need another method. Try following f along a few lines through the point.
Common mistakes
- Treating the other variable as a function. When you differentiate by x, y is a constant, so on its own has a partial of 0 and needs no chain rule.
- Using D at a point that is not critical. D has a value everywhere, but it only classifies a point where the gradient is zero. Check the gradient first.
- Taking a large D to mean a steep surface. D measures how the surface curves, not how steep it is. A critical point has no slope at all, and it can have a huge D.
- Expecting a partial at a corner. has no partial at x = 0, and neither does , because the limit that defines it does not exist. The tool says so and gives no number.
- Mixing up the arrow and the climb. The gradient lies flat in the xy-plane and points the way uphill. It is not a line on the surface itself, and its heading does not tell you the height.