Differentiate composite, implicit, and inverse functions

Identify inner functions, implicit dependencies and inverse inputs

What to practice

  • Identify inner functions, implicit dependencies and inverse inputs

Chapter 6's rules work when a function is built by adding, multiplying or dividing simpler pieces. This chapter covers four structures in which the input of one function is itself changing: compositions (topic 3.1), relations that are not solved for yy (topic 3.2), inverse functions (topic 3.3) and inverse trigonometric functions (topic 3.4). One rule connects all four: the chain rule. The official framework treats these as one unit of the course (AP Calculus AB course page).

Predict first. Suppose yy changes 3 units for every unit of uu, and uu changes 2 units for every unit of xx. How many units does yy change for every unit of xx? Write a number before reading on.

The chain rule: rates multiply through a changing input (topic 3.1)

Your prediction should be 6. Each unit of xx produces 2 units of uu, and each of those produces 3 units of yy. Rates along a chain multiply:

dydx=dydu⋅dudx\frac{dy}{dx}=\frac{dy}{du}\cdot\frac{du}{dx}

In function notation, if gg is differentiable at xx and ff is differentiable at g(x)g(x), then

ddxf(g(x))=f′(g(x))⋅g′(x)\frac{d}{dx}f(g(x))=f'(g(x))\cdot g'(x)

Read the right side carefully. The outer derivative f′f' is evaluated at the inner value g(x)g(x), because g(x)g(x) is the input that ff actually receives. Then multiply by the inner derivative g′(x)g'(x).

Why the factors multiply. Over a small change Δx\Delta x, the inner function changes by about g′(x) Δxg'(x)\,\Delta x. The outer function responds to that change in its own input at the rate f′(g(x))f'(g(x)), so the output changes by about f′(g(x)) g′(x) Δxf'(g(x))\,g'(x)\,\Delta x. Dividing by Δx\Delta x and letting it shrink gives the rule. The outer rate depends on where its input currently is, which is why it is read at g(x)g(x).

Use four steps on every composition:

  1. Name the layers from the inside out.
  2. Differentiate each layer with respect to its own input.
  3. Multiply all the factors.
  4. Substitute back so the answer uses only xx.

Four boxes in a row joined by arrows: x, then v = 2x, then w = cos v, then h = w cubed. The arrows are labeled dv/dx = 2, dw/dv = negative sine v, and dh/dw = 3w squared. Below, the product 3w squared times negative sine v times 2 is rewritten as dh/dx = negative 6 cosine squared of 2x times sine of 2x.

Figure 7.1. Each arrow carries one derivative; the chain rule multiplies all of them.

Worked example 7.1: a three-layer nest

Differentiate h(x)=cos⁡3(2x)h(x)=\cos^{3}(2x).

Read the notation. cos⁡3(2x)\cos^{3}(2x) means (cos⁡(2x))3(\cos(2x))^{3}. The last operation is cubing, so cubing is the outer layer.

Layers. v=2xv=2x, w=cos⁡vw=\cos v, h=w3h=w^{3}, as in Figure 7.1. The three link derivatives are 22, −sin⁡v-\sin v and 3w23w^{2}.

Multiply and substitute.

h′(x)=3cos⁡2(2x)⋅(−sin⁡(2x))⋅2=−6cos⁡2(2x)sin⁡(2x)h'(x)=3\cos^{2}(2x)\cdot(-\sin(2x))\cdot 2=-6\cos^{2}(2x)\sin(2x)

At x=π8x=\frac{\pi}{8}, cos⁡π4=sin⁡π4=22\cos\frac{\pi}{4}=\sin\frac{\pi}{4}=\frac{\sqrt{2}}{2}, so h′(π8)=−6⋅12⋅22=−322h'\left(\frac{\pi}{8}\right)=-6\cdot\frac{1}{2}\cdot\frac{\sqrt{2}}{2}=-\frac{3\sqrt{2}}{2}.

Check by meaning. For 0<x<π40<x<\frac{\pi}{4}, cos⁡(2x)\cos(2x) is positive and decreasing, so its cube decreases too. A negative derivative agrees.

Worked example 7.2: units travel through the chain

A weather balloon rises. The air temperature is T(a)T(a) degrees Celsius at altitude aa meters, and the balloon's altitude is a(t)a(t) meters after tt minutes. At t=5t=5, a(5)=1200a(5)=1200 and a′(5)=40a'(5)=40, and the temperature model gives T′(1200)=−0.0065T'(1200)=-0.0065. How fast is the temperature around the balloon changing at t=5t=5?

