BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Implicit differentiation and the derivatives of inverse functions

Implicit differentiation finds dy/dx from an equation that defines y only indirectly: differentiate the whole equation, using the chain rule on every y, then solve for y′. It extends the power rule to fractional powers, gives slopes on curves like a circle without solving for y, and gives the derivatives of inverse functions: d/dx arctan x = 1/(1 + x²) and d/dx arcsin x = 1/√(1 − x²).

You need this first

Full reading path (4 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
On this page · 7 sections
  1. Fractional powers
  2. A circle, two ways
  3. When y cannot be found easily
  4. Inverse functions
  5. The derivative of arctan
  6. The derivative of arcsin
  7. Summary

With the chain rule from Lecture 4 in hand, Lecture 5 uses it in a clever algebraic way. Many functions are easier to describe by an equation they satisfy than by a formula. Implicit differentiation gets their derivatives straight from that equation.

Fractional powers#

So far the power rule ddxxa=axa−1\frac{d}{dx}x^a = ax^{a-1} is proved for whole numbers aa, positive and negative. The first example extends it to rational exponents a=m/na = m/n, with mm and nn integers; with m=1m = 1 these are the nn-th roots. Start from

A rational power
y=xm/n⟺yn=xmy = x^{m/n} \quad\Longleftrightarrow\quad y^n = x^m
In words

y equals x to the power m over n, end of power, is equivalent to y to the power n equals x to the power m

We cannot yet differentiate the first form, but the second involves only whole-number powers. Differentiate both sides with respect to xx. On the left, yy is a function of xx, so the chain rule is needed:

Differentiating the equation
ddx yn=ddy(yn) dydx=n yn−1 dydx=m xm−1\frac{d}{dx}\,y^n = \frac{d}{dy}\bigl(y^n\bigr)\,\frac{dy}{dx} = n\,y^{n-1}\,\frac{dy}{dx} = m\,x^{m-1}
In words

d over d x y to the power n equals d over d y (y to the power n ) d y over d x equals n y to the power n minus 1, end of power, d y over d x equals m x to the power m minus 1, end of power

One factor, dy/dxdy/dx, is unknown; everything else is known. Solve for it and put back y=xm/ny = x^{m/n}:

Solving for dy/dx
dydx=mn xm−1yn−1=mn xm−1x(m/n)(n−1)=mn x m−1−m+m/n\frac{dy}{dx} = \frac{m}{n}\,\frac{x^{m-1}}{y^{n-1}} = \frac{m}{n}\,\frac{x^{m-1}}{x^{(m/n)(n-1)}} = \frac{m}{n}\,x^{\,m - 1 - m + m/n}
In words

d y over d x equals m over n, times x to the power m minus 1, end of power, over y to the power n minus 1, end of power, equals m over n, times x to the power m minus 1, end of power, over the quantity x to the power the quantity m over n, the quantity n minus 1, end of power, equals m over n, times x to the power m minus 1 minus m plus m over n, end of power

The exponent simplifies to m/n−1=a−1m/n - 1 = a - 1:

Power rule for rational exponents
ddx xa=a xa−1,a=mn\frac{d}{dx}\,x^{a} = a\,x^{a-1}, \qquad a = \frac{m}{n}
In words

d over d x x to the power a equals a x to the power a minus 1, end of power, a equals m over n

Source: 18.01 Lecture 5 notes, p. 1

just what we hoped. [At the end of this step the transcript has "a xn−1a\,x^{n-1}"; the exponent is a−1a - 1, as the notes have.] Everything after the substitution is arithmetic of exponents; the calculus is in the one chain-rule step.

A circle, two ways#

The equation x2+y2=1x^2 + y^2 = 1 is a circle. It does not give yy as a single function of xx, but it can be solved, y=±1−x2y = \pm\sqrt{1 - x^2}; take the upper half. The explicit route rewrites the square root as a power and uses the chain rule with a=12a = \tfrac12 (the case just proved):

Explicit derivative
y=(1−x2)1/2,y′=12(1−x2)−1/2(−2x)=−x1−x2y = (1 - x^2)^{1/2}, \qquad y' = \tfrac12(1 - x^2)^{-1/2}(-2x) = \frac{-x}{\sqrt{1 - x^2}}
In words

y equals the quantity 1 minus x squared, all to the power one half, y prime equals one half the quantity 1 minus x squared, all to the power minus one half, end of power, (-2 x) equals minus x over the square root of 1 minus x squared, end of root

Source: 18.01 Lecture 5 transcript, pp. 3–5

The implicit route leaves the equation in its simplest form and differentiates it as it stands, applying the chain rule to y2y^2:

Implicit derivative
2x+2y y′=0⟹y′=−xy2x + 2y\,y' = 0 \quad\Longrightarrow\quad y' = -\frac{x}{y}
In words

2 x plus 2 y y prime equals 0 which gives y prime equals minus x over y

The two agree, since y=1−x2y = \sqrt{1 - x^2}. The implicit answer is even better: it also holds on the lower half, where yy is negative. For x>0x > 0 the slope is negative on top (the circle tilts down) and positive at the bottom (it tilts up), exactly as −x/y-x/y says.

When y cannot be found easily#

Implicit differentiation shines when solving for yy is hard. The lecture's example is a fourth-degree equation:

A quartic curve
y4+x y2−2=0y^4 + x\,y^2 - 2 = 0
In words

y to the power 4 plus x y squared minus 2 equals 0

It happens to be quadratic in y2y^2, so it can be solved, but the result is a tangle of up to four branches:

Explicit solution
y2=−x±x2+82,y=±−x±x2+82y^2 = \frac{-x \pm\sqrt{x^2 + 8}}{2}, \qquad y = \pm\sqrt{\frac{-x \pm\sqrt{x^2 + 8}}{2}}
In words

y squared equals the quantity minus x plus or minus the square root of x squared plus 8, end of root, all over 2, y equals plus or minus the square root of the quantity minus x plus or minus the square root of x squared plus 8, end of root, all over 2, end of root

Differentiating the original equation instead needs the chain rule on y4y^4 and the product rule on x y2x\,y^2:

Implicit differentiation
4y3 y′+y2+x (2y y′)=0⟹y′=−y24y3+2xy4y^3\,y' + y^2 + x\,(2y\,y') = 0 \quad\Longrightarrow\quad y' = \frac{-y^2}{4y^3 + 2xy}
In words

