NDA Maths · Differentiation

Core Techniques — Standard Derivatives, Rules, Chain & Logarithmic

The everyday toolkit: the derivative as a limit, the standard-derivative table, the product/quotient/chain rules, and logarithmic differentiation for variable exponents.

Why this matters

This subtopic carries the bulk of the chapter. Almost every question is 'recognise which tool applies' — a standard derivative, the chain rule, log-differentiation for a power tower, or a simplify-first move on an inverse-trig mess. Get these reflexes right and most of Differentiation becomes mechanical.

Concept 1 of 9

The derivative as a limit (first principles)

Intuition

The derivative is the limit of the slope of a chord as its two points slide together — the instantaneous rate of change. Every rule below is a shortcut for this one limit, so a question that writes the limit out is really just asking for the derivative.

Definition

f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h\to 0}\dfrac{f(x+h)-f(x)}{h} — the slope of the tangent at xx. Equivalently f(a)=limxaf(x)f(a)xaf'(a)=\lim_{x\to a}\dfrac{f(x)-f(a)}{x-a}. Geometrically it is the slope of the tangent line; physically, a rate of change.

First-principles definition

f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h\to 0}\frac{f(x+h)-f(x)}{h}
PQtangent: slope = f′(x)secant → tangent as Q→P

Worked example

Find f(x)f'(x) for f(x)=x2f(x)=x^2 from first principles.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 1DifferentiationMODERATE
If l1=ddx(esinx)l_1 = \dfrac{d}{dx}(e^{\sin x}), l2=limh0esin(x+h)esinxhl_2 = \lim_{h \to 0}\dfrac{e^{\sin(x+h)} - e^{\sin x}}{h}, l3=esinxcosxdxl_3 = \displaystyle\int e^{\sin x}\cos x\,dx, then which one of the following is correct?

[Q73 · Sep · 2017]

Concept 2 of 9

Standard derivatives to memorise

Intuition

A fixed table of derivatives underlies everything. Know it cold — power, trig, exponential, logarithmic, and inverse-trig — so that the rules below just stitch these together. Most EASY marks are a single lookup from this table.

Definition

Memorise these; the rules (product, quotient, chain) combine them. Angles are in radians — a degree argument must be converted first.

Function f(x)Derivative f′(x)
xnx^nnxn1n\,x^{n-1}
sinx\sin xcosx\cos x
cosx\cos xsinx-\sin x
tanx\tan xsec2x\sec^2 x
secx\sec xsecxtanx\sec x\tan x
exe^xexe^x
axa^xaxlnaa^x\ln a
The lna\ln a factor is the most-forgotten part of the table.
lnx\ln x1x\dfrac{1}{x}
logax\log_a x1xlna\dfrac{1}{x\ln a}
sin1x\sin^{-1} x11x2\dfrac{1}{\sqrt{1-x^2}}
tan1x\tan^{-1} x11+x2\dfrac{1}{1+x^2}
Radians only. The chain rule extends each of these to a composite argument.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 2DifferentiationMODERATE
What is the derivative of cosec(x)\cosec(x^{\circ})?

[Q94 · Apr · 2023]

Degrees must be converted to radians first

ddxsin(x)=π180cos(x)\frac{d}{dx}\sin(x^{\circ}) = \frac{\pi}{180}\cos(x^{\circ}), NOT cos(x)\cos(x^{\circ}). The standard table holds only for radian arguments; a degree symbol injects a π/180\pi/180 factor by the chain rule.

Don't power-rule an exponential

ddx(ax)=axlna\frac{d}{dx}(a^x) = a^x\ln a, NOT xax1x\,a^{x-1}. The power rule ddx(xn)=nxn1\frac{d}{dx}(x^n)=nx^{n-1} applies only when the BASE is the variable. When the variable is in the EXPONENT, the derivative carries the base unchanged and picks up a lna\ln a factor. (And ddxex=ex\frac{d}{dx}e^x = e^x, since lne=1\ln e = 1.)

Derivative of lnx\ln x is 1/x1/x, not lnx\ln x or xx

ddx(lnx)=1x\frac{d}{dx}(\ln x) = \dfrac{1}{x}. It is neither lnx\ln x (that's its own integral mistake) nor xx. For a general base, ddx(logax)=1xlna\frac{d}{dx}(\log_a x) = \dfrac{1}{x\ln a} — the extra lna\ln a lives in the DENOMINATOR here, the opposite of where it sits for axa^x.

Concept 3 of 9

Product and quotient rules

Intuition

Differentiating a product is not the product of derivatives. Use (uv)=uv+uv(uv)' = u'v + uv' for products and the quotient rule for ratios. Linearity handles sums: constants pull out, and (u±v)=u±v(u\pm v)' = u' \pm v'.

Definition

  • Product: (uv)=uv+uv(uv)' = u'v + uv'.
  • Quotient: (uv)=uvuvv2\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}.
  • Linearity: (au±bv)=au±bv(au \pm bv)' = au' \pm bv'.

