AP Calculus AB • Differentiation: Composite, Implicit, and Inverse Functions

Implicit Differentiation

Differentiating equations that intertwine x and y without isolating either variable.

AP Calculus AB illustration with a smooth curve, infinity sign, and measuring ruler
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

Historical Context & Motivation

Not every relationship between two quantities can be neatly written as y = f(x). Circles, ellipses, and many curves that arise naturally in physics and engineering are described by equations such as x² + y² = 25, where y is implicitly defined as a function of x rather than explicitly solved for. The mathematical techniques that allow us to differentiate such equations evolved over centuries, driven by the same geometric curiosity that launched calculus itself.

1637 • Descartes & Analytic Geometry

René Descartes publishes La Géométrie, linking algebra to geometry. Curves are now described by equations in x and y, many of which cannot be solved explicitly for one variable.

1684 • Leibniz Publishes His Calculus

Gottfried Wilhelm Leibniz introduces dy/dx notation. His differential framework naturally accommodates treating y as a function of x inside any equation and applying what we now call the chain rule.

1748 • Euler Formalizes Functions

Leonhard Euler distinguishes between explicit functions (y = f(x)) and implicit relations (F(x, y) = 0), establishing the vocabulary we still use today.

1800s • Implicit Function Theorem

Augustin-Louis Cauchy and later Ulisse Dini prove rigorous conditions under which an implicit equation F(x, y) = 0 actually defines y as a smooth function of x near a point, justifying the differentiation technique.

The central question implicit differentiation answers is deceptively simple: How do we find the slope of a tangent line to a curve when we cannot—or choose not to—solve for y in terms of x? The answer hinges on a powerful idea: differentiate both sides of the equation with respect to x, treating y as a function of x and invoking the chain rule every time y appears.

SECTION 2

Core Principles & Definitions

Before diving into the mechanics, it is essential to distinguish between explicit and implicit representations of curves and to understand why the chain rule is the engine that makes implicit differentiation work. The following foundational ideas underpin every problem you will encounter on the AP exam.

1

Explicit vs. Implicit Form

An explicit function isolates y: y = √(25 − x²). An implicit equation keeps x and y intertwined: x² + y² = 25. Many curves have no convenient explicit form.
2

The Chain Rule Connection

Because y depends on x, differentiating any expression in y with respect to x requires the chain rule. For example, d/dx[y²] = 2y · (dy/dx), not simply 2y.
3

Differentiate Both Sides

If two expressions are equal, their derivatives with respect to x are also equal. Implicit differentiation applies d/dx to each side of the equation and then solves algebraically for dy/dx.
4

dy/dx as the Unknown

After differentiating, dy/dx may appear in multiple terms. Collect all dy/dx terms on one side, factor dy/dx out, and divide—exactly like solving a linear equation.
✦

KEY TAKEAWAY

Think of implicit differentiation as a two-phase operation, much like solving a system of equations in engineering. Phase one is differentiation: apply d/dx to every term, attaching (dy/dx) whenever y is differentiated via the chain rule. Phase two is algebra: isolate dy/dx just as you would solve for an unknown in any linear equation. Keeping these two phases mentally separate prevents the most common errors.

SECTION 3

Visual Explanation — The Circle x² + y² = 25

The circle x² + y² = 25 is the quintessential example of a curve that cannot be represented by a single explicit function: the upper semicircle is y = √(25 − x²) and the lower semicircle is y = −√(25 − x²). Implicit differentiation lets us find the slope at any point on the full circle in one unified computation, yielding dy/dx = −x/y. The diagram below shows the circle, a tangent line at the point (3, 4), and the slope triangle that confirms the derivative equals −3/4.

Implicit Differentiation on x² + y² = 25xy−5−313542−2−4(3, 4)tangent lineΔx = 4Δy = −3slope = −3/4 = −x/yThe tangent line at (3, 4) has slope dy/dx = −3/4, confirming the implicit derivative −x/y.
The circle x² + y² = 25 is plotted in violet. At the point (3, 4), the tangent line (cyan, dashed) has slope −3/4, which matches dy/dx = −x/y = −3/4. The amber slope triangle shows the rise (−3) over run (4).

