How to Find Partial Derivatives, the Gradient and Stationary Points of f(x, y)
Partial derivatives step by step: holding variables constant, mixed partials, gradient, tangent plane and classifying stationary points with D.
&c=%234338ca&k=science)
How to Find Partial Derivatives, the Gradient and Stationary Points of f(x, y)
A function of two variables describes a surface, like the height of a hill above every point on a map. If you walk east, the height changes at one rate; walk north and it changes at another. Partial derivatives measure exactly those two rates. They are the starting point for gradients, tangent planes and optimisation in several variables. This guide shows the method, a full example and how to classify stationary points.
The one rule you need
To find the partial derivative with respect to x, written f_x or ∂f/∂x, treat every other variable as a fixed number and differentiate in the usual way. For f_y, freeze x instead. All the familiar rules still apply: power, product, quotient and chain.
Second partial derivatives come from differentiating again. There are four for a two-variable function: f_xx, f_yy and the mixed ones f_xy and f_yx. Clairaut's theorem says the mixed pair are equal whenever the second partials are continuous, which is true for every polynomial. If yours differ, you have almost certainly made an error.
Worked example: partials, gradient and tangent plane
Let f(x, y) = x^3 y^2 + 5xy - y^4. Work at the point (1, 2).
Differentiate with respect to x, holding y fixed: f_x = 3x^2 y^2 + 5y. The term -y^4 has no x, so it disappears.
Differentiate with respect to y, holding x fixed: f_y = 2x^3 y + 5x - 4y^3.
Mixed partials: differentiating f_x by y gives 6x^2 y + 5, and differentiating f_y by x gives 6x^2 y + 5 as well. Clairaut is satisfied.
At (1, 2):
- f(1, 2) = 4 + 10 - 16 = -2
- f_x = 3·1·4 + 10 = 22
- f_y = 2·1·2 + 5 - 32 = -23
The gradient vector is (22, -23). It points in the direction of steepest climb, and its length, the square root of 484 + 529 = 1013, is about 31.83.
The directional derivative along (3, 4) uses the unit vector (0.6, 0.8): 22·0.6 + (-23)·0.8 = 13.2 - 18.4 = -5.2. Walking that way, the surface falls.
The tangent plane at the point is z = -2 + 22(x - 1) - 23(y - 2).
Classifying a stationary point
Stationary points are where both partials are zero. Take g(x, y) = x^2 + xy + y^2 - 3x.
g_x = 2x + y - 3 and g_y = x + 2y. Setting both to zero gives x = -2y, then -4y + y = 3, so y = -1 and x = 2.
The second partials are g_xx = 2, g_yy = 2 and g_xy = 1. The discriminant is D = g_xx g_yy - (g_xy)^2 = 4 - 1 = 3.
Rules: D > 0 with g_xx > 0 gives a minimum; D > 0 with g_xx < 0 a maximum; D < 0 a saddle; D = 0 leaves the test undecided. Here D = 3 and g_xx = 2, so (2, -1) is a local minimum, where g = 4 - 2 + 1 - 6 = -3.
Where students slip
- Differentiating a term like 5xy with respect to x and writing 5x instead of 5y.
- Dropping terms that contain only the frozen variable, then forgetting they vanish only for that partial.
- Using the gradient vector directly in the directional derivative without dividing by the length of the direction.
- Forgetting the square on f_xy in the discriminant.
- Calling every stationary point a maximum or minimum when D is negative.
Checking your results
Compare the mixed partials; if they disagree, recheck both. For a value check, nudge one variable by a small amount, say x from 1 to 1.001, compute f with a calculator and divide the change by 0.001. The result should be close to your f_x. For stationary points, evaluate the function at a few nearby points to see whether they all lie above, all below, or on both sides.
Using the calculator
Enter the function in the Partial Derivative Calculator and it lists every first and second partial, with a Clairaut check. Choose a variable to see the steps with the others held constant. At a point, it evaluates the gradient, its length, the directional derivative and the tangent plane, and a rotatable 3D view shows the surface with the plane resting on it. The practice section asks for partials of generated functions and accepts any equivalent form.
Limits
The 3D picture samples a grid and clips huge values, so steep spikes appear flattened. The discriminant test is offered for two variables only, and it is not able to decide when D = 0. Expressions may come out in a less tidy form than a textbook prints. Treat the calculator as a study aid for checking work, not a replacement for doing it.