Product and quotient rules

(uv)=uv+uv,(uv)=uvuvv2(uv)' = u'v + uv', \qquad \left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^2}

Worked example

Differentiate y=x2sinxy = x^2 \sin x.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 3DifferentiationEASY
Directions for the following three (03) items : Read the following information and answer the three items that follow : Let f(x)=x2+2x5f(x) = x^{2} + 2x - 5 and g(x)=5x+30g(x) = 5x + 30.
If h(x)=5f(x)xg(x)h(x) = 5f(x) - xg(x), then what is the derivative of h(x)h(x) ?

[Q93 · Sep · 2019]

The product rule is not the product of derivatives

(uv)uv(uv)' \neq u'v'. The correct rule is (uv)=uv+uv(uv)' = u'v + uv' — differentiate one factor at a time and add. For x2sinxx^2\sin x, the answer is 2xsinx+x2cosx2x\sin x + x^2\cos x, not (2x)(cosx)(2x)(\cos x).

Quotient rule — order and sign in the numerator matter

(uv)=uvuvv2\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}, NOT uvuvv2\dfrac{uv' - u'v}{v^2} and NOT uv+uvv2\dfrac{u'v + uv'}{v^2}. The derivative-of-the-top term comes first and the two terms are SUBTRACTED. Flipping the order negates the whole answer.

Concept 4 of 9

The chain rule (composite functions)

Intuition

To differentiate a function of a function, differentiate the outer function (leaving the inner alone) and multiply by the derivative of the inner. Peel the layers from outside in — this single rule is the most-used tool in the chapter.

Definition

ddxf(g(x))=f(g(x))g(x)\dfrac{d}{dx}f(g(x)) = f'(g(x))\cdot g'(x). For nested layers, multiply each layer's derivative: ddxf(g(h(x)))=f(g(h(x)))g(h(x))h(x)\dfrac{d}{dx}f(g(h(x))) = f'(g(h(x)))\,g'(h(x))\,h'(x).

Chain rule

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

Worked example

Differentiate y=sin(3x2)y = \sin(3x^2).
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 4DifferentiationMODERATE
If y=ex2sin2xy=e^{x^2}\sin 2x, what is dy/dx at x=πx=\pi?

[Q98 · Apr · 2018]

Don't forget the derivative of the inner function

ddxsin(3x2)=cos(3x2)6x\frac{d}{dx}\sin(3x^2) = \cos(3x^2)\cdot 6x, NOT just cos(3x2)\cos(3x^2). The chain rule multiplies by the inner derivative 6x6x; leaving it out is the single most common slip in the chapter. Every layer contributes its own factor.

Concept 5 of 9

Logarithmic differentiation

Intuition

When the variable is in the exponent (xxx^x, f(x)g(x)f(x)^{g(x)}) or you face a long product/quotient of powers, take ln\ln of both sides first. Logs convert powers to products and products to sums, after which you differentiate implicitly. It also cracks infinite power towers.

Definition

Take lny\ln y, simplify with log laws, then differentiate (the left side gives 1ydydx\frac{1}{y}\frac{dy}{dx}):

  • Variable exponent: y=f(x)g(x)lny=g(x)lnf(x)y = f(x)^{g(x)} \Rightarrow \ln y = g(x)\ln f(x).
  • Product of powers: lny\ln y splits into a sum, each term differentiated alone.
  • Power tower: y=(f(x))ylny=ylnf(x)y = (f(x))^{y} \Rightarrow \ln y = y\ln f(x) (the exponent is the whole yy again).

Logarithmic differentiation

y=f(x)g(x)    1ydydx=g(x)lnf(x)+g(x)f(x)f(x)y = f(x)^{g(x)} \;\Rightarrow\; \frac{1}{y}\frac{dy}{dx} = g'(x)\ln f(x) + g(x)\frac{f'(x)}{f(x)}

Worked example

Differentiate y=xxy = x^x.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 5DifferentiationMODERATE
If y=cosxcos4xcos8xy=\cos x\cdot\cos 4x\cdot\cos 8x, then what is 1ydydx\frac{1}{y}\frac{dy}{dx} at x=π4x=\frac{\pi}{4} equal to?