Notice that the derivative dy/dx = −x/y depends on both x and y. This is characteristic of implicit differentiation: the derivative formula typically involves both variables because we never isolated y. At the top of the circle (0, 5), the slope is 0, and at (5, 0) the slope is undefined—exactly what geometry predicts for a horizontal and a vertical tangent, respectively.

SECTION 4

Mathematical Framework

The procedure for implicit differentiation rests on the chain rule and the assumption that y is a differentiable function of x in a neighborhood of the point of interest. Given an equation F(x, y) = 0, we differentiate every term with respect to x. Whenever we differentiate an expression involving y, we multiply by dy/dx. After differentiating, we treat dy/dx as the unknown and solve algebraically.

GENERAL IMPLICIT DIFFERENTIATION RULE

d/dx[f(y)]=f′(y)⋅(dy/dx)d/dx [f(y)] = f′(y) · (dy/dx)

f(y) is any differentiable function of y; f′(y) is its derivative with respect to y; the factor dy/dx arises from the chain rule because y itself depends on x.

Common Differentiation Patterns

POWER RULE (IMPLICIT)

d/dx[yn]=n⋅yn−1⋅(dy/dx)d/dx [yⁿ] = n · yⁿ⁻¹ · (dy/dx)

Applies the power rule to y and then multiplies by dy/dx. For instance, d/dx[y³] = 3y² · (dy/dx).

PRODUCT RULE (MIXED TERMS)

d/dx[x⋅y]=x⋅(dy/dx)+y⋅1=x(dy/dx)+yd/dx [x · y] = x · (dy/dx) + y · 1 = x(dy/dx) + y

When x and y are multiplied together, apply the product rule. One factor is x (derivative: 1) and the other is y (derivative: dy/dx).

TRIGONOMETRIC (IMPLICIT)

d/dx[sin(y)]=cos(y)⋅(dy/dx)d/dx [sin(y)] = cos(y) · (dy/dx)

Differentiate the outer trigonometric function normally, then multiply by dy/dx from the chain rule. Similarly, d/dx[cos(y)] = −sin(y) · (dy/dx).

⚠

AP EXAM TIP

On the AP Calculus AB exam, implicit differentiation appears in both multiple-choice and free-response questions. A common error is forgetting to attach dy/dx when differentiating y-terms. Every single time you differentiate a y-expression with respect to x, the chain rule contributes a factor of dy/dx. Missing even one instance will produce an incorrect derivative.

SECTION 5

Step-by-Step Procedure & Flowchart

Implicit differentiation follows a systematic procedure regardless of how complex the equation is. The flowchart below summarizes the decision-making process, and the subsequent numbered list breaks it down into concrete steps. Internalizing this algorithm allows you to approach any implicitly defined curve with confidence.

Implicit Differentiation — Step-by-Step FlowchartStart: Given F(x, y) = CStep 1: Apply d/dx to every term on both sidesx-only terms:differentiate normallyy-terms or mixed terms:chain rule → attach dy/dxStep 2: Collect all dy/dx terms on one sideStep 3: Factor out dy/dx, divide, simplifyResult: dy/dx = ⋯
The three-step flowchart: differentiate both sides (attaching dy/dx to every y-term via the chain rule), collect dy/dx terms, then factor and solve for dy/dx.
  1. Step 1 — Differentiate both sides with respect to x. For x-only terms, apply standard rules (power, product, quotient). For every y-term, differentiate as if y were a function of x—this means applying the chain rule and multiplying by dy/dx.
  2. Step 2 — Collect all terms containing dy/dx on one side. Move all remaining terms (those without dy/dx) to the opposite side. This rearrangement turns the equation into a form ready for factoring.
  3. Step 3 — Factor dy/dx out and divide. Since dy/dx appears as a common factor, factor it out from the collected terms and divide both sides by the remaining coefficient to isolate dy/dx.
⚠

COMMON PITFALL

When the equation involves products of x and y (such as xy² or x²y), you must apply the product rule before the chain rule. Students frequently differentiate xy as just x(dy/dx), forgetting the second product-rule term y · (dx/dx) = y. Always ask: "Is this term a product of x and y expressions?" If yes, product rule first.

SECTION 6

Worked Example — Finding dy/dx and a Tangent Line

Consider the equation x² + xy + y³ = 7. We wish to find dy/dx and then determine the equation of the tangent line at the point (1, −2). This example combines the product rule (for the xy term), the power rule (for x² and y³), and the chain rule, showcasing all the skills tested on the AP exam.

