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 8

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.
  1. f(x)=limh0(x+h)2x2h=limh02xh+h2hf'(x)=\lim_{h\to 0}\dfrac{(x+h)^2 - x^2}{h}=\lim_{h\to 0}\dfrac{2xh + h^2}{h}.
  2. Cancel hh: limh0(2x+h)=2x\lim_{h\to 0}(2x + h) = 2x.
Answer:f(x)=2xf'(x)=2x.
Practice this conceptself-check · 4 quick reps

Try it yourself

If g(x)=25x2g(x)=\sqrt{25-x^2}, what does limx1g(x)g(1)x1\lim_{x\to 1}\dfrac{g(x)-g(1)}{x-1} equal?

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    First-principles definition of f(x)f'(x)?
  2. 2.
    Geometric meaning of f(a)f'(a)?
  3. 3.
    limxaf(x)f(a)xa\lim_{x\to a}\frac{f(x)-f(a)}{x-a} is?
  4. 4.
    From first principles, derivative of x2x^2?

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 8

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

Try it yourself

What is the derivative of cosec(x)\cosec(x^{\circ}) with respect to xx?

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    ddx(ax)\frac{d}{dx}(a^x)?
  2. 2.
    ddx(tan1x)\frac{d}{dx}(\tan^{-1}x)?
  3. 3.
    ddx(logax)\frac{d}{dx}(\log_a x)?
  4. 4.
    Angle unit assumed by the trig derivatives?

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.

Concept 3 of 8

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.
  1. Product rule with u=x2u=x^2, v=sinxv=\sin x.
  2. y=(2x)(sinx)+(x2)(cosx)y' = (2x)(\sin x) + (x^2)(\cos x).
Answer:y=2xsinx+x2cosxy' = 2x\sin x + x^2\cos x.
Practice this conceptself-check · 4 quick reps

Try it yourself

Differentiate y=x1+xy = \dfrac{x}{1+x}.

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    (uv)(uv)'?
  2. 2.
    (u/v)(u/v)'?
  3. 3.
    ddx(x2sinx)\frac{d}{dx}(x^2\sin x)?
  4. 4.
    Is (uv)=uv(uv)' = u'v'?

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]

Concept 4 of 8

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).
  1. Outer sin\sincos(3x2)\cos(3x^2), inner 3x23x^26x6x.
  2. Multiply: y=cos(3x2)6xy' = \cos(3x^2)\cdot 6x.
Answer:y=6xcos(3x2)y' = 6x\cos(3x^2).
Practice this conceptself-check · 4 quick reps

Try it yourself

Differentiate y=esinxy = e^{\sin x}.

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    ddxf(g(x))\frac{d}{dx}f(g(x))?
  2. 2.
    ddxsin(3x2)\frac{d}{dx}\sin(3x^2)?
  3. 3.
    ddxesinx\frac{d}{dx}e^{\sin x}?
  4. 4.
    ddx(ln(cosx))\frac{d}{dx}(\ln(\cos x))?

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]

Concept 5 of 8

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.
  1. Take ln\ln: lny=xlnx\ln y = x\ln x.
  2. Differentiate: 1ydydx=lnx+1\dfrac{1}{y}\dfrac{dy}{dx} = \ln x + 1.
  3. Multiply by y=xxy=x^x: dydx=xx(lnx+1)\dfrac{dy}{dx} = x^x(\ln x + 1).
Answer:dydx=xx(1+lnx)\dfrac{dy}{dx} = x^x(1 + \ln x).
Practice this conceptself-check · 4 quick reps

Try it yourself

If y=(cosx)(cosx)y = (\cos x)^{(\cos x)^{\cdots\infty}}, find dydx\dfrac{dy}{dx}.

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    First step for y=f(x)g(x)y = f(x)^{g(x)}?
  2. 2.
    ddx(xx)\frac{d}{dx}(x^x)?
  3. 3.
    Left side after lny\ln y differentiated?
  4. 4.
    Power tower y=aay=a^{a^{\cdots}} becomes?

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 8

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.
  1. d(x2)dx=2x\dfrac{d(x^2)}{dx} = 2x, d(x3)dx=3x2\dfrac{d(x^3)}{dx} = 3x^2.
  2. Divide: d(x2)d(x3)=2x3x2=23x\dfrac{d(x^2)}{d(x^3)} = \dfrac{2x}{3x^2} = \dfrac{2}{3x}.