Translate the words. The temperature the balloon experiences is the composition T(a(t))T(a(t)). Its rate is

ddtT(a(t))=T′(a(5))⋅a′(5)=(−0.0065)(40)=−0.26\frac{d}{dt}T(a(t))=T'(a(5))\cdot a'(5)=(-0.0065)(40)=-0.26

Units. (degrees per meter) times (meters per minute) gives degrees per minute. At t=5t=5 the temperature is falling about 0.26 °C per minute.

A common wrong setup uses T′(5)T'(5). That is the temperature rate at an altitude of 5 meters, not at time 5 minutes, so it answers a different question.

Worked example 7.3: the chain rule from a table

xxf(x)f(x)f′(x)f'(x)g(x)g(x)g′(x)g'(x)
13−225
2143−1
32610.5

Table 7.1. Values of ff, f′f', gg and g′g' (constructed practice data).

Let k(x)=f(g(x))k(x)=f(g(x)). Find k′(1)k'(1).

Locate the inner value first. g(1)=2g(1)=2, so the outer derivative is read at 2: k′(1)=f′(2)⋅g′(1)=4⋅5=20k'(1)=f'(2)\cdot g'(1)=4\cdot 5=20. Reading f′(1)=−2f'(1)=-2 instead gives −10-10, the most common table error.

Now reverse the order: for m(x)=g(f(x))m(x)=g(f(x)), m′(3)=g′(f(3))⋅f′(3)=g′(2)⋅6=−6m'(3)=g'(f(3))\cdot f'(3)=g'(2)\cdot 6=-6. The table row you need depends on the composition's order.

Common errors.

  • Dropping the inner derivative: ddxe3x\frac{d}{dx}e^{3x} is 3e3x3e^{3x}, not e3xe^{3x}.
  • Evaluating the outer derivative at xx instead of at g(x)g(x).
  • Misreading cos⁡3(2x)\cos^{3}(2x) as cos⁡(8x3)\cos(8x^{3}) or as cos⁡(2x3)\cos(2x^{3}).

Try it 7.1

(a) Find ddxex2−3x\frac{d}{dx}e^{x^{2}-3x} at x=3x=3.

(b) Use Table 7.1 to find the derivative of [g(x)]3[g(x)]^{3} at x=2x=2.

(c) V(r)V(r) is a volume in cubic centimeters when the radius is rr centimeters, and r(t)r(t) is the radius after tt seconds. What are the units of V′(r(t))⋅r′(t)V'(r(t))\cdot r'(t)?

Solutions. (a) The derivative is (2x−3)ex2−3x(2x-3)e^{x^{2}-3x}; at 3 it is 3e0=33e^{0}=3. (b) 3[g(2)]2g′(2)=3⋅9⋅(−1)=−273[g(2)]^{2}g'(2)=3\cdot 9\cdot(-1)=-27. (c) Cubic centimeters per second: the product is the rate of change of volume with respect to time.

Implicit differentiation: y keeps depending on x (topic 3.2)

The relation x2+xy+y2=7x^{2}+xy+y^{2}=7 describes a curve, but it does not define one function: Figure 7.2 shows two points with x=1x=1. Near most points, though, a small piece of the curve is the graph of a differentiable function y(x)y(x). Implicit differentiation finds that function's slope without solving for yy.

Differentiate both sides of the equation with respect to xx, treating yy as y(x)y(x):

  • ddx(y2)=2ydydx\frac{d}{dx}\left(y^{2}\right)=2y\frac{dy}{dx}, by the chain rule;
  • ddx(xy)=y+xdydx\frac{d}{dx}(xy)=y+x\frac{dy}{dx}, by the product rule;
  • ddx(7)=0\frac{d}{dx}(7)=0.

Then solve for dydx\frac{dy}{dx}. The resulting formula usually contains both xx and yy, so you need both coordinates of the point.

Two habits prevent most errors. Differentiate the whole equation, both sides, before rearranging anything. And attach dydx\frac{dy}{dx} to a term the moment you differentiate a yy inside it, rather than planning to add it later.

Worked example 7.4: slope at a point

Find the slope of x2+xy+y2=7x^{2}+xy+y^{2}=7 at (1,2)(1,2).

Check the point. 1+2+4=71+2+4=7, so (1,2)(1,2) is on the curve.