Find dy/dx for x² + xy + y³ = 7 and the tangent line at (1, −2)

  1. 1

    Step 1 — Verify the point lies on the curve

    Substitute x = 1 and y = −2 into the original equation: (1)² + (1)(−2) + (−2)³ = 1 − 2 − 8 = −9 ≠ 7. Let us instead use the point (2, 1): (2)² + (2)(1) + (1)³ = 4 + 2 + 1 = 7 ✓. We proceed with the point (2, 1).
    Verified: (2, 1) satisfies x² + xy + y³ = 7.
  2. 2

    Step 2 — Differentiate both sides with respect to x

    d/dx[x²] + d/dx[xy] + d/dx[y³] = d/dx[7]. Term by term: 2x + (x · dy/dx + y · 1) + 3y² · dy/dx = 0. The xy term required the product rule, and the y³ term required the chain rule.
    2x + x(dy/dx) + y + 3y²(dy/dx) = 0
  3. 3

    Step 3 — Collect dy/dx terms on one side

    Group terms with dy/dx on the left and move everything else to the right: x(dy/dx) + 3y²(dy/dx) = −2x − y.
    (dy/dx)(x + 3y²) = −2x − y
  4. 4

    Step 4 — Factor and solve for dy/dx

    Divide both sides by (x + 3y²): dy/dx = (−2x − y) / (x + 3y²).
    dy/dx = (−2x − y) / (x + 3y²)
  5. 5

    Step 5 — Evaluate at (2, 1) and write the tangent line

    Substitute x = 2 and y = 1: dy/dx = (−2(2) − 1) / (2 + 3(1)²) = (−4 − 1) / (2 + 3) = −5/5 = −1. Using point-slope form: y − 1 = −1(x − 2), which simplifies to y = −x + 3.
    Tangent line: y = −x + 3 with slope −1 at (2, 1).

SECTION 7

Explicit vs. Implicit Differentiation — When to Use Each

Implicit differentiation is not a replacement for explicit differentiation—it is a complementary tool. In some cases you can solve for y first and differentiate explicitly; in other cases, the implicit approach is far more efficient or even the only viable option. The table below clarifies when each technique is most appropriate.

FeatureExplicit DifferentiationImplicit Differentiation
Starting formy = f(x) — y is isolatedF(x, y) = 0 — x and y intertwined
Result formdy/dx in terms of x onlydy/dx in terms of x and y
Best forSimple functions; when y isolates easilyCircles, ellipses, cubics, relations with no clean y = f(x)
Chain rule usageApplied to composite expressions in xApplied every time a y-term is differentiated
To evaluate slopeSubstitute x-value onlySubstitute both x and y values

Comparison of explicit and implicit differentiation techniques

✦

KEY TAKEAWAY

Think of explicit differentiation as driving on a straight highway—you can see your destination directly. Implicit differentiation is more like navigating with GPS through winding streets: you follow a procedure (chain rule at every turn involving y) and arrive at the same destination—the derivative—even though the path is less direct. The implicit method always works, even on equations where explicit solving would be impractical or impossible.

SECTION 8

Connection to Advanced Topics

Implicit differentiation is not an isolated technique; it is a gateway to several deeper ideas in calculus and multivariable analysis. On the AP Calculus AB exam itself, implicit differentiation frequently combines with related rates, second derivatives of implicitly defined functions, and slope-field analysis. Beyond the AB curriculum, the same principle underlies partial derivatives and the implicit function theorem in multivariable calculus.

AB Curriculum ApplicationAdvanced Extension (BC & Beyond)
Related Rates: Differentiate with respect to t rather than x; every variable gets a rate (dx/dt, dy/dt, etc.).Partial Derivatives: In multivariable calculus, dy/dx = −Fₓ/Fᵧ where F(x,y) = 0, formalizing implicit differentiation via partial derivatives.
Second Implicit Derivative: Differentiate dy/dx again implicitly and substitute the first derivative to express d²y/dx² in terms of x and y.Implicit Function Theorem: Guarantees when F(x,y) = 0 locally defines y = f(x) and that the derivative exists, provided Fᵧ ≠ 0.
Tangent Lines to Conics: Find slopes on ellipses, hyperbolas, and other conic sections without solving for y.Implicit Curves in 3D: The gradient ∇F is perpendicular to level surfaces F(x,y,z) = C, generalizing the tangent-line idea to tangent planes.

