Differentiation: Rules, Chain Rule, Tangents and Maxima Minima
Differentiation measures how fast one quantity changes with respect to another; the derivative dy/dx is the slope of the tangent to the curve y = f(x). It is one of the most heavily tested topics in ECAT, NUST NET and JEE Main, through direct derivatives, the chain rule, implicit and parametric forms, tangent lines and maximum or minimum values. A short table of standard results plus four rules covers nearly every question.
Asked in: ECAT, NUST NET, JEE Main, FSc and Class 11-12 boards
What the derivative means
The derivative of f at x is the limit of the slope of a chord as its second point slides onto the first. It gives the slope of the tangent and the instantaneous rate of change, such as velocity as the rate of change of displacement.
Finding a derivative straight from this limit is called differentiation from first principles. In practice we use standard results and rules derived from it.
- f′(x) = lim h→0 [f(x + h) − f(x)]/h
- dy/dx = slope of tangent = rate of change of y with x
- Velocity v = ds/dt, acceleration a = dv/dt
Standard derivatives
The power rule works for any real power: x⁻¹ = 1/x gives −1/x², and √x = x raised to 1/2 gives 1/(2√x). The derivative of a constant is 0.
Learn the six trigonometric results in pairs, and note that the derivatives of the 'co' functions (cos, cot, cosec) all carry a minus sign.
- d/dx xⁿ = nxⁿ⁻¹; d/dx √x = 1/(2√x)
- d/dx eˣ = eˣ; d/dx aˣ = aˣ ln a; d/dx ln x = 1/x
- d/dx sin x = cos x; d/dx cos x = −sin x; d/dx tan x = sec²x
- d/dx sec x = sec x tan x; d/dx cosec x = −cosec x cot x; d/dx cot x = −cosec²x
- d/dx sin⁻¹x = 1/√(1 − x²); d/dx tan⁻¹x = 1/(1 + x²)
Sum, product and quotient rules
Derivatives can be taken term by term, and constants come outside. For a product of two functions use the product rule; for a fraction use the quotient rule.
In the quotient rule the order matters: (bottom × derivative of top − top × derivative of bottom) over bottom squared. Swapping the order flips the sign of the answer.
- (u ± v)′ = u′ ± v′, (cu)′ = cu′
- (uv)′ = u′v + uv′
- (u/v)′ = (vu′ − uv′)/v²
The chain rule
For a function of a function, y = f(g(x)), differentiate the outer function keeping the inside unchanged, then multiply by the derivative of the inside.
Examples: d/dx sin(3x²) = cos(3x²) × 6x, and d/dx (2x + 5)⁴ = 4(2x + 5)³ × 2. A linear inside ax + b simply multiplies the answer by a.
- dy/dx = dy/du × du/dx
- d/dx [f(x)]ⁿ = n[f(x)]ⁿ⁻¹ f′(x)
- d/dx ln f(x) = f′(x)/f(x); d/dx e raised to f(x) = f′(x) × e raised to f(x)
Implicit and parametric differentiation
When x and y are mixed in one equation, such as x² + y² = 25, differentiate every term with respect to x, writing dy/dx each time you differentiate a term containing y, then solve for dy/dx.
When x and y are both given in terms of a parameter t, divide their t-derivatives.
- d/dx (y²) = 2y dy/dx
- Parametric: dy/dx = (dy/dt) ÷ (dx/dt)
Tangents and normals
The slope of the tangent at (x₁, y₁) is m = f′(x₁). The normal is perpendicular to the tangent, so its slope is −1/m.
The tangent is horizontal where f′(x) = 0 and vertical where dx/dy = 0.
- Tangent: y − y₁ = m(x − x₁)
- Normal: y − y₁ = (−1/m)(x − x₁)
- Perpendicular lines: m₁ × m₂ = −1
Increasing, decreasing, maxima and minima
f is increasing where f′(x) is positive and decreasing where it is negative. At a local maximum or minimum the tangent is horizontal, so f′(x) = 0; such points are called critical points.
Second derivative test: at a critical point, if f″(x) is negative the point is a local maximum; if positive, a local minimum; if zero, the test fails and you check the sign of f′ on either side. In word problems, write the quantity to be optimised as a function of one variable, set its derivative to zero and check.
- Critical point: f′(x) = 0
- f″ negative ⇒ maximum; f″ positive ⇒ minimum
- Fixed perimeter P: a rectangle has greatest area when it is a square of side P/4
Solved examples
- Differentiate y = 4x³ − 5x² + 7x − 2.
- Differentiate term by term with the power rule.
- 4x³ → 12x², −5x² → −10x, 7x → 7, and the constant −2 → 0.
Answer: dy/dx = 12x² − 10x + 7 - Differentiate y = x² sin x.
- Product rule with u = x² and v = sin x: u′ = 2x, v′ = cos x.
- dy/dx = u′v + uv′ = 2x sin x + x² cos x.
Answer: dy/dx = 2x sin x + x² cos x - Differentiate y = (2x + 1)/(x − 3).
- Quotient rule with u = 2x + 1 (u′ = 2) and v = x − 3 (v′ = 1).
- dy/dx = [(x − 3)(2) − (2x + 1)(1)]/(x − 3)².
- Numerator: 2x − 6 − 2x − 1 = −7.
Answer: dy/dx = −7/(x − 3)² - Differentiate (a) y = sin(3x² + 1) and (b) y = ln(x² + 4).
- (a) Outer function sin, inner 3x² + 1 with derivative 6x.
- dy/dx = cos(3x² + 1) × 6x = 6x cos(3x² + 1).
- (b) d/dx ln f(x) = f′(x)/f(x), with f(x) = x² + 4 and f′(x) = 2x.
- dy/dx = 2x/(x² + 4).
Answer: (a) 6x cos(3x² + 1); (b) 2x/(x² + 4) - Find the equations of the tangent and the normal to y = x³ − 3x + 2 at the point (2, 4).
- Check the point: 8 − 6 + 2 = 4, so (2, 4) lies on the curve.
- dy/dx = 3x² − 3, which at x = 2 is 12 − 3 = 9. So the tangent slope is 9.
- Tangent: y − 4 = 9(x − 2), that is y = 9x − 14.
- Normal slope = −1/9: y − 4 = −(1/9)(x − 2), which gives 9y − 36 = −x + 2, so x + 9y = 38.
Answer: Tangent y = 9x − 14; normal x + 9y = 38 - Find the local maximum and minimum values of f(x) = 2x³ − 9x² + 12x + 1.
- f′(x) = 6x² − 18x + 12 = 6(x − 1)(x − 2), so the critical points are x = 1 and x = 2.
- f″(x) = 12x − 18. At x = 1, f″ = −6 (negative), so x = 1 gives a maximum. At x = 2, f″ = 6 (positive), a minimum.
- f(1) = 2 − 9 + 12 + 1 = 6 and f(2) = 16 − 36 + 24 + 1 = 5.
Answer: Local maximum 6 at x = 1; local minimum 5 at x = 2
Exam shortcuts
- Before differentiating, rewrite roots and fractions as powers: 3/x² = 3x⁻², √x = x raised to 1/2. Then only the power rule is needed.
- For d/dx [f(x)]ⁿ, write n[f(x)]ⁿ⁻¹ and then multiply by f′(x); the most common lost mark is forgetting this last factor.
- d/dx ln f(x) = f′(x)/f(x) is a one-line shortcut: d/dx ln(sin x) = cos x/sin x = cot x.
- In MCQs with options in x, put a simple value such as x = 0 or x = 1 into the derivative and each option to eliminate wrong ones.
- For the normal, first find the tangent slope m, then use −1/m; never differentiate again.
- For a cubic, the maximum is at the smaller critical point when the x³ coefficient is positive, and at the larger one when it is negative.
Common mistakes
- Reversing the quotient rule numerator to uv′ − vu′, which flips the sign of the answer.
- Forgetting to multiply by the derivative of the inside function in the chain rule, for example writing d/dx sin 5x = cos 5x.
- Differentiating a product term by term: d/dx (x² sin x) is not 2x cos x.
- Getting the sign of d/dx cos x wrong; it is −sin x.
- Assuming every point where f′(x) = 0 is a maximum without checking f″ or the sign change.
Practice MCQs
- d/dx (x⁵) equals:
A) x⁴
B) 5x⁵
C) x⁶/6
D) 5x⁴
Answer: D) 5x⁴ — Power rule: bring down the power and reduce it by one, 5x⁴. x⁶/6 is the integral, not the derivative. - d/dx (3 sin x − 2 cos x) equals:
A) 3 cos x − 2 sin x
B) −3 cos x + 2 sin x
C) −3 cos x − 2 sin x
D) 3 cos x + 2 sin x
Answer: D) 3 cos x + 2 sin x — d/dx sin x = cos x and d/dx cos x = −sin x, so −2 cos x becomes +2 sin x. The answer is 3 cos x + 2 sin x. - d/dx (1/x²) equals:
A) 2/x³
B) −2/x³
C) −1/x
D) −2/x
Answer: B) −2/x³ — 1/x² = x⁻², so the derivative is −2x⁻³ = −2/x³. - d/dx (eˣ ln x) equals:
A) eˣ/x
B) eˣ(ln x − 1/x)
C) eˣ ln x
D) eˣ(ln x + 1/x)
Answer: D) eˣ(ln x + 1/x) — Product rule: (eˣ)′ ln x + eˣ(ln x)′ = eˣ ln x + eˣ/x = eˣ(ln x + 1/x). eˣ/x multiplies the two derivatives, which is not the product rule. - If y = √x, what is dy/dx at x = 4?
A) 1/2
B) 1/4
C) 2
D) 4
Answer: B) 1/4 — dy/dx = 1/(2√x) = 1/(2 × 2) = 1/4. The answer 1/2 forgets the 2 in the denominator. - d/dx (sin x/x) equals:
A) (sin x − x cos x)/x²
B) cos x
C) (x cos x − sin x)/x²
D) (x cos x + sin x)/x²
Answer: C) (x cos x − sin x)/x² — Quotient rule: (bottom × top′ − top × bottom′)/bottom² = (x cos x − sin x × 1)/x². Reversing the order gives the option with the wrong sign. - d/dx (3x + 1)⁵ equals:
A) 15(3x + 1)⁴
B) 5(3x + 1)⁴
C) 15(3x + 1)⁵
D) 3(3x + 1)⁴
Answer: A) 15(3x + 1)⁴ — Chain rule: 5(3x + 1)⁴ × 3 = 15(3x + 1)⁴. Forgetting the inner derivative 3 gives 5(3x + 1)⁴. - d/dx (sin²x) equals:
A) 2 sin x
B) cos 2x
C) sin 2x
D) −sin 2x
Answer: C) sin 2x — Chain rule: 2 sin x × cos x = sin 2x. Writing 2 sin x leaves out the derivative of the inside function sin x. - d/dx ln(sin x) equals:
A) tan x
B) cot x
C) 1/sin x
D) −cot x
Answer: B) cot x — d/dx ln f(x) = f′(x)/f(x) = cos x/sin x = cot x. 1/sin x forgets to multiply by the derivative of sin x. - If x = t² and y = t³, then dy/dx equals:
A) 2/(3t)
B) 3t²/2
C) 3t/2
D) 3/2
Answer: C) 3t/2 — dy/dx = (dy/dt) ÷ (dx/dt) = 3t²/(2t) = 3t/2. Dividing the other way round gives 2/(3t). - If x² + y² = 25, then dy/dx equals:
A) −x/y
B) x/y
C) −y/x
D) y/x
Answer: A) −x/y — Differentiate both sides: 2x + 2y dy/dx = 0, so dy/dx = −x/y. This also shows the tangent to a circle is perpendicular to the radius. - The equation of the tangent to y = x² − 4x + 3 at x = 3 is:
A) y = 2x + 6
B) y = −2x + 6
C) y = 2x − 6
D) y = 3x − 9
Answer: C) y = 2x − 6 — At x = 3, y = 9 − 12 + 3 = 0, so the point is (3, 0). Slope = 2x − 4 = 2. Tangent: y − 0 = 2(x − 3), that is y = 2x − 6. - What is the slope of the normal to the curve y = x³ at x = 1?
A) −1/3
B) 3
C) 1/3
D) −3
Answer: A) −1/3 — Tangent slope = 3x² = 3 at x = 1. The normal slope is the negative reciprocal, −1/3. The value 3 is the tangent slope, not the normal slope. - What is the local maximum value of f(x) = x³ − 3x + 4?
A) 6
B) 2
C) 4
D) −1
Answer: A) 6 — f′(x) = 3x² − 3 = 0 at x = ±1. f″(x) = 6x is negative at x = −1, so the maximum is at x = −1: f(−1) = −1 + 3 + 4 = 6. The value 2 is the local minimum (at x = 1), and −1 is where the maximum occurs, not its value. - Neha has 40 m of fencing to enclose a rectangular garden against a long wall, so only three sides need fencing. What is the greatest area she can enclose?
A) 100 m²
B) 200 m²
C) 400 m²
D) 150 m²
Answer: B) 200 m² — Let each side perpendicular to the wall be x; the side parallel to the wall is 40 − 2x. Area A = x(40 − 2x), A′ = 40 − 4x = 0 gives x = 10, and A″ = −4 confirms a maximum. A = 10 × 20 = 200 m². 100 m² is the answer for a square fenced on all four sides.
Questions
Do I need differentiation from first principles for entry tests?
Rarely in full. Know what the definition f′(x) = lim h→0 [f(x + h) − f(x)]/h means, since a question may give such a limit and ask what it represents. For actual calculations, use the standard results and rules.
How do I decide between the product rule and the chain rule?
Use the product rule when two functions are multiplied, like x² sin x. Use the chain rule when one function sits inside another, like sin(x²). Some questions need both, such as x² sin(3x).
How can I tell a maximum from a minimum?
Find where f′(x) = 0, then check f″(x) there: negative means a maximum (the curve bends down), positive means a minimum. If f″ is zero, look at the sign of f′ just before and after the point.
What does the derivative mean in physics questions?
It is a rate of change. If s is displacement, ds/dt is velocity and d²s/dt² is acceleration. In geometry, dA/dr for a circle (2πr) is the rate at which area grows with radius.