Differentiate every term.

2x+(y+xdydx)+2ydydx=02x+\left(y+x\frac{dy}{dx}\right)+2y\frac{dy}{dx}=0

Collect and solve. (x+2y)dydx=−(2x+y)(x+2y)\frac{dy}{dx}=-(2x+y), so dydx=−2x+yx+2y\frac{dy}{dx}=-\frac{2x+y}{x+2y}.

Evaluate. At (1,2)(1,2), dydx=−45\frac{dy}{dx}=-\frac{4}{5}.

Change representation. The same input x=1x=1 also gives the point (1,−3)(1,-3), where the formula gives −15-\frac{1}{5}. Figure 7.2 shows both tangent lines. One input, two points, two slopes: that is why the formula needs yy.

A tilted oval curve x squared plus x y plus y squared equals 7 drawn on a grid from negative 4 to 4 on both axes. A dashed vertical line x = 1 crosses the curve at (1, 2) and (1, negative 3). Short tangent segments are drawn at both points, labeled slope negative 4/5 at (1, 2) and slope negative 1/5 at (1, negative 3).

Figure 7.2. The vertical line x=1x=1 meets the curve twice, and the slopes differ.

If x+2y=0x+2y=0 at a point of the curve, the formula has no finite value there. Do not divide by zero; Chapter 13 analyzes such points.

Worked example 7.5: choose implicit or explicit

Find the slope of the circle x2+y2=25x^{2}+y^{2}=25 at (3,−4)(3,-4).

Explicit route. Solving for yy forces a choice of branch. The point is on the lower half, y=−25−x2y=-\sqrt{25-x^{2}}, so dydx=x25−x2=34\frac{dy}{dx}=\frac{x}{\sqrt{25-x^{2}}}=\frac{3}{4} at x=3x=3.

Implicit route. 2x+2ydydx=02x+2y\frac{dy}{dx}=0, so dydx=−xy=−3−4=34\frac{dy}{dx}=-\frac{x}{y}=-\frac{3}{-4}=\frac{3}{4}.

Method choice. Both routes agree, but the implicit route needed no branch decision and less algebra. Implicit differentiation becomes the only practical route when yy cannot be isolated: y5+y=xy^{5}+y=x gives 5y4dydx+dydx=15y^{4}\frac{dy}{dx}+\frac{dy}{dx}=1, so dydx=15y4+1\frac{dy}{dx}=\frac{1}{5y^{4}+1}. Use the explicit route when yy is already isolated.

Worked example 7.6: diagnose an incorrect solution

A student's work on x2+xy+y2=7x^{2}+xy+y^{2}=7 at (1,2)(1,2):

2x+y′+2y=02x+y'+2y=0, so y′=−2x−2y=−6y'=-2x-2y=-6.

Diagnosis. Two terms are wrong. The derivative of xyxy needs the product rule, y+xy′y+xy', not y′y'. The derivative of y2y^{2} needs the chain-rule factor, 2yy′2yy', not 2y2y. A slope of −6-6 also contradicts Figure 7.2, where the tangent at (1,2)(1,2) falls gently.

Repair. 2x+y+xy′+2yy′=02x+y+xy'+2yy'=0 gives y′=−45y'=-\frac{4}{5}, as in Worked example 7.4.

Try it 7.2

Verify that (1,2)(1,2) lies on y3+2xy=12y^{3}+2xy=12, then find dydx\frac{dy}{dx} there.

Solution. 8+4=128+4=12. Differentiating, 3y2y′+2y+2xy′=03y^{2}y'+2y+2xy'=0, so y′=−2y3y2+2x=−414=−27y'=-\frac{2y}{3y^{2}+2x}=-\frac{4}{14}=-\frac{2}{7}.

Inverse functions: evaluate at the matching input (topic 3.3)

Let ff be one-to-one with inverse gg, so f(g(x))=xf(g(x))=x. Differentiate both sides with the chain rule: f′(g(x))⋅g′(x)=1f'(g(x))\cdot g'(x)=1. Therefore

g′(x)=1f′(g(x))g'(x)=\frac{1}{f'(g(x))}

provided ff is differentiable at g(x)g(x) and f′(g(x))≠0f'(g(x))\neq 0.

Units invert too. If ff converts minutes into liters, its inverse converts liters into minutes, and g′g' is measured in minutes per liter: the reciprocal of liters per minute.

