A function of several variables can change at different rates in different directions. Partial derivatives isolate coordinate directions, while the gradient assembles those coordinate rates into a geometric object. Linearization then predicts small changes without pretending that a curved surface is globally flat. Units and held-fixed conditions are essential parts of every interpretation. This lesson develops computation, meaning, geometry, approximation, and error diagnosis together.
Move from a curve to a surface
A single-variable function assigns one output to each allowed input . Its graph is a curve, and its derivative measures change along the only available input direction. A two-variable function assigns one output to each ordered pair . Its graph is generally a surface in three-dimensional space. The extra input direction makes the phrase “the slope” incomplete until a direction is specified.
One way to study the surface is to hold fixed. The resulting trace is an ordinary curve whose variable is . Holding instead produces the trace . The slopes of these coordinate traces are partial derivatives. They answer different questions because each allows a different input to vary.
For , movement parallel to the -axis changes only the term. Movement parallel to the -axis changes only the term. Movement along a diagonal changes both terms at once. A partial derivative is therefore not a reduced version of the full change. It is one directional measurement from which broader local behavior can be assembled.
Define a partial derivative with a limit
The partial derivative of with respect to at is . The subscript identifies the changing coordinate. The value remains fixed in both function evaluations. The increment changes only the first coordinate, and the denominator records that input change. The quotient becomes an instantaneous coordinate rate when the limit exists.
Similarly, the partial derivative with respect to is . Now remains fixed and only the second coordinate changes. The same letter can be used because the two limits are separate definitions. The curved symbol in distinguishes partial differentiation from the ordinary derivative symbol . Every notation should remind the reader which input is allowed to move.
The limit notation expresses a process rather than substitution of . Direct substitution would create a zero denominator. Instead, nonzero increments approach zero while the quotient records average coordinate rates. If those rates approach one finite value, the partial derivative exists. This interpretation matches the ordinary derivative while imposing a held-coordinate condition. It also explains why a graph’s local coordinate trace determines the value.
Compute by treating other variables as constants
To calculate , apply ordinary differentiation rules to while treating as a constant. For , the derivative of with respect to is . The chain rule gives the derivative of as . Therefore . The symbol remains in the answer because its fixed value selects which coordinate trace is being measured.
To calculate , treat as a constant instead. The derivative of with respect to is . The chain rule gives the derivative of as . Thus . Comparing the two results exposes which factors arise from differentiating the inner product .
A useful verbal check accompanies each line. For , say that is temporarily a constant coefficient. For , say that is temporarily a constant coefficient. This language prevents the common error of differentiating every visible variable at once. Substituting the point after differentiating usually preserves structure and reduces arithmetic clutter.
Interpret signs, magnitudes, and units
Suppose temperature is , where is measured in degrees Celsius and both coordinates are measured in metres. Then has units of degrees Celsius per metre. A positive value means temperature increases locally when moving in the positive direction with fixed. A negative value means it decreases in that coordinate direction. A magnitude of represents about three degrees Celsius of change per metre for sufficiently small movement.
If the inputs have different units, the partial derivatives also have different units. For a cost measured in dollars, with quantity in units and time in hours, has units of dollars per unit. The derivative has units of dollars per hour. Their numerical values should not be compared as though they measured the same kind of sensitivity. Units reveal both meaning and invalid arithmetic.
The phrase “holding other variables fixed” is a modeling condition. In thermodynamics, changing volume while holding temperature fixed describes a different process from changing volume while holding pressure fixed. The notation must make the held variables unambiguous when several state quantities are related. A derivative can be computed correctly yet interpreted for the wrong experiment. Always attach the coordinate condition and units to the reported rate.
Build the tangent plane through linearization
Near , a differentiable function behaves approximately like a plane. Its linearization is . The first term anchors the approximation at the known surface value. Each partial derivative converts its corresponding input displacement into predicted output change. Adding the two contributions produces the local planar model.
For at , the function value is . The partial derivatives are and , so their values are and . The linearization is . At , this predicts . The exact value is , illustrating small local error.
The same expression describes the tangent plane when written . Linearization is more than a drawing because it gives numerical estimates. It also predicts the total differential . The approximation improves as the input change approaches zero when the function is differentiable. Large displacements may reveal curvature that the tangent plane cannot represent.
Separate partial existence from differentiability
The existence of and does not alone prove differentiability. Each partial derivative examines only one coordinate line through the point. A function can behave gently along those two lines yet change irregularly along another path. Differentiability requires one linear model to approximate changes from all nearby directions. This is a stronger demand than two isolated one-dimensional limits.
A common sufficient condition is continuity of the first partial derivatives in a neighborhood of the point. If and exist nearby and are continuous at , then is differentiable there. This theorem is sufficient rather than necessary. Some differentiable functions have partial derivatives that fail to be continuous. The theorem is valuable because continuity is often easier to verify than the full definition.
When a formula changes by cases, test more than coordinate axes. Approach the point along lines such as , along curves, or through polar coordinates when appropriate. Different limiting behavior along two paths disproves continuity and therefore disproves differentiability. Matching a few paths cannot by itself prove a multivariable limit. The logical asymmetry is important: disagreement disproves, while agreement merely supplies evidence.
Assemble coordinate rates into the gradient
For a scalar function , the gradient is . The symbol is read “del” or “nabla.” Angle brackets indicate a vector whose components are the coordinate partial derivatives. In three variables, . The gradient depends on position because its components usually depend on the inputs. Evaluating the gradient at a point produces a numerical vector anchored at that point.
The gradient packages local sensitivity into one vector. Its first component predicts change per unit movement in the direction. Its second component does the same for , and a third component does so for when present. This packaging allows vector algebra to describe arbitrary directions. The gradient is not the graph of the function and should not be confused with a point on its surface.
For , the gradient is . At , it becomes . The vector has a much larger positive component, indicating greater local sensitivity to positive motion. Its magnitude is . Magnitude and direction together summarize the strongest first-order change.
Measure change in an arbitrary direction
Let be a unit vector specifying a direction. The directional derivative is . The dot denotes the vector dot product. Each component weights a coordinate rate by how much the direction points along that coordinate. Requiring unit length makes the result a rate per unit distance.
For at , use direction . Its length is one because . The directional derivative is . This value measures the predicted increase in per unit distance along that direction. Reversing the direction changes the sign but not the magnitude.
The dot-product formula gives , where is the angle between the two vectors. The maximum occurs when , so the gradient points toward steepest increase. The minimum occurs in the opposite direction. A perpendicular direction has zero first-order change and is tangent to a level curve. This geometric result follows directly from the dot product rather than from a separate rule.
Connect gradients with level curves and surfaces
A level curve of is a set satisfying for a constant . Every point on that curve has the same function value. Motion tangent to the curve therefore produces zero instantaneous change in . The directional derivative along a tangent vector is zero. Consequently, a nonzero gradient is perpendicular to the level curve.
For , level curves satisfy . These curves are ellipses when . At , the gradient points normal to the ellipse passing through that point. A tangent vector has dot product zero with this gradient. The orthogonality links algebraic derivatives to visible contour geometry.
In three variables, a level surface satisfies . The gradient is normal to the surface when it is nonzero. This fact helps construct tangent planes to implicitly defined surfaces. It also underlies normal vectors in flux integrals and constrained optimization. Level-set geometry is one of the most reusable interpretations of partial derivatives.
Apply the multivariable chain rule
Suppose while and depend on time. The chain rule is . Every partial derivative is evaluated at the current point . Each coordinate contribution is converted into output change and then added. The formula matches and does not require unit speed.
Let , with and . The partial derivatives are and . The input rates are and . Hence . Substituting and yields a result entirely in terms of time.
A dependency diagram can prevent omitted terms. Draw arrows from to both and , then arrows from those variables to . Every path from to contributes a product of derivatives along that path. When intermediate variables share dependencies, the sum contains all routes of influence. This viewpoint scales to models with many inputs and parameters.
Compute second partial derivatives and the Hessian
Differentiating a first partial again produces a second partial. The notation means differentiate twice with respect to . The mixed partial means first differentiate with respect to and then the resulting expression with respect to . Some textbooks reverse the verbal convention, so the displayed operations should control interpretation. Writing makes the order explicit.
For , one can compute , , , and . Under suitable continuity assumptions, the mixed partials satisfy . This equality is a theorem, not a typographical rule. Functions with insufficient smoothness can violate it at special points. Checking assumptions prevents an unwarranted interchange of differentiation order.
The Hessian matrix collects second partial derivatives. In two variables it is . Diagonal entries measure curvature along coordinate directions. Off-diagonal entries describe how one coordinate rate changes as another coordinate changes. The Hessian refines the first-order information supplied by the gradient.
Locate and interpret critical points
At an interior differentiable local maximum or minimum, the gradient must be zero. Such a point satisfies , where the bold zero is the zero vector. Points where derivatives fail to exist can also be critical candidates. Solving the gradient equations generates candidates rather than proving extrema. Boundary points require separate analysis because movement in every direction may not be allowed.
For , the gradient vanishes only at . The function is nonnegative and equals zero there, so the point is a global minimum. That conclusion follows directly from the formula, not merely from the zero gradient. For a saddle such as , the gradient also vanishes at the origin. Opposite curvature directions prevent an extremum.
The Hessian can classify an isolated critical point when its second-derivative test is conclusive. Positive curvature in every direction indicates a local minimum, while negative curvature in every direction indicates a local maximum. Mixed signs indicate a saddle. An inconclusive Hessian does not imply that no classification exists. It means higher-order reasoning or direct inequalities are needed.
Estimate uncertainty with differentials
Linearization estimates how input uncertainty propagates into output uncertainty. For small changes, . The delta symbol denotes a finite change, while the differential expression represents its first-order approximation. Signs matter when changes are known and coordinated. For worst-case bounds, magnitudes are often added instead.
Suppose a rectangular area is , with measured length and width in metres. The partial derivatives are and . Small measurement changes give . Each term has units of square metres because metres multiply metres. Unit consistency confirms that the approximation can be added to an area.
If only uncertainty bounds are known, then . The symbol communicates an approximate upper bound rather than exact equality. Statistical uncertainty propagation may combine independent contributions differently, often through squared terms. The choice depends on what the uncertainty statements mean. Partial derivatives supply sensitivities, while the uncertainty model determines how they are combined.
Diagnose mistakes and practice deliberately
One common mistake is differentiating a variable that should be held fixed. Another is substituting a point before the symbolic structure is clear. A third is using a direction vector without normalizing it. A fourth is assuming that existing partials prove differentiability. State the changing variable and held-fixed variables before each computation to prevent these errors.
Practice first with . Compute and , explaining why the sine term disappears only from . Then evaluate both at a chosen point and attach units from an invented physical context. Construct the tangent plane at that point. Compare its prediction with the exact function at one nearby input.
Next use at . Its gradient is , which becomes . The unit direction of steepest increase is . Verify that this vector has length one. Finally, choose a perpendicular direction and confirm that its directional derivative is zero.
Connect forward to multivariable accumulation
Partial derivatives describe local change, while multiple integrals accumulate quantities over regions. The two ideas interact through the multivariable fundamental theorems. Coordinate changes introduce Jacobian derivatives that measure local stretching. Optimization uses gradients to identify candidates and constraints to restrict directions. Differential equations use partial derivatives when unknown quantities depend on space and time.
In data fitting, a model may depend on many adjustable parameters. Partial derivatives measure how each predicted value changes when one parameter varies. Collecting those derivatives produces a Jacobian matrix. Gauss–Newton and Levenberg–Marquardt methods use that matrix to choose parameter updates. The coordinate-rate idea from this lesson therefore supports practical nonlinear optimization.
You are ready to proceed when you can compute a partial derivative and narrate what remains fixed. You should interpret units, construct a linearization, normalize directions, and connect gradients with level curves. You should distinguish partial existence from differentiability and a critical candidate from a proven extremum. These distinctions make the notation carry meaning rather than merely instructions. Multiple integrals can then add accumulation to this local-change foundation.