How implicit differentiation connects to the broader calculus landscape

One particularly important extension within the AB scope is computing the second derivative of an implicitly defined function. After finding dy/dx, differentiate it again with respect to x—every y in the first derivative generates another chain-rule factor of dy/dx. Then substitute your expression for dy/dx to obtain d²y/dx² purely in terms of x and y. This technique lets you determine concavity and locate inflection points on implicit curves.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

When differentiating the equation x² + y² = 36 implicitly with respect to x, the term y² produces 2y(dy/dx) rather than simply 2y. Which differentiation rule is directly responsible for the appearance of the dy/dx factor?
  • A. The power rule
  • B. The product rule
  • C. The chain rule
  • D. The quotient rule
  • E. The constant multiple rule
Show answer (C)
The correct answer is C, the chain rule. Because y is treated as a function of x, differentiating y² with respect to x means differentiating an outer function (squaring) applied to an inner function (y(x)). The chain rule states d/dx[y²] = 2y · (dy/dx). The power rule alone (A) would give 2y if y were the independent variable, but it does not account for y's dependence on x. The product rule (B) applies when two separate functions are multiplied—y² is a composition, not a product of distinct functions. The quotient rule (D) applies to ratios, which is irrelevant here. The constant multiple rule (E) applies to scalar coefficients and does not introduce a dy/dx factor.

Question 2: BASIC CALCULATION

Given the equation x³ + y³ = 9, what is dy/dx?
  • A. −x³ / y³
  • B. −x² / y²
  • C. x² / y²
  • D. −y² / x²
  • E. 3x² + 3y²
Show answer (B)
Differentiating both sides with respect to x: 3x² + 3y²(dy/dx) = 0. Solving: 3y²(dy/dx) = −3x², so dy/dx = −3x² / (3y²) = −x² / y². The correct answer is B. Choice A uses cubes instead of squares—those are the original exponents, not the derivatives. Choice C has the wrong sign; the negative arises because the x² term moves to the opposite side. Choice D swaps x and y, giving −y² / x², which would result from incorrectly solving for dx/dy or confusing which variable goes in the numerator. Choice E adds instead of dividing and is dimensionally inconsistent with a derivative.

Question 3: INTERMEDIATE

For the curve defined by x²y + xy² = 6, find dy/dx at the point (1, 2).
  • A. −8/5
  • B. −6/5
  • C. 8/5
  • D. −2
  • E. −4/5
Show answer (A)
First verify: (1)²(2) + (1)(2)² = 2 + 4 = 6 ✓. Differentiate implicitly: d/dx[x²y] + d/dx[xy²] = 0. Using the product rule on each term: (2xy + x²(dy/dx)) + (y² + x · 2y(dy/dx)) = 0. This expands to: 2xy + x²(dy/dx) + y² + 2xy(dy/dx) = 0. Collect dy/dx terms: (x² + 2xy)(dy/dx) = −2xy − y². So dy/dx = (−2xy − y²) / (x² + 2xy). At (1, 2): dy/dx = (−2(1)(2) − (2)²) / ((1)² + 2(1)(2)) = (−4 − 4) / (1 + 4) = −8/5. The answer is A. Choice B (−6/5) likely arises from a product-rule error on the xy² term. Choice C (8/5) has the wrong sign. Choice D (−2) omits the y² term in the numerator. Choice E (−4/5) results from incorrectly computing only half the numerator.

Question 4: APPLIED

