Skip to main content
NSWMaths Extension 1Syllabus dot point

How do we differentiate the inverse of a function from the function itself, and what is the gradient of the inverse at a point?

Differentiate an inverse function using (f^-1)'(x) = 1/f'(f^-1(x)) (equivalently dy/dx = 1/(dx/dy)), including the second derivative

A focused answer to the HSC Maths Extension 1 dot point on differentiating an inverse function: the rule (f1)(x)=1/f(f1(x))(f^{-1})'(x) = 1/f'(f^{-1}(x)), equivalently dy/dx=1/(dx/dy)dy/dx = 1/(dx/dy), where it comes from (chain rule and reflection in y=xy=x), evaluating the gradient of an inverse at a matching point, the second derivative of an inverse, and the inverse-trig and log derivatives as special cases.

Generated by Claude Opus 4.815 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

What this dot point is asking

NESA wants you to be able to differentiate the inverse of a function without first finding a formula for that inverse. The tool is one rule, written two equivalent ways:

(f1)(x)=1f(f1(x)),equivalentlydydx=1dx/dy.(f^{-1})'(x) = \frac{1}{f'\bigl(f^{-1}(x)\bigr)}, \qquad \text{equivalently} \qquad \frac{dy}{dx} = \frac{1}{\,dx/dy\,}.

This is the general result behind the inverse-trig derivatives you already use, and it powers the standard derivation of ddx(lnx)=1x\frac{d}{dx}(\ln x) = \frac{1}{x}. The same dot point extends to the second derivative of an inverse, which is where most of the marks (and the mistakes) sit.

The skill examined is almost always evaluation at a point: you are given the value of ff and its derivatives at one input and asked for the gradient (or the second derivative) of the inverse at the matching output. You rarely need an explicit formula for f1f^{-1}, and reaching for one is usually the slow, error-prone route. A marker can tell instantly whether you understand that the inverse's gradient is read off the original function at the matching point, or are trying to invert the function by hand and differentiate that.

The answer

Why an inverse exists at all

A function has an inverse only if it is one-to-one: each output comes from exactly one input, so the rule can be run backwards unambiguously. The quickest sufficient test in this course is monotonicity: if f(x)>0f'(x) > 0 for all xx in the domain (strictly increasing) or f(x)<0f'(x) < 0 throughout (strictly decreasing), then ff is one-to-one and f1f^{-1} exists. This matters here because the differentiation rule divides by f(f1(x))f'(f^{-1}(x)), so it needs ff' to be non-zero at the relevant point. A horizontal tangent on ff (f=0f' = 0) reflects into a vertical tangent on f1f^{-1}, where the inverse's gradient is undefined, exactly the division-by-zero the formula warns you about.

You usually do not have to invert the function. A one-line check that ff' keeps a constant sign (for example f(x)=3x2+11>0f'(x) = 3x^2 + 1 \ge 1 > 0) is enough to assert the inverse exists before you differentiate it.

The rule and where it comes from

There are two complementary derivations, and good "explain" or "show that" answers use whichever the question invites.

Chain rule on f(f1(x))=xf(f^{-1}(x)) = x. By definition, applying ff to f1(x)f^{-1}(x) returns xx. Differentiate both sides with respect to xx, using the chain rule on the left:

f(f1(x))(f1)(x)=1,so(f1)(x)=1f(f1(x)),f'\bigl(f^{-1}(x)\bigr) \cdot (f^{-1})'(x) = 1, \qquad \text{so} \qquad (f^{-1})'(x) = \frac{1}{f'\bigl(f^{-1}(x)\bigr)},

valid wherever f(f1(x))0f'(f^{-1}(x)) \neq 0. This is the cleanest justification and the one to quote when a question says "show that".

The dx/dydx/dy form (Leibniz). Write y=f1(x)y = f^{-1}(x), which is the same as x=f(y)x = f(y). Differentiating x=f(y)x = f(y) with respect to yy gives dxdy=f(y)\frac{dx}{dy} = f'(y), and treating the derivative as a ratio,

dydx=1dx/dy.\frac{dy}{dx} = \frac{1}{\,dx/dy\,}.

This is the form that appears on motion and related-rates questions, and it is identical to the first: dxdy\frac{dx}{dy} evaluated at y=g(x)y = g(x) is exactly f(g(x))f'(g(x)).