4 y cubed y prime plus y squared plus x (2 y y prime ) equals 0 which gives y prime equals minus y squared over the quantity 4 y cubed plus 2 x y

This gives the slope in terms of xx and yy, so you still need the point on the curve. At x=1x = 1, y=1y = 1 works (1+1−2=01 + 1 - 2 = 0), and there

Slope at (1, 1)
y′=−124⋅13+2⋅1⋅1=−16y' = \frac{-1^2}{4 \cdot 1^3 + 2 \cdot 1 \cdot 1} = -\frac16
In words

y prime equals minus 1 squared over the quantity 4 times 1 cubed plus 2 times 1 times 1, equals minus one sixth

Source: 18.01 Lecture 5 transcript, pp. 6–7

At another xx, such as x=2x = 2, you would have to find yy first (from the explicit formula, or numerically), but you never have to differentiate that formula: once the point is known, the slope comes from simple algebra. As the lecturer puts it, we can differentiate any function we can describe, but not one we cannot find at all. (The notes work a similar example, y3+xy2+1=0y^3 + xy^2 + 1 = 0, which gives y′=−y2/(3y2+2xy)y' = -y^2/(3y^2 + 2xy); notes, p. 2.)

Worked example

A slope on an ellipse

Find the slope of the ellipse x24+y2=1\dfrac{x^2}{4} + y^2 = 1 at the point (2,22)\bigl(\sqrt2, \tfrac{\sqrt2}{2}\bigr).

Check the point

24+24=1\tfrac{2}{4} + \tfrac{2}{4} = 1: it lies on the ellipse.

Differentiate implicitly

2x4+2y y′=0\dfrac{2x}{4} + 2y\,y' = 0, so y′=−x4yy' = -\dfrac{x}{4y}.

Evaluate

y′=−24⋅2/2=−12=−0.5y' = -\dfrac{\sqrt2}{4 \cdot \sqrt2/2} = -\dfrac{1}{2} = -0.5.

Inverse functions#

The most important use of implicit differentiation is for inverse functions. If y=xy = \sqrt x (for x>0x > 0), squaring gives y2=xy^2 = x; the function g(y)=y2g(y) = y^2 undoes f(x)=xf(x) = \sqrt x. In general, if y=f(x)y = f(x) and g(y)=xg(y) = x, then g(f(x))=xg(f(x)) = x, and gg is called the inverse of ff, written f−1f^{-1}:

Inverse function
y=f(x),g(y)=x,g(f(x))=x,g=f−1y = f(x), \qquad g(y) = x, \qquad g(f(x)) = x, \qquad g = f^{-1}
In words

y equals f(x), g(y) equals x, g(f(x)) equals x, g equals f to the power minus 1

To draw both on the same axes, write the inverse with xx as its variable again. That swaps the roles of xx and yy: each point (a,b)(a, b) on the graph of ff becomes (b,a)(b, a), so the graph of f−1f^{-1} is the graph of ff reflected in the line y=xy = x (notes, p. 4). The square root and the square are such a pair.

Differentiating f−1(y)=xf^{-1}(y) = x with respect to xx, with the chain rule on the left, gives the derivative of any inverse function from the derivative of the function itself:

Derivative of an inverse function
ddy(f−1(y)) dydx=1⟹ddyf−1(y)=1dy/dx\frac{d}{dy}\bigl(f^{-1}(y)\bigr)\,\frac{dy}{dx} = 1 \quad\Longrightarrow\quad \frac{d}{dy}f^{-1}(y) = \frac{1}{dy/dx}
In words

d over d y (f to the power minus 1 (y) ) d y over d x equals 1 which gives d over d y f to the power minus 1 (y) equals 1 over the quantity d y over d x

Source: 18.01 Lecture 5 notes, p. 2

The derivative of arctan#

The inverse tangent, also written tan⁡−1\tan^{-1}, is defined by

Arctangent
y=arctan⁡x⟺tan⁡y=x,−π2<y<π2y = \arctan x \quad\Longleftrightarrow\quad \tan y = x, \qquad -\frac{\pi}{2} < y < \frac{\pi}{2}
In words

y equals arc tangent x is equivalent to tan y equals x, minus pi over 2 less than y less than pi over 2

Its graph is the tangent's graph (between −π/2-\pi/2 and π/2\pi/2) reflected in the diagonal: defined for every xx, rising from the horizontal asymptote y=−π/2y = -\pi/2 to y=π/2y = \pi/2. The one ingredient needed is the derivative of the tangent, which the quotient rule gives (as on the Lecture 3 page):

Derivative of the tangent
ddytan⁡y=1cos⁡2y=sec⁡2y\frac{d}{dy}\tan y = \frac{1}{\cos^2 y} = \sec^2 y
In words

d over d y tan y equals 1 over the quantity cos squared y, equals secant squared y

Differentiate tan⁡y=x\tan y = x implicitly and solve:

Implicit step
1cos⁡2y y′=1⟹y′=cos⁡2y=cos⁡2(arctan⁡x)\frac{1}{\cos^2 y}\,y' = 1 \quad\Longrightarrow\quad y' = \cos^2 y = \cos^2(\arctan x)
In words

1 over the quantity cos squared y, times y prime equals 1 which gives y prime equals cos squared y equals cos squared ( arc tangent x)

That is correct but clumsy. A right triangle simplifies it: tan⁡y=x\tan y = x means an angle yy with opposite side xx and adjacent side 1, so the hypotenuse is 1+x2\sqrt{1 + x^2} and cos⁡y=1/1+x2\cos y = 1/\sqrt{1 + x^2}. Hence

Derivative of arctan
ddxarctan⁡x=11+x2\frac{d}{dx}\arctan x = \frac{1}{1 + x^2}
In words

d over d x arc tangent x equals 1 over the quantity 1 plus x squared

The arctangent, computed with atan, is the tangent (between −π/2-\pi/2 and π/2\pi/2, dashed) reflected in the line y=xy = x. Its slope 1/(1+x2)1/(1 + x^2) is 1 at x=0x = 0 and falls to 0 far out, where arctan⁡x\arctan x levels off towards ±π/2≈±1.57\pm\pi/2 \approx \pm 1.57.

The derivative of arcsin#

The inverse sine is even quicker, because its trigonometric identity is simpler. From sin⁡y=x\sin y = x:

Derivative of arcsin
(cos⁡y) y′=1⟹y′=1cos⁡y=11−x2(\cos y)\,y' = 1 \quad\Longrightarrow\quad y' = \frac{1}{\cos y} = \frac{1}{\sqrt{1 - x^2}}
In words

( cos y) y prime equals 1 which gives y prime equals 1 over the quantity cos y, equals 1 over the square root of 1 minus x squared, end of root

using cos⁡y=1−sin⁡2y=1−x2\cos y = \sqrt{1 - \sin^2 y} = \sqrt{1 - x^2}. A warning: these formulas need a choice of branch. For the arcsine, yy is taken between −π/2-\pi/2 and π/2\pi/2, where cos⁡y≥0\cos y \ge 0; drawing the graph shows where the formula makes sense.

Worked example

Using the new derivatives

Find (a) the slope of y=x2/3y = x^{2/3} at x=8x = 8; (b) the slopes of arctan⁡x\arctan x at x=1x = 1 and of arcsin⁡x\arcsin x at x=0.5x = 0.5.

(a) Rational power

y′=23x−1/3=23⋅12=13≈0.333y' = \tfrac23 x^{-1/3} = \tfrac23 \cdot \tfrac12 = \tfrac13 \approx 0.333, since 81/3=28^{1/3} = 2.

(b) Inverse functions

11+12=0.5\dfrac{1}{1 + 1^2} = 0.5 and 11−0.25=10.75≈1.155\dfrac{1}{\sqrt{1 - 0.25}} = \dfrac{1}{\sqrt{0.75}} \approx 1.155.

Summary#

  • Implicit differentiation: differentiate both sides of an equation with respect to xx, using the chain rule on every yy, then solve the resulting linear equation for y′y'.
  • From yn=xmy^n = x^m it proves the power rule for rational exponents, ddxxm/n=mnxm/n−1\frac{d}{dx}x^{m/n} = \frac{m}{n}x^{m/n - 1}.
  • On the circle x2+y2=1x^2 + y^2 = 1: y′=−x/yy' = -x/y, valid on both halves; on y4+xy2−2=0y^4 + xy^2 - 2 = 0: y′=−y2/(4y3+2xy)y' = -y^2/(4y^3 + 2xy), which is −1/6-1/6 at (1,1)(1, 1). The slope needs the point, not a formula for yy.
  • The inverse f−1f^{-1} undoes ff; its graph is the reflection in y=xy = x, and ddyf−1(y)=1dy/dx\dfrac{d}{dy}f^{-1}(y) = \dfrac{1}{dy/dx}.
  • ddxarctan⁡x=11+x2\dfrac{d}{dx}\arctan x = \dfrac{1}{1 + x^2} and ddxarcsin⁡x=11−x2\dfrac{d}{dx}\arcsin x = \dfrac{1}{\sqrt{1 - x^2}}; choose the branch with care.

Symbols on this page

Show the 25 symbols used here
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≥\ge greater than or equal.
Is greater than or equal to. Say it: “is greater than or equal to”.
⇒\Rightarrow implies.
Implies: what follows is a consequence of what came before. Say it: “which gives”.
⟺\Longleftrightarrow if and only if.
If and only if: each statement implies the other. Say it: “is equivalent to”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
tan⁡\tan tangent.
Tangent of an angle, sin/cos. Say it: “tan”.
arcsin⁡\arcsin arcsine.
Inverse sine: the angle whose sine is the given number. Say it: “arc sine”.
aa a.
The exponent in the power rule, a = m/n; in the reflection picture, the first coordinate of a point (a, b); in the cosmology note, the scale factor. Say it: “a”.
t0t_{0} today.
Today: the present time, about 13.8 billion years after the Big Bang in the real universe (simple models on some pages give other ages). Unit: s (usually billions of years). Say it: “t nought”.
arctan⁡\arctan arctangent.
The inverse tangent: arctan x is the angle between −π/2 and π/2 whose tangent is x. Say it: “arc tangent”.
xx x.
The variable; for the inverse functions, the value whose arctangent or arcsine is taken; in the cosmology note, the size of the universe relative to today, x = a/a(t₀). Say it: “x”.
yy y.
A function of x given by an equation (y = x^(m/n), a point on a circle or curve, arctan x, arcsin x). Say it: “y”.
tt t.
In the cosmology note, cosmic time. Unit: s. Say it: “t”.
dd d.
The d of a derivative, as in dy/dx and d/dy. Say it: “d”.
nn n.
The integer denominator of the rational exponent m/n; with m = 1, x^(1/n) is the n-th root. Say it: “n”.
mm m.
The integer numerator of the rational exponent m/n. Say it: “m”.
ff f.
A function y = f(x); f⁻¹ is its inverse. Say it: “f”.
gg g.
The inverse function g = f⁻¹, with g(y) = x. Say it: “g”.
bb b.
In the reflection picture, the second coordinate of a point (a, b), which becomes (b, a). Say it: “b”.
y′y' y prime.
The derivative of y with respect to x, dy/dx: the slope of the curve. Say it: “y prime”.
sec⁡\sec secant.
The secant, sec y = 1/cos y; so sec² y = 1/cos² y. Say it: “secant”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 27 words used here

New here

implicit differentiation.
Finding dy/dx from an equation that links x and y, by differentiating both sides and solving for dy/dx, without first solving for y.
inverse function.
The function that undoes another: if f turns x into y, its inverse turns y back into x.

Also used

chain rule.
The rule for the derivative of a function of a function: multiply the derivative of the outer one by that of the inner one. Explained in Circular motion: polar coordinates, position and velocity.
derivative.
The rate at which a function changes as its input changes: the slope of its graph at a point. Explained in Position and velocity in one dimension.
power rule.
The rule that the derivative of xⁿ is n xⁿ⁻¹; read backwards, it integrates powers of x.
differentiation.
Finding a derivative: working out how fast a function changes. Explained in The derivative: slope of the tangent line and rate of change.
with respect to.
Taking that variable as the one that changes: a derivative with respect to t measures change as t changes, others held fixed. Explained in Average value, weighted averages and probability.
product rule.
The rule for the derivative of a product of two functions: (fg)′ = f′g + fg′. Explained in Circular motion: tangential acceleration and angular acceleration.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
ellipse.
An oval curve: the set of points whose distances from two fixed points, the foci, add up to the same total. Explained in Kepler's laws and orbits.
inverse.
The thing that undoes another: a matrix times its inverse gives the identity matrix, as a function followed by its inverse gives back the start. Explained in Planes through three points, and matrices.
graph.
The picture of a function: the curve y = f(x) for one variable, or the surface z = f(x, y) for two. Explained in Graphs, straight lines and slope.
inverse tangent.
The function that undoes the tangent: arctan x is the angle, between −90 and 90 degrees, whose tangent is x.
asymptote.
A straight line that a graph gets closer and closer to, without reaching it, as the graph heads off to infinity.
tangent.
The trigonometric function tan x, equal to sin x divided by cos x.
quotient rule.
The rule for the derivative of a fraction of two functions: (u/v)′ = (u′v − uv′)/v².
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
vacuum energy.
Energy that empty space itself carries, the same everywhere and unchanged as the universe expands. Explained in Dark energy and the accelerating universe.
linear.
Of a relation or equation: using only first powers of the unknowns, so doubling the cause doubles the effect and effects simply add. Explained in Solving and rearranging formulas.

Academic

satisfy.
To make an equation or condition true.
transcript.
A written record of exactly what was said in a recorded lecture, word for word.
explicit.
Of a function or equation: solved for the unknown, written as a formula y = f(x) that gives y directly.
implicit.
Of a function: given by an equation linking x and y, such as x² + y² = 1, not by a formula y = f(x).
numerically.
In terms of actual numbers rather than symbols; often worked out step by step, by computer, instead of from an exact formula.
ingredient.
One of the parts or assumptions that go into a theory, model or calculation.
hence.
For this reason; as a result of what was just said.
valid.
True or correctly applicable under the stated conditions.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

33 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. What is the derivative of x2/3x^{2/3}?
  2. On the circle x2+y2=1x^2 + y^2 = 1, implicit differentiation gives which slope?
  3. What is ddxarctan⁡x\dfrac{d}{dx}\arctan x at x=1x = 1?
  4. Why does implicit differentiation not need the explicit formula for yy?
  5. How is the graph of an inverse function f−1f^{-1} related to the graph of ff?
0 of 5 answered

Flashcards

1 / 4