PYQ Vault

HSC Maths · Differentiation

Derivatives of Composite Functions: the Chain Rule

A composite function is a function of another function, such as sin(x² + 5); its derivative is the derivative of the outer function times the derivative of the inner one.

Why this matters

88 questions, nine of them from board papers: the proof of the chain rule (2016, 2024 and 2026), short derivatives such as sin(x² + x) and log(sec x + tan x) (2020), tan²(log x³) (2018) and sin(log x) (2025), and MCQs on given values of f, g and their derivatives (2025) and on sec(tan⁻¹ x) (2026). The textbook rows are Exercise 1.1, the solved examples of section 1.1 and the first questions of Miscellaneous Exercise 1.

Concept 1 of 4: Proof of the chain rule

When y depends on u and u depends on x, a small change in x changes u, and that change in u changes y. So the rate of y per unit x is the rate of y per unit u times the rate of u per unit x. The board asks this proof as a long question, so learn its steps in order, with the reason for each limit.

Definition

  • Theorem: if y=f(u)y = f(u) is a differentiable function of uu and u=g(x)u = g(x) is a differentiable function of xx, then yy is a differentiable function of xx and dydx=dydu⋅dudx\dfrac{dy}{dx} = \dfrac{dy}{du} \cdot \dfrac{du}{dx}.
  • Proof: assume uu is not a constant function. Let δx\delta x be a small increment in xx, and δu\delta u, δy\delta y the corresponding increments in uu and yy, with δx≠0\delta x \neq 0 and δu≠0\delta u \neq 0.
  • Write δyδx=δyδu⋅δuδx\dfrac{\delta y}{\delta x} = \dfrac{\delta y}{\delta u} \cdot \dfrac{\delta u}{\delta x} and take the limit as δx→0\delta x \to 0 on both sides.
  • As δx→0\delta x \to 0, δu→0\delta u \to 0, because uu is a continuous function of xx. So lim⁡δx→0δyδx=lim⁡δu→0δyδu⋅lim⁡δx→0δuδx\displaystyle\lim_{\delta x \to 0}\dfrac{\delta y}{\delta x} = \lim_{\delta u \to 0}\dfrac{\delta y}{\delta u} \cdot \lim_{\delta x \to 0}\dfrac{\delta u}{\delta x} ... (I)
  • Since yy is differentiable in uu and uu is differentiable in xx: lim⁡δu→0δyδu=dydu\displaystyle\lim_{\delta u \to 0}\dfrac{\delta y}{\delta u} = \dfrac{dy}{du} and lim⁡δx→0δuδx=dudx\displaystyle\lim_{\delta x \to 0}\dfrac{\delta u}{\delta x} = \dfrac{du}{dx} ... (II)
  • From (I) and (II), lim⁡δx→0δyδx=dydu⋅dudx\displaystyle\lim_{\delta x \to 0}\dfrac{\delta y}{\delta x} = \dfrac{dy}{du} \cdot \dfrac{du}{dx} ... (III)
  • The right side of (III) exists and is finite, so the left side exists and is finite: yy is a differentiable function of xx and dydx=dydu⋅dudx\dfrac{dy}{dx} = \dfrac{dy}{du} \cdot \dfrac{du}{dx}.

Chain rule

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

Worked example

Using the chain rule, find dydx\dfrac{dy}{dx} if y=x3+1y = \sqrt{x^3 + 1}.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2026 · Q. 21Hard

Example 1 · Differentiation · Derivatives of Composite Functions (Chain Rule)

If y=f(u)y = f(u) is a differentiable function of uu and u=g(x)u = g(x) is a differentiable function of xx then prove that yy is a differentiable function of xx and dydx=dydu×dudx\frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx}.

Skipping the reason for the limit step

The line 'δu→0\delta u \to 0 as δx→0\delta x \to 0' needs its reason: uu is a continuous function of xx. Without it the step is not justified and a mark goes.

Stopping after the proof when the question says 'hence'