Reflection intuition. The graph of f1f^{-1} is the graph of ff reflected in the line y=xy = x. Reflection in y=xy = x swaps the horizontal and vertical directions, so it swaps the rise and the run of any tangent line. A tangent of gradient riserun\frac{\text{rise}}{\text{run}} on ff becomes a tangent of gradient runrise\frac{\text{run}}{\text{rise}} on f1f^{-1}, that is, the reciprocal. This is why the rule has a reciprocal in it, and it is the picture to draw if a question asks you to explain geometrically.

Picture: a curve, its inverse, and reciprocal tangents

The figure shows y=x3y = x^3 (its inverse is y=x3y = \sqrt[3]{x}, since cubing is one-to-one). At the point PP on the cubic the tangent has gradient 44; the reflected point PP' on the inverse curve has a tangent of gradient 14\frac{1}{4}. The two tangents are themselves mirror images in y=xy = x, which is the whole content of the rule.

A function and its inverse reflected in the line y = x with reciprocal tangent gradientsThe curve y equals x cubed, drawn in muted ink, and its inverse y equals the cube root of x, drawn in accent, are mirror images in the dashed line y equals x. At the point P on the cubic the tangent has gradient 4, and at the reflected point P prime on the inverse curve the tangent has gradient one quarter, so the two gradients are reciprocals. x y P P′ y = x³ y = ∛x y = x gradient 4 gradient 1/4 Reflection in y = x turns gradient 4 into its reciprocal 1/4.

Evaluating the gradient of an inverse at a point, stage by stage

The examined task is: given numbers about ff at one input, find gg' of f1f^{-1} at the matching output. The danger is differentiating at the wrong point. The four panels below build the logic on f(x)=x3f(x) = x^3 with the known point (a,b)(a, b).

Stage 1, start from the known point on ff. You are told (or can compute) a point (a,b)(a, b) on y=f(x)y = f(x), meaning f(a)=bf(a) = b. The matching point on the inverse is the reflection (b,a)(b, a), because g(b)=ag(b) = a. Keep aa and bb straight: aa is the input of ff, bb is the output, and they swap roles for gg.

Start with the known point on fStage 1 of locating the gradient of the inverse function at a point by reflecting a known point of the original function. x y (a, b) y = f(x) 1

Stage 2, read the gradient of ff at that point. Compute f(a)f'(a). This single number is everything you need: it is the gradient of ff at (a,b)(a, b), the slope of the tangent shown.

Read the gradient f'(a) thereStage 2 of locating the gradient of the inverse function at a point by reflecting a known point of the original function. x y slope f'(a) 2

Stage 3, reflect to the matching point on gg. The inverse curve y=g(x)y = g(x) is the reflection of y=f(x)y = f(x) in y=xy = x. The known point (a,b)(a, b) reflects to (b,a)(b, a), which lies on gg. This is the point at which you want the inverse's gradient.

Reflect in y = x to the point on gStage 3 of locating the gradient of the inverse function at a point by reflecting a known point of the original function. x y (b, a) 3

Stage 4, the inverse's gradient is the reciprocal. The tangent at (b,a)(b, a) on gg is the reflection of the tangent at (a,b)(a, b) on ff, so its gradient is 1f(a)\dfrac{1}{f'(a)}. That is the answer: g(b)=1f(a)g'(b) = \dfrac{1}{f'(a)}, the reciprocal of the number from Stage 2.

Its gradient is 1 / f'(a)Stage 4 of locating the gradient of the inverse function at a point by reflecting a known point of the original function. x y slope 1/f'(a) 4

So the whole evaluation is four moves: find the matching input aa (where f(a)f(a) equals the value you want gg to act on), compute f(a)f'(a), take the reciprocal. You never differentiate gg itself.

The second derivative of an inverse

This is the part Cambridge leaves as an exercise and the part HSC questions like to push into. Differentiate g(x)=1f(g(x))=[f(g(x))]1g'(x) = \dfrac{1}{f'(g(x))} = \bigl[f'(g(x))\bigr]^{-1} using the chain rule. The outer power gives [f(g(x))]2-\bigl[f'(g(x))\bigr]^{-2}, and the inner derivative of f(g(x))f'(g(x)) is f(g(x))g(x)f''(g(x)) \cdot g'(x):