Geometrically, reflecting a graph across y=xy=x swaps rise and run. If the tangent to ff at (a,b)(a,b) has slope mm, the tangent to gg at (b,a)(b,a) has slope 1m\frac{1}{m} (Figure 7.3). Note the swapped coordinates: the inverse's slope at bb comes from f′f' at aa, the preimage.

Graph on a grid from negative 4 to 6 on both axes. A solid curve y = f(x), where f(x) = x cubed plus x plus 1, rises steeply through (1, 3). A dashed curve y = g(x), its reflection across the dotted line y = x, passes through (3, 1). Tangent segments are drawn at (1, 3), labeled slope 4, and at (3, 1), labeled slope 1/4.

Figure 7.3. Corresponding points on ff and its inverse gg have reciprocal tangent slopes.

Worked example 7.7: find the preimage first

Let f(x)=x3+x+1f(x)=x^{3}+x+1 and let gg be its inverse. Find g′(3)g'(3).

Condition. f′(x)=3x2+1>0f'(x)=3x^{2}+1>0, so ff is increasing, hence one-to-one, and f′f' is never zero.

Preimage. Solve f(x)=3f(x)=3: x=1x=1 works, since 1+1+1=31+1+1=3. So g(3)=1g(3)=1.

Reciprocal. g′(3)=1f′(1)=14g'(3)=\frac{1}{f'(1)}=\frac{1}{4}.

