Why this lesson matters. This chapter drew 21 questions in the seven papers from NDA II 2023 to NDA II 2026, and at least one in every paper. Most of them use the chain rule in one form or another: a function of a function, an equation in which โxโ and โyโ are mixed, a pair of equations in a third letter, or a second derivative. Six real questions are solved in section 9. This is a long chapter. Take it in two sittings: sections 1 to 3 first, then sections 4 to 7.
What you will be able to do
- Write the derivative of every standard function from memory.
- Differentiate sums, products, quotients and composite functions.
- Find โ\dfrac{dy}{dx}โ when โyโ is given implicitly, in parametric form, or with a variable in the power.
- Find the derivative of one function with respect to another, and second order derivatives.
Before you start you should know: the derivative and the small table of Chapter M5-5, inverse trigonometric functions (Chapter M3-5) and logarithms (Chapter M1-11).
1. The standard derivatives
Learn this table by heart. Here โcโ, โnโ and โaโ are constants, with โa > 0โ.
| โf(x)โ | โf'(x)โ | โf(x)โ | โf'(x)โ |
|---|---|---|---|
| โcโ | โ0โ | โe^xโ | โe^xโ |
| โx^nโ | โn x^{n-1}โ | โa^xโ | โa^x \ln aโ |
| โ\sqrt{x}โ | โ\dfrac{1}{2\sqrt{x}}โ | โ\ln xโ | โ\dfrac{1}{x}โ |
| โ\sin xโ | โ\cos xโ | โ\log_a xโ | โ\dfrac{1}{x \ln a}โ |
| โ\cos xโ | โ-\sin xโ | โ\sin^{-1} xโ | โ\dfrac{1}{\sqrt{1 - x^2}}โ |
| โ\tan xโ | โ\sec^2 xโ | โ\cos^{-1} xโ | โ-\dfrac{1}{\sqrt{1 - x^2}}โ |
| โ\cot xโ | โ-\operatorname{cosec}^2 xโ | โ\tan^{-1} xโ | โ\dfrac{1}{1 + x^2}โ |
| โ\sec xโ | โ\sec x \tan xโ | โ\operatorname{cosec} xโ | โ-\operatorname{cosec} x \cot xโ |
A help for memory: the derivative of every function whose name begins with "co" (โ\cosโ, โ\cotโ, โ\operatorname{cosec}โ, โ\cos^{-1}โ) carries a minus sign.
2. Sum, product and quotient
Let โuโ and โvโ be functions of โxโ, and write โu'โ and โv'โ for their derivatives.
| Rule | Formula |
|---|---|
| Sum or difference | โ(u \pm v)' = u' \pm v'โ |
| Constant multiple | โ(cu)' = c\,u'โ |
| Product | โ(uv)' = u'v + uv'โ |
| Quotient | โ\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}โ |
For example, โ\dfrac{d}{dx}(x e^x) = 1 \cdot e^x + x \cdot e^x = e^x(1 + x)โ.
In the quotient rule the order matters: the derivative of the top comes first, and the sign in the middle is minus.
3. The chain rule (composite functions)
A composite function is a function of a function, such as โ\sin(x^2)โ. The outer function is โ\sinโ and the inner function is โx^2โ. If โy = f(u)โ and โu = g(x)โ, then
\frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx}
In words: differentiate the outer function and leave the inner function as it is; then multiply by the derivative of the inner function.

| โyโ | Outer and inner | โ\dfrac{dy}{dx}โ |
|---|---|---|
| โ\sin(x^2)โ | โ\sin uโ, โu = x^2โ | โ\cos(x^2) \times 2xโ |
| โ(3x + 1)^5โ | โu^5โ, โu = 3x + 1โ | โ5(3x + 1)^4 \times 3 = 15(3x + 1)^4โ |
| โe^{2x}โ | โe^uโ, โu = 2xโ | โ2e^{2x}โ |
| โ\ln(x^2 + 1)โ | โ\ln uโ, โu = x^2 + 1โ | โ\dfrac{2x}{x^2 + 1}โ |
The exam also uses the rule with a function whose formula is not given:
\frac{d}{dx} f(g(x)) = f'(g(x)) \times g'(x)
4. Implicit functions
Sometimes โxโ and โyโ are mixed in one equation and โyโ is not given alone, as in โx^2 + y^2 = 25โ. Then:
- Differentiate both sides with respect to โxโ.
- Each time you differentiate a term in โyโ, multiply by โ\dfrac{dy}{dx}โ (this is the chain rule, because โyโ is a function of โxโ).
- Solve for โ\dfrac{dy}{dx}โ.
For โx^2 + y^2 = 25โ: โ\;2x + 2y\dfrac{dy}{dx} = 0โ, so โ\dfrac{dy}{dx} = -\dfrac{x}{y}โ.
At the point โ(3, 4)โ of this circle the slope of the tangent is โ-\dfrac{3}{4}โ. The radius to that point has slope โ\dfrac{4}{3}โ, and the two are at right angles:

