Implicit Differentiation

Some curves cannot be solved for y and still have a slope at all but a few of their points. Choose a curve and an x: the page finds every point above that x, draws the tangent at the one you pick, and works out −Fx/Fy there. Then step through the differentiation and check each line against the numbers.

Implicit differentiation
Loading interactive simulation...

Lesson

The theory — Implicit Differentiation

A curve F(x, y) = 0 that cannot be solved for y still has a slope at each of its smooth points: dy/dx = −F_x/F_y, a formula in x and y together. It breaks where F_y = 0.

What each symbol means

F_x
∂F/∂x, the derivative of F in x with y held fixed
F_y
∂F/∂y, the derivative of F in y with x held fixed; where it is 0 the slope formula has no value

Where the formula comes from

  1. Differentiate along the curve. Treat y as a function of x and differentiate F(x, y(x)) = 0. Each x term differentiates as usual; each y term picks up a factor y′ by the chain rule. The two pieces are F_x and F_y·y′, and they add to 0.
  2. Solve for y′. Wherever F_y is not zero, divide by it. The slope comes out in terms of x and y, so it needs the point, not just x: one x can carry several points and several slopes.
  3. Where F_y = 0. The formula has nothing to divide by. If F_x is not zero there, the tangent is vertical; if F_x is zero too, the formula reads 0/0 and says nothing, as at the folium's crossing.
Assumes
F has partial derivatives at the point. On the three built-in curves the points above an x are found in closed form; on a typed curve they are found numerically, by scanning F along y for a change of sign, so a point where F touches 0 without crossing it is not listed.