When the proof is followed by 'Hence find ...', that part carries its own marks. Name uu, find dydu\dfrac{dy}{du} and dudx\dfrac{du}{dx}, and multiply, so the examiner sees the rule you just proved being used.

Concept 2 of 4: Differentiating composite functions

Peel the function like an onion. Differentiate the outermost function and keep what is inside it unchanged, then multiply by the derivative of the inside, and carry on until you reach x itself. Each layer gives one factor of the answer.

Definition

  • ddx[f(x)]n=n[f(x)]n−1f′(x)\dfrac{d}{dx}[f(x)]^n = n[f(x)]^{n-1} f'(x) and ddxf(x)=f′(x)2f(x)\dfrac{d}{dx}\sqrt{f(x)} = \dfrac{f'(x)}{2\sqrt{f(x)}}.
  • ddxsin⁡f(x)=cos⁡f(x)⋅f′(x)\dfrac{d}{dx}\sin f(x) = \cos f(x) \cdot f'(x) and ddxcos⁡f(x)=−sin⁡f(x)⋅f′(x)\dfrac{d}{dx}\cos f(x) = -\sin f(x) \cdot f'(x).
  • ddxtan⁡f(x)=sec⁡2f(x)⋅f′(x)\dfrac{d}{dx}\tan f(x) = \sec^2 f(x) \cdot f'(x) and ddxcot⁡f(x)=−cosec⁡2f(x)⋅f′(x)\dfrac{d}{dx}\cot f(x) = -\operatorname{cosec}^2 f(x) \cdot f'(x).
  • ddxef(x)=ef(x)f′(x)\dfrac{d}{dx}e^{f(x)} = e^{f(x)} f'(x) and ddxaf(x)=af(x)log⁡a⋅f′(x)\dfrac{d}{dx}a^{f(x)} = a^{f(x)} \log a \cdot f'(x).
  • ddxlog⁡f(x)=f′(x)f(x)\dfrac{d}{dx}\log f(x) = \dfrac{f'(x)}{f(x)}.
  • A product or quotient of composite functions needs the product or quotient rule, with the chain rule inside each part.

Derivative of a function of a function

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

Worked example

Differentiate y=cos⁡3(2x+1)y = \cos^3(2x + 1) with respect to xx.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2018 · Q. 5. (B) i.Easy

Example 2 · Differentiation · Derivatives of Composite Functions (Chain Rule)

If y=tan⁡2(log⁡x3)y = \tan^{2}\left( \log x^{3} \right), find dydx\frac{dy}{dx}.

Stopping one layer early

In sin⁡2(3x)\sin^2(3x) the answer needs all three factors: 2sin⁡3x2\sin 3x, then cos⁡3x\cos 3x, then 33. It equals 3sin⁡6x3\sin 6x. Leaving out the innermost factor is the most common slip.

Degrees inside a trigonometric function

The formula ddxsin⁡x=cos⁡x\dfrac{d}{dx}\sin x = \cos x holds only for xx in radians. For sin⁡x∘\sin x^\circ, write x∘=πx180x^\circ = \dfrac{\pi x}{180} radians, so ddxsin⁡x∘=π180cos⁡x∘\dfrac{d}{dx}\sin x^\circ = \dfrac{\pi}{180}\cos x^\circ.

Concept 3 of 4: Simplify with log laws and identities first

Many questions look long but shrink before you differentiate. A log of a product breaks into a sum, a power comes down in front, a to the power log of x to base a is just x, and a half-angle ratio under a root becomes a tangent. Fewer layers means fewer chain-rule factors and fewer slips.

Definition

  • log⁡(mn)=log⁡m+log⁡n\log(mn) = \log m + \log n, log⁡mn=log⁡m−log⁡n\log\dfrac{m}{n} = \log m - \log n, log⁡mn=nlog⁡m\log m^n = n\log m.
  • alog⁡ax=xa^{\log_a x} = x and log⁡ax=log⁡xlog⁡a\log_a x = \dfrac{\log x}{\log a}.
  • 1−cos⁡2θ=2sin⁡2θ1 - \cos 2\theta = 2\sin^2\theta and 1+cos⁡2θ=2cos⁡2θ1 + \cos 2\theta = 2\cos^2\theta, so 1−cos⁡2θ1+cos⁡2θ=tan⁡θ\sqrt{\dfrac{1 - \cos 2\theta}{1 + \cos 2\theta}} = \tan\theta when tan⁡θ>0\tan\theta > 0.
  • log⁡x\log x is to base ee, so ddxlog⁡x=1x\dfrac{d}{dx}\log x = \dfrac{1}{x}. The logarithm of a number, such as log⁡3\log 3, is a constant.

Log laws used before differentiating

log⁡mp nqrs=plog⁡m+qlog⁡n−slog⁡r\log\frac{m^p\, n^q}{r^s} = p\log m + q\log n - s\log r

Worked example

Differentiate y=log⁡[(x2+1)32x−1]y = \log\left[\dfrac{(x^2 + 1)^3}{\sqrt{2x - 1}}\right] with respect to xx.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2020 · Q. 9Easy

Example 3 · Differentiation · Derivatives of Composite Functions (Chain Rule)

Differentiate log⁡(secx+tanx)\log(secx + tanx) w.r.t. xx.

Differentiating the log of a big product directly

Applying the chain rule to the whole bracket puts a quotient rule inside a logarithm. Break the log into a sum first; each term then needs one short step.

Treating the logarithm of a number as a variable

log⁡3\log 3 and log⁡5\log 5 are constants. Their derivative is 0, and a factor such as 1log⁡3\dfrac{1}{\log 3} stays outside unchanged.

Concept 4 of 4: Derivatives from given values of f, g and their derivatives

Sometimes you are not given the formulas for f and g, only a few of their values and the values of their derivatives. The chain rule still works: find the value of the inner function first, then read the outer derivative at that value.

Definition

  • ddxf[g(x)]=f′[g(x)]⋅g′(x)\dfrac{d}{dx}f[g(x)] = f'[g(x)] \cdot g'(x), so at x=ax = a it is f′[g(a)]⋅g′(a)f'[g(a)] \cdot g'(a).
  • Order of work: find g(a)g(a) from the data, then read f′f' at that value, not at aa.
  • ddxh(x)=h′(x)2h(x)\dfrac{d}{dx}\sqrt{h(x)} = \dfrac{h'(x)}{2\sqrt{h(x)}}, useful when the expression is a root of a combination of ff and gg.
  • ddx[f(x)]2=2f(x)f′(x)\dfrac{d}{dx}[f(x)]^2 = 2f(x)f'(x).

Chain rule at a point

[ddxf(g(x))]x=a=f′(g(a))⋅g′(a)\left[\frac{d}{dx} f(g(x))\right]_{x = a} = f'(g(a)) \cdot g'(a)

Worked example

Given g(2)=5g(2) = 5, g′(2)=3g'(2) = 3 and f′(5)=−2f'(5) = -2, find the derivative of f[g(x)]f[g(x)] at x=2x = 2.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2025 · Q. 1. v.Moderate

Example 4 · Differentiation · Derivatives of Composite Functions (Chain Rule)

Let f(1)=3,f′(1)=−13,g(1)=−4f(1) = 3,f'(1) = - \frac{1}{3},g(1) = - 4 and g′(1)=−83g'(1) = - \frac{8}{3}. The derivative of [f(x)]2+[g(x)]2\sqrt{\left\lbrack f(x) \right\rbrack^{2} + \left\lbrack g(x) \right\rbrack^{2}} w.r.t. xx at x=1x = 1 is ______.

Reading the outer derivative at the wrong point

For f[g(x)]f[g(x)] at x=ax = a, use f′f' at g(a)g(a), not f′(a)f'(a). Write g(a)g(a) on its own line before you look up f′f'.

Dropping the sign of a given derivative

When a given derivative is negative, keep its sign through every product. A lost minus sign usually lands on one of the printed wrong options.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (4)

Watch out for (8)

Test yourself on Differentiation

10 past MH HSC 12 questions from this chapter, timed at 15 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.