5. Logarithmic differentiation
When the variable is in the power, as in โy = x^xโ, take the logarithm of both sides first.
โ\ln y = x \ln xโ. Differentiate: โ\dfrac{1}{y}\dfrac{dy}{dx} = \ln x + x \cdot \dfrac{1}{x} = \ln x + 1โ. So
\frac{dy}{dx} = x^x(1 + \ln x)
The same method helps when โyโ is a product of many factors or powers.
6. Parametric form, and one function with respect to another
Parametric form. If โxโ and โyโ are both given in terms of a third letter โtโ (the parameter), then
\frac{dy}{dx} = \frac{dy/dt}{dx/dt}
For โx = at^2โ, โy = 2atโ: โ\;\dfrac{dy}{dx} = \dfrac{2a}{2at} = \dfrac{1}{t}โ.
With โa = 1โ the curve and two of its tangents look like this:

One function with respect to another. To differentiate โuโ with respect to โvโ, where both are functions of โxโ, differentiate each with respect to โxโ and divide:
\frac{du}{dv} = \frac{du/dx}{dv/dx}
For example, the derivative of โ\sin xโ with respect to โ\cos xโ is โ\dfrac{\cos x}{-\sin x} = -\cot xโ.
7. Second order derivatives
The derivative of the derivative is the second order derivative:
\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right), \quad \text{also written } y'' \text{ or } f''(x)
| โyโ | โ\dfrac{dy}{dx}โ | โ\dfrac{d^2y}{dx^2}โ |
|---|---|---|
| โx^3โ | โ3x^2โ | โ6xโ |
| โ\sin xโ | โ\cos xโ | โ-\sin xโ |
| โe^{2x}โ | โ2e^{2x}โ | โ4e^{2x}โ |
| โ\ln xโ | โ\dfrac{1}{x}โ | โ-\dfrac{1}{x^2}โ |
In parametric form, differentiate โ\dfrac{dy}{dx}โ with respect to โtโ and divide by โ\dfrac{dx}{dt}โ again. For โx = at^2โ, โy = 2atโ we found โ\dfrac{dy}{dx} = \dfrac{1}{t}โ, so
\frac{d^2y}{dx^2} = \frac{-1/t^2}{2at} = -\frac{1}{2at^3}
8. Worked examples
Example 1 (product and quotient). Differentiate (i) โy = x^2 \sin xโ and (ii) โy = \dfrac{x^2 + 1}{x - 1}โ.
(i) โ\dfrac{dy}{dx} = 2x \sin x + x^2 \cos xโ.
(ii) โ\dfrac{dy}{dx} = \dfrac{2x(x - 1) - (x^2 + 1)(1)}{(x - 1)^2} = \dfrac{x^2 - 2x - 1}{(x - 1)^2}โ.
Example 2 (chain rule). Differentiate (i) โy = \sqrt{1 + x^2}โ and (ii) โy = \ln(\sin x)โ.
(i) Outer โ\sqrt{u}โ, inner โu = 1 + x^2โ: โ\;\dfrac{dy}{dx} = \dfrac{1}{2\sqrt{1 + x^2}} \times 2x = \dfrac{x}{\sqrt{1 + x^2}}โ.
(ii) Outer โ\ln uโ, inner โu = \sin xโ: โ\;\dfrac{dy}{dx} = \dfrac{1}{\sin x} \times \cos x = \cot xโ.
Example 3 (implicit). Find โ\dfrac{dy}{dx}โ at the point โ(1, 2)โ on the curve โx^2 + xy + y^2 = 7โ.
Differentiate each term. The middle term is a product:
โ2x + \left(y + x\dfrac{dy}{dx}\right) + 2y\dfrac{dy}{dx} = 0โ, so โ\dfrac{dy}{dx} = -\dfrac{2x + y}{x + 2y}โ.
At โ(1, 2)โ: โ\dfrac{dy}{dx} = -\dfrac{4}{5}โ.
Example 4 (a substitution first). Find โ\dfrac{dy}{dx}โ if โy = \tan^{-1}\left(\dfrac{2x}{1 - x^2}\right)โ, where โ-1 < x < 1โ.
Do not use the chain rule at once. Put โx = \tan\thetaโ. Then โ\dfrac{2x}{1 - x^2} = \dfrac{2\tan\theta}{1 - \tan^2\theta} = \tan 2\thetaโ, so โy = 2\theta = 2\tan^{-1} xโ.
Now โ\dfrac{dy}{dx} = \dfrac{2}{1 + x^2}โ.
Look for such a substitution whenever an inverse trigonometric function has a complicated quantity inside it.
Example 5 (second order). If โy = 3\sin 2x + 4\cos 2xโ, show that โ\dfrac{d^2y}{dx^2} + 4y = 0โ.
โ\dfrac{dy}{dx} = 6\cos 2x - 8\sin 2xโ.
โ\dfrac{d^2y}{dx^2} = -12\sin 2x - 16\cos 2x = -4(3\sin 2x + 4\cos 2x) = -4yโ.
So โ\dfrac{d^2y}{dx^2} + 4y = 0โ.
9. From the real papers
These six questions are from the Mathematics papers of NDA & NAVAC from 2023 to 2026. Try each for 75 seconds before reading the solution.
NDA II 2023, Q66. If โf'(x) = \cos(\ln x)โ and โy = f\left(\frac{2x - 3}{x}\right)โ, then what is โ\frac{dy}{dx}โ equal to?
(a) โ\cos\left(\ln\left(\frac{2x - 3}{x}\right)\right)โโโ(b) โ-\frac{3}{x^2}\sin\left(\ln\left(\frac{2x - 3}{x}\right)\right)โโโ(c) โ\frac{3}{x^2}\cos\left(\ln\left(\frac{2x - 3}{x}\right)\right)โโโ(d) โ-\frac{3}{x^2}\cos\left(\ln\left(\frac{2x - 3}{x}\right)\right)โ
Solution. Let โu = \dfrac{2x - 3}{x} = 2 - \dfrac{3}{x}โ. Then โ\dfrac{du}{dx} = \dfrac{3}{x^2}โ. By the chain rule โ\dfrac{dy}{dx} = f'(u) \times \dfrac{du}{dx} = \dfrac{3}{x^2}\cos(\ln u)โ. Answer (c).
NDA I 2024, Q86. Let โf(x)โ and โg(x)โ be two functions such that โg(x) = x - \frac{1}{x}โ and โf \circ g(x) = x^3 - \frac{1}{x^3}โ. What is โf''(x)โ equal to?
(a) โ-\frac{2}{x^3}โโโ(b) โ2x + \frac{2}{x^3}โโโ(c) โ6x + 3โโโ(d) โ6xโ
Solution. First find โfโ. Since โ\left(x - \dfrac{1}{x}\right)^3 = x^3 - \dfrac{1}{x^3} - 3\left(x - \dfrac{1}{x}\right)โ, we have โx^3 - \dfrac{1}{x^3} = g^3 + 3gโ. So โf(x) = x^3 + 3xโ. Then โf'(x) = 3x^2 + 3โ and โf''(x) = 6xโ. Answer (d).
NDA I 2025, Q92. Let โy = \sin^{-1}\left(x - \frac{4x^3}{27}\right)โ. What is โ\frac{dy}{dx}โ equal to?
(a) โ\frac{1}{\sqrt{9-x^2}}โโโ(b) โ\frac{1}{\sqrt{3-x^2}}โโโ(c) โ\frac{3}{\sqrt{9-x^2}}โโโ(d) โ\frac{9}{\sqrt{9-x^2}}โ
Solution. Put โx = 3\sin\thetaโ. The bracket becomes โ3\sin\theta - 4\sin^3\theta = \sin 3\thetaโ, so โy = 3\theta = 3\sin^{-1}\left(\dfrac{x}{3}\right)โ. Then โ\dfrac{dy}{dx} = 3 \times \dfrac{1}{\sqrt{1 - x^2/9}} \times \dfrac{1}{3} = \dfrac{3}{\sqrt{9 - x^2}}โ. Answer (c).
NDA II 2025, Q84. Consider the function โf(x) = \begin{cases} 4(5^x), & x < 0 \\ 8k + x, & x \ge 0 \end{cases}โ What is โf'(-1)โ equal to?
(a) โ\frac{2}{5}\ln 5โโโ(b) โ\frac{3}{5}\ln 5โโโ(c) โ\frac{4}{5}\ln 5โโโ(d) โ20\ln 5โ
Solution. At โx = -1โ the first formula applies. The derivative of โa^xโ is โa^x \ln aโ, so โf'(x) = 4 \times 5^x \ln 5โ and โf'(-1) = 4 \times \dfrac{1}{5} \times \ln 5 = \dfrac{4}{5}\ln 5โ. Answer (c).
NDA I 2026, Q97. Consider the differential equation โe^{x+y}\,\frac{dy}{dx} = e^{x-y}โ : What is โ\frac{d^2y}{dx^2}\left(\frac{dx}{dy}\right)^2โ equal to?
(a) โ-2โโโ(b) โ-1โโโ(c) โ0โโโ(d) โ2โ
Solution. Divide by โe^{x+y}โ: โ\dfrac{dy}{dx} = e^{-2y}โ. Differentiate again with respect to โxโ, remembering that โyโ depends on โxโ: โ\dfrac{d^2y}{dx^2} = -2e^{-2y}\dfrac{dy}{dx} = -2\left(\dfrac{dy}{dx}\right)^2โ. Since โ\dfrac{dx}{dy} = \dfrac{1}{dy/dx}โ, multiplying by โ\left(\dfrac{dx}{dy}\right)^2โ leaves โ-2โ. Answer (a).
NDA II 2026, Q91. Consider the following statements : I. โ\frac{d}{dx}\ln|x| = -\frac{1}{x}โ if โx < 0โ II. โ\frac{d}{dx}\ln|x| = \frac{1}{x}โ if โx > 0โ Which of the statements given above is/are correct?
(a) I onlyโโ(b) II onlyโโ(c) Both I and IIโโ(d) Neither I nor II
Solution. For โx > 0โ, โ\ln|x| = \ln xโ, with derivative โ\dfrac{1}{x}โ: II is correct. For โx < 0โ, โ\ln|x| = \ln(-x)โ. By the chain rule its derivative is โ\dfrac{1}{-x} \times (-1) = \dfrac{1}{x}โ, not โ-\dfrac{1}{x}โ: I is wrong. Answer (b).
10. Mistakes that cost marks
- Differentiating a product factor by factor. โ(uv)'โ is not โu'v'โ. Test it on โx \cdot x = x^2โ: the derivative is โ2xโ, not โ1 \times 1โ.
- Forgetting the inner derivative. โ\dfrac{d}{dx}\sin 3x = 3\cos 3xโ, not โ\cos 3xโ.
- Using the power rule on โa^xโ. โ\dfrac{d}{dx} 2^x = 2^x \ln 2โ, not โx\,2^{x-1}โ. The power rule is for โx^nโ, where the power is a constant.
- Forgetting โ\dfrac{dy}{dx}โ in implicit differentiation. โ\dfrac{d}{dx}(y^2) = 2y\dfrac{dy}{dx}โ, not โ2yโ.
11. Quick check
Do these without help. Answers are at the end.
- Differentiate โy = x^3 e^xโ.
- Differentiate โy = \sin(5x + 2)โ.
- Find โ\dfrac{dy}{dx}โ at the point โ(1, 3)โ on the circle โx^2 + y^2 = 10โ.
- Find the derivative of โx^3โ with respect to โx^2โ.
- Find โ\dfrac{d^2y}{dx^2}โ if โy = \ln xโ.
12. Read and watch more, free
| What | Where | Language |
|---|---|---|
| Textbook | NCERT Class 12 Mathematics, Chapter 5 Continuity and Differentiability ยท Hindi edition | English, Hindi |
| Self-study notes, algebraic functions | NIOS Mathematics, Lesson 26 Differentiation ยท Hindi edition | English, Hindi |
| Self-study notes, trigonometric functions | NIOS Mathematics, Lesson 27 Differentiation of Trigonometric Functions ยท Hindi edition | English, Hindi |
| Self-study notes, exponential and logarithmic functions | NIOS Mathematics, Lesson 28 Differentiation of Exponential and Logarithmic Functions ยท Hindi edition | English, Hindi |
| Video, the chapter for NDA | Defence Wallah: Fast Track 2021 (the class named DERIVATIVES, about 1 hour) | Hinglish |
| Video, a longer class for NDA | NDA Vijay by Unacademy: Maths Free Milestone Batch (the class named Methods of Differentiation, about 2 hours 40 minutes) | Hinglish |
| Video, every textbook problem | Magnet Brains: Class 12 Maths complete course (the 30 videos of Chapter 5) | Hinglish |
| Past NDA questions | ExamSIDE: Differentiation | English |
The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.
Answers to the quick check
- โ\dfrac{dy}{dx} = 3x^2 e^x + x^3 e^x = x^2 e^x(3 + x)โ.
- โ\dfrac{dy}{dx} = 5\cos(5x + 2)โ.
- โ2x + 2y\dfrac{dy}{dx} = 0โ, so โ\dfrac{dy}{dx} = -\dfrac{x}{y} = -\dfrac{1}{3}โ.
- โ\dfrac{3x^2}{2x} = \dfrac{3x}{2}โ.
- โ\dfrac{dy}{dx} = \dfrac{1}{x}โ, so โ\dfrac{d^2y}{dx^2} = -\dfrac{1}{x^2}โ.
Next chapter: Increasing and decreasing functions.