[Q72 · Sep · 2021]

Concept 6 of 9

Derivative of one function with respect to another

Intuition

'Differentiate uu with respect to vv' is NOT dudx\frac{du}{dx}. Treat both as functions of xx, differentiate each w.r.t. xx, and divide: dudv=du/dxdv/dx\frac{du}{dv} = \frac{du/dx}{dv/dx}.

Definition

To find dudv\dfrac{du}{dv} where u=u(x)u=u(x) and v=v(x)v=v(x): compute dudx\dfrac{du}{dx} and dvdx\dfrac{dv}{dx}, then dudv=du/dxdv/dx\dfrac{du}{dv} = \dfrac{du/dx}{dv/dx}. It is the same idea as parametric differentiation, with xx as the hidden parameter.

Derivative of u w.r.t. v

dudv=du/dxdv/dx\frac{du}{dv} = \frac{du/dx}{dv/dx}

Worked example

Find the derivative of x2x^2 with respect to x3x^3.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 6DifferentiationMODERATE
What is the derivative of exe^x with respect to xex^e?

[Q91 · Apr · 2021]

Concept 7 of 9

Simplify the inverse-trig first, then differentiate

Intuition

A messy inverse-trig expression almost always collapses before you differentiate. The standard move: substitute x=tanθx=\tan\theta (or x=sinθx=\sin\theta), recognise a double-angle or sum identity, and reduce the whole thing to a simple multiple of an angle. Differentiating the simplified form is trivial.

Definition

Common collapses (memorise the substitutions):

  • tan1 ⁣2x1x2, sin1 ⁣2x1+x2, cos1 ⁣1x21+x2\tan^{-1}\!\dfrac{2x}{1-x^2},\ \sin^{-1}\!\dfrac{2x}{1+x^2},\ \cos^{-1}\!\dfrac{1-x^2}{1+x^2}: put x=tanθ2θ=2tan1xx=\tan\theta\Rightarrow 2\theta = 2\tan^{-1}x.
  • cos1(sinx)=π2x\cos^{-1}(\sin x) = \tfrac{\pi}{2}-x; tan1 ⁣ab1+ab=tan1atan1b\tan^{-1}\!\dfrac{a-b}{1+ab}=\tan^{-1}a-\tan^{-1}b.

Differentiate the collapsed form (often ±1\pm 1, ±2/(1+x2)\pm 2/(1+x^2), etc.).

Standard inverse-trig collapses

tan12x1x2=2tan1xsin12x1+x2=2tan1xcos11x21+x2=2tan1xcos1(sinx)=π2xtan1ab1+ab=tan1atan1b\tan^{-1}\dfrac{2x}{1-x^2} = 2\tan^{-1}x \qquad \sin^{-1}\dfrac{2x}{1+x^2} = 2\tan^{-1}x \qquad \cos^{-1}\dfrac{1-x^2}{1+x^2} = 2\tan^{-1}x \qquad \cos^{-1}(\sin x) = \dfrac{\pi}{2} - x \qquad \tan^{-1}\dfrac{a-b}{1+ab} = \tan^{-1}a - \tan^{-1}b

Worked example

Differentiate y=tan1 ⁣(2x1x2)y = \tan^{-1}\!\left(\dfrac{2x}{1-x^2}\right).
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 7DifferentiationMODERATE
If y=cos1 ⁣(2x1+x2)y = \cos^{-1}\!\left(\dfrac{2x}{1+x^2}\right), then dydx\dfrac{dy}{dx} is equal to

[Q82 · Sep · 2017]

Don't quotient-rule the raw inverse-trig

Differentiating tan12x1x2\tan^{-1}\frac{2x}{1-x^2} directly with the chain + quotient rule is slow and error-prone. The intended path is the x=tanθx=\tan\theta collapse to 2tan1x2\tan^{-1}x first.

Concept 8 of 9

Differentiating functional equations

Intuition

When a function is defined by a rule like f(x+y)=f(x)f(y)f(x+y)=f(x)f(y) rather than a formula, differentiate the relation (or use first principles) to extract ff'. The exponential law f(x+y)=f(x)f(y)f(x+y)=f(x)f(y) forces f(x)=f(0)f(x)f'(x)=f'(0)\,f(x).

Definition

For f(x+y)=f(x)f(y)f(x+y)=f(x)f(y): from first principles f(x)=f(x)limh0f(h)1h=f(0)f(x)f'(x)=f(x)\lim_{h\to 0}\dfrac{f(h)-1}{h}=f'(0)\,f(x). More generally, differentiate the given relation w.r.t. one variable and substitute convenient values (often y=0y=0) to expose ff'.