Answer:23x\dfrac{2}{3x}.
Practice this conceptself-check · 4 quick reps

Try it yourself

Find the derivative of sin2x\sin^2 x with respect to cos2x\cos^2 x.

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    dudv\frac{du}{dv} in terms of xx-derivatives?
  2. 2.
    Derivative of x2x^2 w.r.t. x3x^3?
  3. 3.
    Derivative of sin2x\sin^2 x w.r.t. cos2x\cos^2 x?
  4. 4.
    Is 'derivative of uu w.r.t. vv' the same as du/dxdu/dx?

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 8

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.).

Worked example

Differentiate y=tan1 ⁣(2x1x2)y = \tan^{-1}\!\left(\dfrac{2x}{1-x^2}\right).
  1. Put x=tanθx=\tan\theta: 2x1x2=tan2θ\dfrac{2x}{1-x^2} = \tan 2\theta, so y=2θ=2tan1xy = 2\theta = 2\tan^{-1}x.
  2. Differentiate: dydx=21+x2\dfrac{dy}{dx} = \dfrac{2}{1+x^2}.
Answer:dydx=21+x2\dfrac{dy}{dx} = \dfrac{2}{1+x^2}.
Practice this conceptself-check · 4 quick reps

Try it yourself

Find the slope of y=cos1(sinx)y = \cos^{-1}(\sin x).

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    Substitution for tan12x1x2\tan^{-1}\frac{2x}{1-x^2}?
  2. 2.
    ddxtan12x1x2\frac{d}{dx}\tan^{-1}\frac{2x}{1-x^2}?
  3. 3.
    cos1(sinx)\cos^{-1}(\sin x) simplifies to?
  4. 4.
    Do you differentiate before or after simplifying?

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 8

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).
  1. From the relation, f(x)=f(0)f(x)f'(x) = f'(0)\,f(x).
  2. With f(0)=2f'(0)=2: f(x)=2f(x)f'(x) = 2f(x).
Answer:f(x)=2f(x)f'(x) = 2f(x) (so f(x)=e2xf(x)=e^{2x} up to f(0)=1f(0)=1).
Practice this conceptself-check · 4 quick reps

Try it yourself

If f(x+y)=f(x)f(y)f(x+y)=f(x)f(y) and f(0)=1f(0)=1, what is f(5)f'(5) in terms of f(0)f'(0)?

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    f(x+y)=f(x)f(y)f(x)=?f(x+y)=f(x)f(y) \Rightarrow f'(x)=?
  2. 2.
    What must f(0)f(0) equal for f(x+y)=f(x)f(y)f(x+y)=f(x)f(y) (non-trivial)?
  3. 3.
    Such an ff is which standard function?
  4. 4.
    Handy substitution to extract ff'?

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]

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

  • 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}
  • 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)

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

Mastery check — 5 interleaved questions

Try each one before clicking. Questions are interleaved across the concepts above, not grouped — interleaving sharpens transfer.

Example 1DifferentiationMODERATE
Directions for the following three (03) items : Read the following information and answer the three items that follow : A curve y=memxy = me^{mx} where m>0m > 0 intersects yy-axis at a point PP.
How much angle does the tangent at PP make with yy-axis ?

[Q77 · Sep · 2019]

Example 2DifferentiationMODERATE
If y=xx21628lnx+x216y = \frac{x\sqrt{x^2-16}}{2} - 8\ln\left|x+\sqrt{x^2-16}\right|, then what is dydx\frac{dy}{dx} equal to?

[Q77 · Sep · 2022]

Example 3DifferentiationMODERATE
If u=eaxsinbxu=e^{ax}\sin bx and v=eaxcosbxv=e^{ax}\cos bx, then what is ududx+vdvdxu\frac{du}{dx}+v\frac{dv}{dx} equal to?

[Q91 · Sep · 2018]

Example 4DifferentiationEASY
If f(x) is an even function, then which is correct?

[Q97 · Apr · 2018]

Example 5DifferentiationMODERATE
If y=(1+x)(1+x2)(1+x4)(1+x8)(1+x16)y=(1+x)(1+x^{2})(1+x^{4})(1+x^{8})(1+x^{16}), then what is dydx\frac{dy}{dx} at x=0x=0 equal to?

[Q71 · Sep · 2021]

Drill every past-year question on this subtopic

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

Related notes