5 pts
A curve is defined by the equation sin(y) + 2xy = 2π. (a) Verify that the point (1, π) lies on the curve. (b) Use implicit differentiation to find dy/dx in terms of x and y. (c) Find the equation of the tangent line to the curve at (1, π). (d) Determine whether the curve is concave up or concave down at (1, π) by finding d²y/dx². (e) Explain in one sentence why implicit differentiation is necessary for this equation rather than solving for y explicitly.
Show answer
Rubric (5 points): Point 1 (Part a): Substitute x = 1, y = π into sin(y) + 2xy: sin(π) + 2(1)(π) = 0 + 2π = 2π ✓. The point (1, π) lies on the curve. Point 2 (Part b): Differentiate both sides with respect to x: cos(y)(dy/dx) + 2[y + x(dy/dx)] = 0. Expand: cos(y)(dy/dx) + 2y + 2x(dy/dx) = 0. Factor: (cos(y) + 2x)(dy/dx) = −2y. Therefore dy/dx = −2y / (cos(y) + 2x). Point 3 (Part c): At (1, π): dy/dx = −2π / (cos(π) + 2(1)) = −2π / (−1 + 2) = −2π / 1 = −2π. Tangent line: y − π = −2π(x − 1), or equivalently y = −2πx + 3π. Point 4 (Part d): To find d²y/dx², differentiate dy/dx = −2y / (cos(y) + 2x) using the quotient rule. Let u = −2y, v = cos(y) + 2x. Then du/dx = −2(dy/dx) and dv/dx = −sin(y)(dy/dx) + 2. So d²y/dx² = [v(du/dx) − u(dv/dx)] / v². At (1, π): v = 1, du/dx = −2(−2π) = 4π, dv/dx = −sin(π)(−2π) + 2 = 0 + 2 = 2, u = −2π. Thus d²y/dx² = [1(4π) − (−2π)(2)] / 1² = (4π + 4π) / 1 = 8π. Since d²y/dx² = 8π > 0, the curve is concave up at (1, π). Point 5 (Part e): The equation sin(y) + 2xy = 2π cannot be algebraically solved for y as an explicit function of x because the variable y appears both inside a transcendental function (sine) and in a polynomial term (2xy), making isolation impossible.

Question 5: CRITICAL THINKING

3 pts
The curve defined by y³ − y = x² has horizontal tangent lines at certain points. (a) Use implicit differentiation to find dy/dx. (b) Determine the coordinates of all points on the curve where the tangent line is horizontal. (c) At these points, is the curve concave up or concave down? Justify your answer using the second derivative.
Show answer
Rubric (3 points): Point 1 (Part a): Differentiating y³ − y = x² implicitly: 3y²(dy/dx) − (dy/dx) = 2x. Factor: (3y² − 1)(dy/dx) = 2x. So dy/dx = 2x / (3y² − 1). Point 2 (Part b): Horizontal tangents occur when dy/dx = 0, which requires 2x = 0, so x = 0. Substituting x = 0 into the original equation: y³ − y = 0, so y(y² − 1) = 0, giving y = 0, y = 1, y = −1. The three points with horizontal tangent lines are (0, 0), (0, 1), and (0, −1). Note: at (0, 0), the denominator 3(0)² − 1 = −1 ≠ 0, so the derivative is defined. At (0, 1), the denominator is 3(1) − 1 = 2 ≠ 0. At (0, −1), the denominator is 3(1) − 1 = 2 ≠ 0. All three are valid. Point 3 (Part c): Differentiate dy/dx = 2x / (3y² − 1) again using the quotient rule. d²y/dx² = [(3y² − 1)(2) − 2x(6y · dy/dx)] / (3y² − 1)². At horizontal tangent points, dy/dx = 0 and x = 0, so d²y/dx² = [2(3y² − 1) − 0] / (3y² − 1)² = 2 / (3y² − 1). At (0, 0): d²y/dx² = 2 / (−1) = −2 < 0, so the curve is concave down. At (0, 1): d²y/dx² = 2 / 2 = 1 > 0, so the curve is concave up. At (0, −1): d²y/dx² = 2 / 2 = 1 > 0, so the curve is concave up.

SUMMARY

Lesson Summary

Summary

Implicit differentiation allows us to find dy/dx for equations where y cannot be easily isolated. The technique applies d/dx to both sides of the equation, using the chain rule every time a y-term is differentiated—this introduces a factor of dy/dx. After differentiating, the process becomes purely algebraic: collect dy/dx terms on one side, factor dy/dx out, and divide. The result is typically expressed in terms of both x and y.

Key reminders for the AP exam: always verify that your point lies on the curve before evaluating the derivative; use the product rule for mixed terms like xy²; and remember that implicit differentiation extends naturally to related rates problems (differentiate with respect to t instead of x) and second implicit derivatives for concavity analysis. Mastering this technique is essential, as it appears across multiple units of the AP Calculus AB curriculum.

Varsity Tutors • AP Calculus AB • Implicit Differentiation