Diagnose the tempting error. Writing 1f′(3)=128\frac{1}{f'(3)}=\frac{1}{28} treats 3 as an input of ff. But 3 is an output of ff; the matching input is 1.

Worked example 7.8: when the reciprocal fails

f(x)=x3f(x)=x^{3} is one-to-one, with inverse g(x)=x3g(x)=\sqrt[3]{x}. Since f′(0)=0f'(0)=0, the formula would require 10\frac{1}{0} at x=0x=0. The difference quotient confirms that no derivative exists: h3h=h−2/3\frac{\sqrt[3]{h}}{h}=h^{-2/3} grows without bound as h→0h\to 0, and the graph of gg has a vertical tangent at the origin. Always check f′(g(a))≠0f'(g(a))\neq 0 before using the formula.

Try it 7.3

ff is differentiable and increasing, and hh is its inverse.

xx125
f(x)f(x)259
f′(x)f'(x)3410

Table 7.2. Values of ff and f′f' (constructed practice data).

Find h(5)h(5) and h′(5)h'(5), and explain why 110\frac{1}{10} is wrong.

Solution. f(2)=5f(2)=5, so h(5)=2h(5)=2 and h′(5)=1f′(2)=14h'(5)=\frac{1}{f'(2)}=\frac{1}{4}. The value 110=1f′(5)\frac{1}{10}=\frac{1}{f'(5)} reads the row where 5 is an input; you need the row where 5 is an output.

Inverse trigonometric functions: restricted outputs (topic 3.4)

sin⁡−1x\sin^{-1}x, also written arcsin⁡x\arcsin x, is the angle in [−π2,π2]\left[-\frac{\pi}{2},\frac{\pi}{2}\right] whose sine is xx. It is not 1sin⁡x\frac{1}{\sin x}, which is csc⁡x\csc x. The restricted output intervals make each inverse a function: arccos⁡x\arccos x takes values in [0,π][0,\pi] and arctan⁡x\arctan x in (−π2,π2)\left(-\frac{\pi}{2},\frac{\pi}{2}\right).

Worked example 7.9: derive, then apply the chain rule

Let y=arcsin⁡xy=\arcsin x for −1<x<1-1<x<1. Then sin⁡y=x\sin y=x. Differentiate implicitly: cos⁡y⋅dydx=1\cos y\cdot\frac{dy}{dx}=1, so dydx=1cos⁡y\frac{dy}{dx}=\frac{1}{\cos y}.

Choose the sign. Because yy lies in [−π2,π2]\left[-\frac{\pi}{2},\frac{\pi}{2}\right], cos⁡y≥0\cos y\geq 0, so cos⁡y=1−sin⁡2y=1−x2\cos y=\sqrt{1-\sin^{2}y}=\sqrt{1-x^{2}}. Therefore

ddxarcsin⁡x=11−x2\frac{d}{dx}\arcsin x=\frac{1}{\sqrt{1-x^{2}}}

The same method gives ddxarccos⁡x=−11−x2\frac{d}{dx}\arccos x=-\frac{1}{\sqrt{1-x^{2}}} and ddxarctan⁡x=11+x2\frac{d}{dx}\arctan x=\frac{1}{1+x^{2}}.

Check the signs and domains. Arcsine and arctangent are increasing, so their derivatives are positive; arccosine is decreasing, so its derivative is negative. The arcsine and arccosine derivatives exist only for −1<x<1-1<x<1; at x=±1x=\pm 1 their graphs have vertical tangents. The arctangent derivative exists for every real xx.

Apply the chain rule. ddxarctan⁡(2x)=21+(2x)2=21+4x2\frac{d}{dx}\arctan(2x)=\frac{2}{1+(2x)^{2}}=\frac{2}{1+4x^{2}}; at x=12x=\frac{1}{2} the slope is 1. Similarly, ddxarcsin⁡(x3)=13⋅11−x2/9=19−x2\frac{d}{dx}\arcsin\left(\frac{x}{3}\right)=\frac{1}{3}\cdot\frac{1}{\sqrt{1-x^{2}/9}}=\frac{1}{\sqrt{9-x^{2}}} for −3<x<3-3<x<3, the inputs where x3\frac{x}{3} lies strictly between −1-1 and 1.

Common errors. Treating sin⁡−1x\sin^{-1}x as csc⁡x\csc x; dropping the inner derivative; writing 1+2x21+2x^{2} where 1+(2x)21+(2x)^{2} belongs; ignoring the domain of the original function.

Try it 7.4

(a) Find ddxarccos⁡(x2)\frac{d}{dx}\arccos\left(x^{2}\right) for −1<x<1-1<x<1.

(b) Evaluate sin⁡−1(12)\sin^{-1}\left(\frac{1}{2}\right) and (sin⁡π6)−1\left(\sin\frac{\pi}{6}\right)^{-1}.

(c) Find the slope of y=arctan⁡(x3)y=\arctan\left(x^{3}\right) at x=1x=1.

Solutions. (a) −2x1−x4-\frac{2x}{\sqrt{1-x^{4}}}. (b) π6\frac{\pi}{6}, an angle; and 2, a reciprocal. (c) 3x21+x6\frac{3x^{2}}{1+x^{6}} at 1 equals 32\frac{3}{2}.

Retrieve and review

  • Today. Without notes, write the chain rule in both notations and the inverse-derivative formula with its condition.
  • In about two days. Differentiate sin⁡(x2)\sin\left(x^{2}\right) and sin⁡2x\sin^{2}x, then name the outer layer of each. (Answers: 2xcos⁡(x2)2x\cos\left(x^{2}\right) and 2sin⁡xcos⁡x2\sin x\cos x.)
  • In about a week. Mix one problem from each of topics 3.1–3.4 with one Chapter 6 product or quotient, without labels, and choose each method before computing.
  • Log each miss with an error code: OBJECT for evaluating at the wrong input, CONDITION for dividing by a zero derivative, ALGEBRA for lost terms.

Chapter 10 reuses implicit differentiation with respect to time for related rates; Chapter 13 studies horizontal and vertical tangents on implicit curves.

Practice

Work items APCAL-C07-M01 to APCAL-C07-M10, printed after this chapter's companion panel as Questions 94–103. Questions 96 and 100 require a graphing calculator in radian mode; round final answers to three decimal places only at the end. The remaining eight questions are to be done without a calculator.

Then complete the two written tasks, APCAL-C07-F01 (Written task 7, no calculator) and APCAL-C07-F02 (Written task 8, graphing calculator required), using the two response pages printed for each.

Full solutions, an explanation of every wrong choice, nine-point rubrics and complete sample responses are in Answers, explanations and written responses at the back of the book, under Chapter 7: answers and explanations. Each explanation ends with a Repair and retry line pointing to the section above.

Use this chapter companion

Review the lesson, attempt the original practice, then check the explanation. Your printed study guide remains complete without the website.

Independence

Skill by Skill Prep is independent. SAT® and AP® are trademarks registered by the College Board, which is not affiliated with, and does not endorse, this website or book. PSAT/NMSQT® is a registered trademark of the College Board and the National Merit Scholarship Corporation, which are not affiliated with, and do not endorse, this site. Bluebook™ is a trademark of the College Board. ACT® is a trademark of ACT Education Corp., which is not affiliated with and does not endorse this website or book. Desmos is a trademark of Desmos Studio PBC. Practice results describe these questions, not official scores or admission predictions.

Last updated .