Exponential functional equation

f(x+y)=f(x)f(y)    f(x)=f(0)f(x)f(x+y)=f(x)f(y) \;\Rightarrow\; f'(x) = f'(0)\,f(x)

Worked example

If f(x+y)=f(x)f(y)f(x+y)=f(x)f(y) for all x,yx,y and f(0)=2f'(0)=2, express f(x)f'(x).
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 8DifferentiationMODERATE
Let f(x+y)=f(x)f(y)f(x+y)=f(x)f(y) for all xx and yy. Then what is f(5)f'(5) equal to [where f(x)f'(x) is the derivative of f(x)f(x)]?

[Q89 · Apr · 2017]

Concept 9 of 9

Trigonometric Simplification Toolkit

Intuition

Across calculus a 'hard' derivative is often just an unsimplified trig expression. Before differentiating, scan for these standard forms and collapse them first — a root becomes a plain sum, a quotient becomes a single tangent, a product becomes one angle.

Definition

Keep these collapses in reflex memory:

  • **Half-angle of 1±cosx1\pm\cos x:** 1cosx=2sin2x21-\cos x = 2\sin^2\tfrac{x}{2}, 1+cosx=2cos2x21+\cos x = 2\cos^2\tfrac{x}{2}; so 1cosx1+cosx=tan2x2\dfrac{1-\cos x}{1+\cos x}=\tan^2\tfrac{x}{2}, 11cosx=12csc2x2\dfrac{1}{1-\cos x}=\tfrac12\csc^2\tfrac{x}{2}, 11+cosx=12sec2x2\dfrac{1}{1+\cos x}=\tfrac12\sec^2\tfrac{x}{2}.
  • Power-reduction (double angle): 1cos2x=2sin2x1-\cos 2x = 2\sin^2 x, 1+cos2x=2cos2x1+\cos 2x = 2\cos^2 x, sin2x=2sinxcosx\sin 2x = 2\sin x\cos x.
  • Perfect square under a root: 1±sin2x=(sinx±cosx)21\pm\sin 2x=(\sin x\pm\cos x)^2 and 1±sinθ=(cosθ2±sinθ2)21\pm\sin\theta=\left(\cos\tfrac\theta2\pm\sin\tfrac\theta2\right)^2, so 1±sin2x=sinx±cosx\sqrt{1\pm\sin 2x}=|\sin x\pm\cos x|keep the modulus; its sign depends on the interval.
  • **sec±tan\sec\pm\tan:** secx+tanx=1+sinxcosx=tan ⁣(π4+x2)\sec x+\tan x=\dfrac{1+\sin x}{\cos x}=\tan\!\left(\tfrac\pi4+\tfrac x2\right), secxtanx=tan ⁣(π4x2)\sec x-\tan x=\tan\!\left(\tfrac\pi4-\tfrac x2\right).
  • Harmonic form: asinx+bcosx=a2+b2sin(x+α)a\sin x+b\cos x=\sqrt{a^2+b^2}\,\sin(x+\alpha), so its extreme values are ±a2+b2\pm\sqrt{a^2+b^2}.
  • **Weierstrass t=tanx2t=\tan\tfrac{x}{2}:** sinx=2t1+t2\sin x=\dfrac{2t}{1+t^2}, cosx=1t21+t2\cos x=\dfrac{1-t^2}{1+t^2} — useful whenever a rational function of sinx,cosx\sin x,\cos x must be handled in one variable.

The collapses you reach for most

1+cosx=2cos2x2,1cosx=2sin2x2,1±sin2x=sinx±cosx1+\cos x = 2\cos^2\tfrac{x}{2},\quad 1-\cos x = 2\sin^2\tfrac{x}{2},\quad \sqrt{1\pm\sin 2x}=|\sin x\pm\cos x|
  • \tfrac{x}{2}half-angle — appears whenever you collapse 1±cosx1\pm\cos x
  • |\cdots|the root of a perfect square is a MODULUS; fix the sign on the given interval

Worked example

Simplify 1+sin2x\sqrt{1+\sin 2x} for 0<x<π40<x<\tfrac{\pi}{4}, then differentiate it.
Practice this conceptself-check · 4 quick reps

1±cosx1\pm\cos x (half-angle) vs 1±cos2x1\pm\cos 2x (power-reduction)

Different collapses: 1cosx=2sin2x21-\cos x = 2\sin^2\tfrac{x}{2} but 1cos2x=2sin2x1-\cos 2x = 2\sin^2 x. Read the angle inside the cosine before choosing the factor — the wrong one halves or doubles the argument.

