From a Function to Three Equations
A function of three variables can change as any one of its coordinates changes. To locate a point where the function has no first-order change in any coordinate direction, we must set all three first partial derivatives equal to zero. The resulting equations are often coupled: each equation may involve more than one variable, so solving them requires careful substitution, elimination, and case-splitting.
This tutorial is about finding those solutions, not deciding whether they are local maxima, local minima, or saddle points. A point that satisfies all three equations is a stationary point and a candidate for further analysis; the equations alone do not classify its local behaviour.
The three equations are the components of the gradient equation \(\nabla f(a,b,c)=\mathbf{0}\). A solution must satisfy every equation at the same triple of coordinates. Solving one or two equations alone does not establish that a point is stationary.
A Systematic Approach
Start by computing each partial derivative separately, treating the other two coordinates as constants. Then write down all three equations before simplifying. Look for equations that are linear in one variable, expressions that can be substituted into the others, and differences or combinations of equations that factor. If a factor can be zero, keep that case: dividing by it may discard solutions.
Keep each derivative paired with its own variable and check signs, especially in coupled terms.
The stationary points are the simultaneous real solutions of the resulting system.
Substitute or factor, splitting into cases whenever a product is zero.
This catches algebraic errors and confirms that no equation was lost during elimination.
Worked Example: A Coupled Linear System
Worked Example: A Coupled Linear System
Find the stationary point of \(f(x,y,z)=x^2+y^2+z^2+xy+yz+xz-x-2y-3z\).
Differentiate with respect to each variable:
Setting all three expressions to zero gives a simultaneous linear system. Let \(S=x+y+z\). The equations can then be written as
Adding these equations gives \(3S+(x+y+z)=1+2+3\). Since \(x+y+z=S\), this becomes \(4S=6\), so \(S=\frac{3}{2}\). Substituting back gives
Check the candidate in the original partial derivatives:
Thus the stationary point is \(\left(-\frac12,\frac12,\frac32\right)\).
Why Substitution Preserves the Solutions
Substitution is useful because an equation can express one variable in terms of the others. If, for example, one equation gives \(z=xy\), then any solution of the original system must have that value of \(z\). Replacing \(z\) by \(xy\) in the other equations therefore gives necessary conditions on \(x\) and \(y\). Conversely, if \(x,y\) satisfy the substituted equations and we set \(z=xy\), all three original equations hold, provided the substitution was made in each required equation.
Worked Example: Factoring After Substitution
Worked Example: Factoring After Substitution
Find every stationary point of \(f(x,y,z)=\frac12(x^2+y^2+z^2)-xyz+x\).
The partial derivatives and their zero equations are
The third equation gives \(z=xy\). Substitute this into the first two:
The second reduced equation is a product equal to zero, so consider both cases.
Case 1: \(y=0\). The first reduced equation becomes \(x+1=0\), so \(x=-1\). The substitution \(z=xy\) gives \(z=0\). Thus one candidate is \((-1,0,0)\).
Case 2: \(y\ne 0\). Then \(y(1-x^2)=0\) implies \(x^2=1\), so \(x=1\) or \(x=-1\). If \(x=1\), the first reduced equation becomes \(1-y^2+1=0\), hence \(y^2=2\). This gives \(y=\sqrt2\) or \(y=-\sqrt2\), and \(z=xy=y\). If \(x=-1\), the first reduced equation becomes \(-1+y^2+1=0\), so \(y^2=0\), contradicting the case assumption \(y\ne0\). There are no solutions in this subcase.
Check the three candidates in the original equations. For \((-1,0,0)\), the left sides \(x-yz+1\), \(y-xz\), and \(z-xy\) are respectively \(0,0,0\). For \((1,\sqrt2,\sqrt2)\), they are \(1-2+1=0\), \(\sqrt2-\sqrt2=0\), and \(\sqrt2-\sqrt2=0\). For \((1,-\sqrt2,-\sqrt2)\), they are \(1-2+1=0\), \(-\sqrt2-(-\sqrt2)=0\), and \(-\sqrt2-(-\sqrt2)=0\).
The stationary points are therefore \((-1,0,0)\), \((1,\sqrt2,\sqrt2)\), and \((1,-\sqrt2,-\sqrt2)\).
Factoring and Keeping Every Case
In polynomial systems, products equal to zero are especially valuable. If \(AB=0\) for real numbers \(A\) and \(B\), then \(A=0\) or \(B=0\). Both possibilities must be examined. A common source of missing solutions is to divide by a variable or factor without first considering the case where it is zero.
Worked Example: A Product Argument
Worked Example: A Product Argument
Find every stationary point of \(f(x,y,z)=x^2+y^2+z^2-xyz\).
The partial derivatives give the system
First consider the possibility that at least one coordinate is zero. If \(x=0\), the second equation gives \(2y=0\), so \(y=0\); the third then gives \(2z=0\), so \(z=0\). The same conclusion follows if \(y=0\) or \(z=0\), by the corresponding equations. Thus the origin is a solution.
Now suppose all three coordinates are nonzero. The equations become \(2x=yz\), \(2y=xz\), and \(2z=xy\). Multiplying them gives
Because \(xyz\ne0\), divide by \(xyz\) to obtain \(xyz=8\). Multiply \(2x=yz\) by \(x\); then \(2x^2=xyz=8\), so \(x^2=4\). In the same way, \(y^2=4\) and \(z^2=4\). Each coordinate is therefore either \(2\) or \(-2\), and their product must be \(8\). The four possibilities are \((2,2,2)\), \((2,-2,-2)\), \((-2,2,-2)\), and \((-2,-2,2)\).
For the origin, each partial derivative is zero. At each of the four other candidates, \(yz=2x\), \(xz=2y\), and \(xy=2z\), so all three partial derivatives vanish. Therefore the complete list is the origin together with those four sign combinations.
A Common Mistake: Dividing Too Soon
In the preceding example, one might multiply the equations and then divide by \(xyz\) immediately. That division is valid only in the case \(xyz\ne0\). If it is done without first treating zero coordinates, the origin is lost. The resulting calculation may correctly find the four nonzero stationary points but still give an incomplete answer.
What the Solution Set Does—and Does Not—Tell You
Solving the three first-partial equations identifies stationary points. Depending on the function, the real solution set may be empty, consist of a finite number of points, or contain infinitely many points. The algebra must establish which solutions exist; it is not enough to find one plausible point or to rely on a symmetry guess.
Finding stationary points is an important step in studying local extrema, but it is not the classification itself. At a stationary point, the first partial derivatives vanish; that fact by itself does not say whether nearby function values are larger, smaller, or both. Further analysis is needed to determine local behaviour. For this tutorial, the essential task is to solve the coupled equations completely and report every real solution.
Check Your Understanding
Use the methods in this tutorial to answer the following questions.
- What three equations must a point satisfy to be stationary for a differentiable function of three variables?
- Why must a candidate obtained by substitution be checked in all three original equations?
- When an equation factors as \(y(1-x^2)=0\), what cases must be considered?
- In the product argument example, why was the zero-coordinate case treated before dividing by \(xyz\)?
- Does satisfying all three first-partial equations, by itself, classify a point as a local maximum or minimum?