Problems solved in full

  1. The tangent to a circle 3 steps

    Find dy/dx on x² + y² = 25, and the tangent line at (3, 4).

    Open this problem in the tool

    1. Differentiate both sides with y a function of x. The chain rule puts a y′ beside the derivative of y²:

    2. Collect y′ and solve:

    3. At (3, 4), then the line through that point with that slope:

    Answer

    y′ = −x/y, and the tangent at (3, 4) is y = −3x/4 + 25/4. The page prints F_x = 6 and F_y = 8 there, and −6/8 is the slope. The tangent is at right angles to the radius, whose slope is 4/3.

  2. A product inside the curve 3 steps

    Find dy/dx on x²y + y² = 2 and its value at (1, 1).

    Open this problem in the tool

    Show solution
    1. Differentiate both sides. x²y is a product, so it gives two terms, and every y picks up a y′:

    2. Collect the y′ terms and solve:

    3. At (1, 1):

    Answer

    y′ = −2xy/(x² + 2y), and −2/3 at (1, 1). On the page: Your own, x^2*y + y^2 = 2, x = 1. It prints F_x = 2 and F_y = 3.

  3. A cube of y 3 steps

    Find dy/dx on y³ + xy = 2 and its value at (1, 1).

    Open this problem in the tool

    Show solution
    1. Differentiate both sides. y³ gives 3y²y′ by the chain rule, and xy gives y + xy′ by the product rule:

    2. Collect and solve:

    3. At (1, 1):

    Answer

    y′ = −y/(3y² + x), and −1/4 at (1, 1). No one can solve this curve for y in a line, and the slope never needed it.

  4. Where the tilted ellipse is level 3 steps

    Find the points of x² + xy + y² = 3 where the tangent is horizontal.

    Open this problem in the tool

    Show solution
    1. Differentiate and solve for y′ as before:

    2. The slope is zero where the numerator is, so put y = −2x back into the curve:

    3. The two points:

    Answer

    (1, −2) and (−1, 2). At (1, −2) the page prints F_x = 0 and a slope of 0. Where the denominator is zero instead, at (2, −1) and (−2, 1), the tangent is vertical.

  5. The derivative of ln x 3 steps

    Use eʸ = x to find the derivative of y = ln x.

    Open this problem in the tool

    Show solution
    1. Differentiate both sides of eʸ = x. The left side is a chain, so it gives eʸ times y′:

    2. Solve, and use eʸ = x once more:

    3. So y = ln x has slope 1/x:

    Answer

    (ln x)′ = 1/x. At x = 2 the page prints a slope of 0.5. The argument used only the derivative of eˣ, which is how the rule for ln x is first proved.

  6. The second derivative of a circle 3 steps

    Find y″ on x² + y² = 25 and its value at (3, 4).

    Open this problem in the tool

    Show solution
    1. Start from the first derivative:

    2. Differentiate again with the quotient rule, replace y′ by −x/y, and use x² + y² = 25:

    3. At (3, 4):

    Answer

    y″ = −25/y³, and −25/64 ≈ −0.3906 at (3, 4). The second derivative is past what the page computes; it prints the slope −0.75 that the calculation starts from.

  7. The tip of the folium 3 steps

    Find the slope of x³ + y³ = 6xy at the tip of its loop, (3, 3).

    Open this problem in the tool

    Show solution
    1. Differentiate both sides. The right side is a product:

    2. Collect y′ and solve, dividing through by 3:

    3. At (3, 3):

    Answer

    y′ = −1 at (3, 3). The curve is symmetric in y = x, so its tangent there has to cross that line at right angles. The page prints F_x = F_y = 9.

  8. The top of the leaf 4 steps

    Find the highest point of the folium's leaf exactly, and decide whether it is the tip (3, 3), where the leaf meets the line y = x. Press Top of the leaf: at x = 2.52 the upper point's slope reads −0.0002, close to 0, but a slider of step 0.01 can only bracket the answer.

    Open this problem in the tool

    Show solution
    1. The tangent is horizontal where y′ = 0, which needs the numerator 2y − x² to be 0 while the denominator is not:

    2. Put y = x²/2 into the curve. x = 0 is the origin, where the formula is 0/0, so divide by x³:

    3. So x is the cube root of 16, and the denominator there is not 0:

    4. At the tip (3, 3) the slope is −1, so the leaf is still rising to the left of it:

    Answer

    The top of the leaf is (24/3, 25/3) ≈ (2.5198, 3.1748), higher than the tip by 0.1748. Its height is the x of the vertical tangent in Where it folds, because swapping x and y leaves x³ + y³ = 6xy unchanged and turns horizontal tangents into vertical ones. The page reads a slope wherever you put the point; solving y′ = 0 is algebra it does not do.

Three points above x = 1, and three slopes 🖖

Press Three slopes at x = 1. Above x = 1 the folium has three points, and the curve passes through each with a different slope. A formula in x alone gives one number for each x, so it cannot be this curve's slope. The implicit derivative, y′ = (2y − x²)/(y² − 2x), asks for the point's y as well, and the table under the curve evaluates it at all three. Descartes, who first wrote about the curve in 1638, believed the leaf repeated in every quadrant like the petals of a flower. There is one leaf, and two tails.

The formula fails exactly where the curve gains or loses a point 🖖

Press Where it folds. Here the denominator Fy is zero and the tangent is vertical. To the left there are three points above x; here the upper two meet; to the right one is left. On all three curves the number of points above x changes exactly where Fy = 0, and nowhere else. That is the implicit function theorem seen from the slider: where Fy ≠ 0, the curve near a point is the graph of one function, and where Fy = 0, two of those functions run into each other.

At the origin the formula says 0/0, and the curve has two tangents 🖖

Press The crossing. At the origin both Fx and Fy are zero, so the formula reads 0/0, which is more than a vertical tangent. The curve passes through this point twice: once leaving flat along the leaf's lower edge, once rising steeply across it. Approach the origin along x = 0.1, 0.01, 0.001 and the table shows one slope shrinking towards 0 and two growing without bound. No single slope could be right, and the canvas draws both tangents.

Learning path

Differentiation: how rates combine

References (2)