The root of a perfect square is a MODULUS

(sinxcosx)2=sinxcosx\sqrt{(\sin x-\cos x)^2} = |\sin x-\cos x|, not sinxcosx\sin x-\cos x. Resolve the sign on the given interval: on (π4,π2)(\tfrac\pi4,\tfrac\pi2) it is +(sinxcosx)+(\sin x-\cos x); on (0,π4)(0,\tfrac\pi4) it is (sinxcosx)-(\sin x-\cos x). Dropping the modulus flips the sign of the whole derivative.

sec±tan\sec\pm\tan — mind which way the half-angle shifts

secx+tanx=tan ⁣(π4+x2)\sec x+\tan x=\tan\!\left(\tfrac\pi4+\tfrac x2\right) but secxtanx=tan ⁣(π4x2)\sec x-\tan x=\tan\!\left(\tfrac\pi4-\tfrac x2\right). Useful check: (secx+tanx)(secxtanx)=sec2xtan2x=1(\sec x+\tan x)(\sec x-\tan x)=\sec^2x-\tan^2x=1.

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 (8)

  • The derivative as a limit (first principles)

    First-principles definition

    f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h\to 0}\frac{f(x+h)-f(x)}{h}
  • Product and quotient rules

    Product and quotient rules

    (uv)=uv+uv,(uv)=uvuvv2(uv)' = u'v + uv', \qquad \left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^2}
  • The chain rule (composite functions)

    Chain rule

    ddxf(g(x))=f(g(x))g(x)\frac{d}{dx}\,f(g(x)) = f'(g(x))\cdot g'(x)
  • Logarithmic differentiation

    Logarithmic differentiation

    y=f(x)g(x)    1ydydx=g(x)lnf(x)+g(x)f(x)f(x)y = f(x)^{g(x)} \;\Rightarrow\; \frac{1}{y}\frac{dy}{dx} = g'(x)\ln f(x) + g(x)\frac{f'(x)}{f(x)}
  • Derivative of one function with respect to another

    Derivative of u w.r.t. v

    dudv=du/dxdv/dx\frac{du}{dv} = \frac{du/dx}{dv/dx}
  • Simplify the inverse-trig first, then differentiate

    Standard inverse-trig collapses

    tan12x1x2=2tan1xsin12x1+x2=2tan1xcos11x21+x2=2tan1xcos1(sinx)=π2xtan1ab1+ab=tan1atan1b\tan^{-1}\dfrac{2x}{1-x^2} = 2\tan^{-1}x \qquad \sin^{-1}\dfrac{2x}{1+x^2} = 2\tan^{-1}x \qquad \cos^{-1}\dfrac{1-x^2}{1+x^2} = 2\tan^{-1}x \qquad \cos^{-1}(\sin x) = \dfrac{\pi}{2} - x \qquad \tan^{-1}\dfrac{a-b}{1+ab} = \tan^{-1}a - \tan^{-1}b
  • Differentiating functional equations

    Exponential functional equation

    f(x+y)=f(x)f(y)    f(x)=f(0)f(x)f(x+y)=f(x)f(y) \;\Rightarrow\; f'(x) = f'(0)\,f(x)
  • Trigonometric Simplification Toolkit

    The collapses you reach for most

    1+cosx=2cos2x2,1cosx=2sin2x2,1±sin2x=sinx±cosx1+\cos x = 2\cos^2\tfrac{x}{2},\quad 1-\cos x = 2\sin^2\tfrac{x}{2},\quad \sqrt{1\pm\sin 2x}=|\sin x\pm\cos x|

Reference tables (1)

Standard derivatives to memorise11 rows
Function f(x)Derivative f′(x)
xnx^nnxn1n\,x^{n-1}
sinx\sin xcosx\cos x
cosx\cos xsinx-\sin x
tanx\tan xsec2x\sec^2 x
secx\sec xsecxtanx\sec x\tan x
exe^xexe^x
axa^xaxlnaa^x\ln a
The lna\ln a factor is the most-forgotten part of the table.
lnx\ln x1x\dfrac{1}{x}
logax\log_a x1xlna\dfrac{1}{x\ln a}
sin1x\sin^{-1} x11x2\dfrac{1}{\sqrt{1-x^2}}
tan1x\tan^{-1} x11+x2\dfrac{1}{1+x^2}
Radians only. The chain rule extends each of these to a composite argument.

Watch out for (10)

Drill every past-year question on this subtopic

49 questions from the bank — paginated, with cart and Word-export support.

Related notes