A curve that is not y = f(x)
is the circle of radius 5 centered at the origin. Solving for y gives two answers, for the top half and for the bottom half. Between x = −5 and x = 5 each x has two points above it, so no single function of x gives the whole circle.
Implicit differentiation finds from the equation as it stands, without choosing a half. The equation defines y implicitly, as a function of x near each point, even where no formula for it is written down.
Differentiating a term in y
Differentiate every term of with respect to x, treating y as a function of x. gives 2x, and the constant 25 gives 0.
is a function inside a function: the inner function is y and the outer function is the square. So the chain rule gives . The power rule on y gives 2y, and then the inner derivative, , multiplies it. Every term in y gains a factor in the same way: gives .
Solving for
So . Take 2x from both sides: . Divide both sides by 2y: , wherever .
At (3, 4) the gradient is , and at (3, −4) it is . At (5, 0), y = 0 and has no value: the tangent there is vertical.
Check on the top half, . At x = 3.001, y = 3.9992498, so the chord from (3, 4) has gradient , close to . The chain rule on gives , which is again.
The geometry agrees. The radius to (3, 4) has gradient , and , so the tangent is perpendicular to the radius, as a tangent to a circle must be.
The circle . The gold line is the tangent at (3, 4), with gradient ; the dashed line through the origin carries the radius, with gradient . They meet at a right angle.
x and y share a sign, so −x/y < 0: the tangent falls, perpendicular to the radius of gradient y/x
Find the points where the tangent has gradient +1
A point held on the circle , with the tangent there drawn at gradient . Where x and y have the same sign the tangent falls, where they differ it rises, at the top and bottom it is flat, and at the sides it is vertical.
A term with both x and y
In xy = 12, the term xy is a product of x and y, so it needs the product rule: . So , and . At (3, 4), which is on the curve since 3 × 4 = 12, the gradient is .
Here the equation can also be solved: , so , which is at x = 3.
A curve that cannot be rearranged
has exactly one y for each x, but no formula gives it. Differentiate anyway: . Factor out : , so . This is never 0 and always positive, so the curve rises everywhere.
At (2, 1), which is on the curve since 1 + 1 = 2, the gradient is . Check: solving numerically gives y = 1.00016662, so the chord from (2, 1) has gradient 0.16662. At the origin the gradient is .
The gold curve , drawn by solving for y at each x. At (2, 1) its tangent, the gold line, has gradient ; at the origin the curve leaves at gradient 1.
The method
Differentiate every term with respect to x. A term in y alone gains a factor , by the chain rule. A term with both x and y needs the product rule. A constant gives 0. Then collect the terms in on one side, factor out , and divide.
For , the terms give 2x, then , then , and 0. So , and . At (1, 2), which is on the curve since 1 + 2 + 4 = 7, the gradient is . Solving the equation numerically for y near x = 1 gives the same slope.
The usual mistakes
Differentiating as 2y. That differentiates with respect to y; with respect to x, the chain rule adds the factor .
Differentiating a product such as 9xy as . The product rule gives .
Dropping a coefficient: for , the gives 6x, so , not .
Turning the answer upside down. From , , with y in the denominator.
A leaf-shaped panel
In the application below, the edge of a panel follows , which has a term in y alone and a term with both letters, so it uses the chain rule and the product rule together.
Worked example: A Leaf-Shaped Panel Whose Edge Obeys a Relation That Cannot Be Solved for y
Question A metalworker cuts a leaf-shaped panel whose edge follows x3 + y3 = 9xy, with x and y in centimeters, and the cutting head must be set along the tangent to that edge. (a) Find dydx at the point (2, 4). (b) Find it at the point (4, 2), and say what the two answers show about the shape.
1.Check first that (2, 4) lies on the edge: 23 + 43 = 8 + 64 = 72, and 9 × 2 × 4 = 72.
The point (2, 4) lies on the edge: 23 + 43 = 72 and 9 × 2 × 4 = 72. 2.Differentiate both sides with respect to x. The chain rule gives ddx(y3) = 3y2dydx, and the product rule gives ddx(9xy) = 9y + 9xdydx.
Differentiating y3 needs the chain rule and 9xy the product rule, because y is a function of x. 3.So 3x2 + 3y2dydx = 9y + 9xdydx. Collect the terms in dydx on one side: (3y2 − 9x)dydx = 9y − 3x2.
So 3x2 + 3y2dydx = 9y + 9xdydx, and the dydx terms collect on one side. 4.Divide both sides by 3 and then by (y2 − 3x): dydx = 3y − x2y2 − 3x.
Dividing gives dydx = 3y − x2y2 − 3x, a gradient for any point on the edge. 5.(a) At (2, 4): 12 − 416 − 6 = 810 = 0.8, so the head is set at a gradient of 0.8.
(a) At (2, 4) the gradient is 810 = 0.8: the tangent rises 0.8 cm for each centimeter across. 6.(b) At (4, 2): 6 − 164 − 12 = −10−8 = 1.25. Swapping x and y leaves the relation unchanged, so the edge is its own mirror image in the line y = x, and 0.8 × 1.25 = 1.
(b) At (4, 2) it is −10−8 = 1.25. The edge is its own mirror image in y = x, and 0.8 × 1.25 = 1.
Answer: (a) dydx = 0.8 at (2, 4); (b) dydx = 1.25 at (4, 2), and the two gradients multiply to 1 because the edge is symmetrical about y = x
Common mistakes
- Differentiating y3 as 3y2 and stopping there. Since y is itself a function of x, the chain rule attaches dydx, and without it the equation cannot be solved for the gradient.
- Differentiating 9xy as 9dydx. It is a product of 9x and y, so the product rule gives 9y + 9xdydx.
More rules of differentiation problems, worked step by step →