g(x)=[f(g(x))]2f(g(x))g(x).g''(x) = -\bigl[f'(g(x))\bigr]^{-2} \cdot f''(g(x)) \cdot g'(x).

Now substitute g(x)=1f(g(x))g'(x) = \dfrac{1}{f'(g(x))} for that last factor and combine the powers:

g(x)=f(g(x))[f(g(x))]21f(g(x))=f(g(x))[f(g(x))]3.g''(x) = -\frac{f''(g(x))}{\bigl[f'(g(x))\bigr]^{2}} \cdot \frac{1}{f'(g(x))} = -\frac{f''\bigl(g(x)\bigr)}{\bigl[f'(g(x))\bigr]^{3}}.

Two things are worth committing to memory because they are exactly the traps: the minus sign (so a positive ff'' at the matching point gives a negative gg'', and vice versa, which is the reflection flipping concavity), and the cube on ff' in the denominator (not a square, and not the reciprocal of ff''). As with the first derivative, every piece is evaluated at the matching point g(x)g(x), never at xx.

Inverse-trig and log derivatives as special cases

The whole inverse-trig topic is this rule applied to sin\sin, cos\cos and tan\tan. Take f(x)=sinxf(x) = \sin x on [π2,π2]\left[-\frac{\pi}{2}, \frac{\pi}{2}\right], so g(x)=arcsinxg(x) = \arcsin x and f(x)=cosxf'(x) = \cos x. The rule gives

g(x)=1f(g(x))=1cos(arcsinx)=11x2,g'(x) = \frac{1}{f'(g(x))} = \frac{1}{\cos(\arcsin x)} = \frac{1}{\sqrt{1 - x^2}},

using cos(arcsinx)=1x2\cos(\arcsin x) = \sqrt{1 - x^2} on the principal range, which is precisely the implicit-differentiation derivation on the inverse-trig page, just packaged as the general rule. Likewise f(x)=exf(x) = e^{x} has g(x)=lnxg(x) = \ln x and f(x)=exf'(x) = e^{x}, so

ddx(lnx)=1f(lnx)=1elnx=1x.\frac{d}{dx}(\ln x) = \frac{1}{f'(\ln x)} = \frac{1}{e^{\ln x}} = \frac{1}{x}.

Seeing these as the same rule is the point of the dot point: you are not learning a separate fact for every inverse, you are applying one reciprocal-of-the-derivative-at-the-matching-point idea.

How exam questions ask about differentiating an inverse

The wording tells you which form of the rule to deploy:

  • "f(a)=bf(a) = b and f(a)=mf'(a) = m. Find g(b)g'(b)" (table or values given). The core type. The matching point is aa (because f(a)=bf(a) = b means g(b)=ag(b) = a), so g(b)=1f(a)=1mg'(b) = \frac{1}{f'(a)} = \frac{1}{m}. No formula for gg needed.
  • "f(x)=f(x) = \ldots Find g(c)g'(c)" (a concrete function). First solve f(x)=cf(x) = c to find the matching input (often a neat integer by inspection), then take the reciprocal of ff' there. Confirm an inverse exists by checking ff' keeps one sign.
  • "Find g()g''(\ldots) given ff' and ff''." Use g(x)=f(g(x))[f(g(x))]3g''(x) = -\frac{f''(g(x))}{[f'(g(x))]^3}, watching the sign and the cube. Compute g(x)g(x) (the matching input) first, then substitute the supplied ff' and ff''.
  • "Find the equation of the tangent to y=g(x)y = g(x) at \ldots". Find the point on gg (reflect the known point of ff) and the gradient 1f(a)\frac{1}{f'(a)}, then use point-gradient form.
  • "Explain geometrically why the gradients are reciprocals" / "using reflection in y=xy = x". A graph answer: reflection swaps rise and run, so the gradient inverts. Draw the curve, its mirror image, and the two tangents.
  • "Show that dydx=1dx/dy\frac{dy}{dx} = \frac{1}{dx/dy}" or "by writing x=f(y)x = f(y)". A derivation: differentiate f(f1(x))=xf(f^{-1}(x)) = x by the chain rule, or differentiate x=f(y)x = f(y) with respect to yy and invert. State where it fails (f=0f' = 0, i.e. vertical tangent on gg).

Practice questions

Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.

foundation2 marksA function ff is one-to-one with f(2)=5f(2) = 5 and f(2)=3f'(2) = 3. Let g=f1g = f^{-1}. Find g(5)g(5) and g(5)g'(5).
Show worked solution →
Find g(5)g(5) by reversing the input and output
Because f(2)=5f(2) = 5, the inverse undoes this: g(5)=2g(5) = 2.
Apply the rule g(x)=1f(g(x))g'(x) = \dfrac{1}{f'(g(x))}
Here x=5x = 5 and g(5)=2g(5) = 2, so the matching point on ff is x=2x = 2:
g(5)=1f(g(5))=1f(2)=13.g'(5) = \frac{1}{f'(g(5))} = \frac{1}{f'(2)} = \frac{1}{3}.
Final answer
g(5)=2g(5) = 2 and g(5)=13g'(5) = \dfrac{1}{3}. Note you never need a formula for gg itself, only the value f(2)f'(2) at the matching point.
foundation3 marksLet f(x)=x3+xf(x) = x^3 + x. Show that ff has an inverse gg, and find g(2)g'(2).
Show worked solution →

Show ff is one-to-one. Differentiate: f(x)=3x2+1f'(x) = 3x^2 + 1. Since 3x203x^2 \ge 0, we have f(x)1>0f'(x) \ge 1 > 0 for all xx, so ff is strictly increasing and therefore one-to-one. An inverse g=f1g = f^{-1} exists.

Find the matching point. We need g(2)g(2), the value of xx with f(x)=2f(x) = 2. Trying x=1x = 1: f(1)=13+1=2f(1) = 1^3 + 1 = 2. So g(2)=1g(2) = 1.

Apply the rule.

g(2)=1f(g(2))=1f(1)=13(1)2+1=14.g'(2) = \frac{1}{f'(g(2))} = \frac{1}{f'(1)} = \frac{1}{3(1)^2 + 1} = \frac{1}{4}.

Final answer: g(2)=14g'(2) = \dfrac{1}{4}.

core4 marksThe function f(x)=x3+2x1f(x) = x^3 + 2x - 1 has an inverse gg. Find the equation of the tangent to y=g(x)y = g(x) at the point where x=2x = 2.
Show worked solution →

Confirm the inverse exists. f(x)=3x2+22>0f'(x) = 3x^2 + 2 \ge 2 > 0 for all xx, so ff is strictly increasing and g=f1g = f^{-1} exists.

Locate the point on gg. Solve f(x)=2f(x) = 2: try x=1x = 1, f(1)=1+21=2f(1) = 1 + 2 - 1 = 2, so g(2)=1g(2) = 1. The tangent point is (2,1)(2, 1).

Gradient of gg there.

g(2)=1f(1)=13+2=15.g'(2) = \frac{1}{f'(1)} = \frac{1}{3 + 2} = \frac{1}{5}.

Equation of the tangent. Through (2,1)(2, 1) with gradient 15\frac{1}{5}:

y1=15(x2)y=15x+35.y - 1 = \frac{1}{5}(x - 2) \quad\Longrightarrow\quad y = \frac{1}{5}x + \frac{3}{5}.

Final answer: y=15x+35y = \dfrac{1}{5}x + \dfrac{3}{5}. As a check, the tangent to y=f(x)y = f(x) at (1,2)(1, 2) has gradient 55, equation y=5x3y = 5x - 3; reflecting that line in y=xy = x (swap xx and yy and solve) gives y=15x+35y = \frac{1}{5}x + \frac{3}{5}, the same line.

core3 marksA one-to-one function ff satisfies f(2)=7f(2) = 7, f(2)=4f'(2) = 4 and f(2)=8f''(2) = -8. Let g=f1g = f^{-1}. Find g(7)g'(7) and g(7)g''(7).
Show worked solution →

Matching point. f(2)=7f(2) = 7 gives g(7)=2g(7) = 2, so every evaluation of ff, ff', ff'' happens at x=2x = 2.

First derivative.

g(7)=1f(2)=14.g'(7) = \frac{1}{f'(2)} = \frac{1}{4}.

Second derivative. Use g(x)=f(g(x))[f(g(x))]3g''(x) = -\dfrac{f''(g(x))}{[f'(g(x))]^3} with g(7)=2g(7) = 2:

g(7)=f(2)[f(2)]3=843=864=18.g''(7) = -\frac{f''(2)}{[f'(2)]^3} = -\frac{-8}{4^3} = \frac{8}{64} = \frac{1}{8}.

Final answer: g(7)=14g'(7) = \dfrac{1}{4} and g(7)=18g''(7) = \dfrac{1}{8}. The double negative is the usual trap: f(2)f''(2) is negative, so f(2)-f''(2) is positive and g(7)>0g''(7) > 0.

exam5 marksLet f(x)=x+exf(x) = x + e^{x}. (a) Explain why ff has an inverse gg. (b) Find g(1)g(1). (c) Find g(1)g'(1) and g(1)g''(1).
Show worked solution →

(a) The inverse exists. f(x)=1+exf'(x) = 1 + e^{x}, and ex>0e^{x} > 0 for all xx, so f(x)>1>0f'(x) > 1 > 0. The function is strictly increasing, hence one-to-one, so g=f1g = f^{-1} exists.

(b) Find g(1)g(1). Solve f(x)=1f(x) = 1: try x=0x = 0, f(0)=0+e0=0+1=1f(0) = 0 + e^{0} = 0 + 1 = 1. So g(1)=0g(1) = 0, and all derivatives of ff are evaluated at x=0x = 0.

(c) First derivative.

g(1)=1f(0)=11+e0=11+1=12.g'(1) = \frac{1}{f'(0)} = \frac{1}{1 + e^{0}} = \frac{1}{1 + 1} = \frac{1}{2}.

Second derivative. Here f(x)=exf''(x) = e^{x}, so f(0)=e0=1f''(0) = e^{0} = 1, and with g(1)=0g(1) = 0:

g(1)=f(0)[f(0)]3=123=18.g''(1) = -\frac{f''(0)}{[f'(0)]^3} = -\frac{1}{2^3} = -\frac{1}{8}.

Final answer: g(1)=0g(1) = 0, g(1)=12g'(1) = \dfrac{1}{2}, g(1)=18g''(1) = -\dfrac{1}{8}. The negative g(1)g''(1) says gg is concave down at x=1x = 1, consistent with the reflection: ff is concave up there (f>0f'' > 0), and reflecting in y=xy = x flips concavity.

exam4 marksThe curve y=x3y = x^3 and its inverse y=x3y = \sqrt[3]{x} meet at the point (1,1)(1, 1). (a) Find the gradient of each curve at (1,1)(1, 1). (b) Hence explain, using reflection in the line y=xy = x, why the two gradients are reciprocals, and find the acute angle between y=xy = x and the tangent to y=x3y = x^3 at (1,1)(1, 1).
Show worked solution →
(a) The two gradients
For f(x)=x3f(x) = x^3, f(x)=3x2f'(x) = 3x^2, so f(1)=3f'(1) = 3. For the inverse g(x)=x3g(x) = \sqrt[3]{x}, the rule gives
g(1)=1f(g(1))=1f(1)=13.g'(1) = \frac{1}{f'(g(1))} = \frac{1}{f'(1)} = \frac{1}{3}.
(b) Why they are reciprocals
Reflection in y=xy = x swaps the xx and yy axes, so it swaps rise and run. A tangent of gradient riserun=3\dfrac{\text{rise}}{\text{run}} = 3 on y=x3y = x^3 becomes a tangent of gradient runrise=13\dfrac{\text{run}}{\text{rise}} = \dfrac{1}{3} on the reflected curve y=x3y = \sqrt[3]{x}. The product of reciprocal gradients is 3×13=13 \times \frac{1}{3} = 1.
Angle to y=xy = x
The line y=xy = x has gradient 11; the tangent to y=x3y = x^3 at (1,1)(1,1) has gradient 33. Using tanθ=m1m21+m1m2\tan\theta = \left|\dfrac{m_1 - m_2}{1 + m_1 m_2}\right| with m1=3m_1 = 3, m2=1m_2 = 1:
tanθ=311+3(1)=24=12,θ=arctan1226.6.\tan\theta = \left|\frac{3 - 1}{1 + 3(1)}\right| = \frac{2}{4} = \frac{1}{2}, \qquad \theta = \arctan\tfrac{1}{2} \approx 26.6^\circ.

By symmetry the inverse's tangent makes the same angle on the other side of y=xy = x.
Final answer
gradients 33 and 13\dfrac{1}{3} (product 11); the tangent to y=x3y = x^3 at (1,1)(1,1) meets y=xy = x at arctan1226.6\arctan\tfrac{1}{2} \approx 26.6^\circ.

Related dot points