Derivatives and the chain rule

Distinguish height from gradient, find first and second derivatives with their input conditions, and recover tangents from point or slope conditions.

More
Reading settingsKeep track of this lesson

Read offline with Premium

Save lessons and their figures on this device to read without an internet connection. Offline saving is included with Premium.

Connect at least once every 30 days to confirm Premium. Topic checks, coaching and sync need a connection.

Find this activity in your course
On this page

Reading settings

Colour theme, text size, line spacing and reading width for your lessons.

Colour theme
Text size
Line spacing
Reading width
Revision Mode

Keep just the revision notes by hiding embedded questions and activities, including worked examples. Your choice follows your account across both subjects and devices. Turn off to show the full lesson again.

Checking Premium access…

Explore Premium

Live preview

Take a moment to read at your own pace. Choose the text size and spacing that feel comfortable for you.

Pause after each idea, then explain it in your own words before moving on.

Narrower lines take effect when the screen has room.

Enlarged diagram

Height and gradient are different quantities

For y = x² at x = 3, the point’s height is 9, while its tangent gradient is 6. The derivative f′(a) gives the local rate of change at input a. The function value f(a) gives the point’s output. A tangent line needs both: it passes through (a,f(a)) with gradient f′(a).

If x measures time in hours and y measures a quantity in units, f(a) has units and f′(a) has units per hour. A rate is not the amount present. A negative derivative means the quantity is decreasing locally; it does not by itself mean the quantity is negative.

Powers include roots and reciprocals

Standard derivatives are (xⁿ)' = nxⁿ⁻¹ on a differentiable real interval, (e^x)' = e^x and (ln x)' = 1/x for x > 0. Constants differentiate to zero; sums, differences and constant multiples work term by term.

Rewrite roots and reciprocals as powers before using the rule. For x > 0:

FunctionPower formDerivative
square root of xx^(1/2)(1/2)x^(-1/2) = 1/(2 square root of x)
1/x²x⁻²-2x⁻³ = -2/x³
x square root of xx^(3/2)(3/2)x^(1/2)

Multiply by the original exponent, then subtract one from that exponent. Differentiating x⁻² does not just change its sign or leave the exponent unchanged. The reciprocal example also has this derivative for x < 0, away from its excluded input zero.

The power rule applies where the real function is differentiable. Although square root of x has a value at zero, its finite derivative formula does not apply there. The input conditions of the function and the places where a finite derivative exists need separate attention.

Odd roots also have a real meaning at negative inputs. On x < 0, x^(1/3) is the negative real cube root, and its derivative is 1/(3x^(2/3)) > 0. Here x^(2/3) = (cube root of x)² is positive; zero is excluded from this finite derivative formula. In contrast, square root of x² = |x| = -x on x < 0, so its derivative there is −1. Replacing square root of x² by x would discard the input condition and reverse the sign.

For y = 3x²-4 square root of x + e^x on x > 0, the derivative is 6x-2/square root of x + e^x. Keep the original function’s valid inputs when interpreting a result.

A composition multiplies two rates

For y = (x² + 1)³, set u = x² + 1, so y = u³. The outer rate is dy/du = 3u² and the inner rate is du/dx = 2x. Multiplying gives

dy/(dx) = (dy/(du))du/(dx) = 3(x² + 1)²(2x) = 6x(x² + 1)².

The outer rate is per unit change in u, whereas we need the change per unit x. The inner rate converts between them. It is not an optional factor appended to a memorised answer.

Similarly (e^(2x-1))' = 2e^(2x-1) and (ln(3x + 4))' = 3/(3x + 4) for x > −4/3. The logarithm condition comes from its original argument 3x + 4 > 0. A derivative expression having a non-zero denominator is not enough to make an original logarithm valid.

For y = e^(-2x), the inner rate is −2, giving y' = -2e^(-2x). The function stays positive but decreases. For y = square root of (5-2x) with x < 5/2, the derivative is -1/square root of (5-2x): the outer factor 1/2 and inner factor −2 combine.

If an expression can be expanded into a polynomial, expand it before using termwise rules. For y = x(x + 2) = x² + 2x, the derivative is 2x + 2. Multiplying the two individual derivatives would give 1, which already fails at x = 0, where the correct gradient is 2. Multiplication of rates in a composition does not authorise multiplying derivatives of two factors.

Check your understanding 1 Repair the missing rate

A proposed derivative of y = (3x-2)⁴ is 4(3x-2)³. Explain what this expression measures, find dy/dx, and give its value at x = 1.

Show answer

With u = 3x − 2, the proposal gives dy/du, evaluated at that inner input. Since du/dx = 3, the required derivative is 12(3x-2)³. At x = 1 it is 12, rather than 4. The missing factor converts a rate per unit u into a rate per unit x.

The inner function can sit inside a root

The same chain rule applies to a rational outer power. Where g(x)^r is real and differentiable,

d/(dx)[g(x)]^r = r[g(x)]^(r-1)g'(x).

For f(x) = square root of (x² + 1) = (x² + 1)^(1/2), the inner derivative is 2x. Thus

f'(x) = (1/2)(x² + 1)^(-1/2)(2x) = x/(square root of (x² + 1)).

The expression 1/(2 square root of (x² + 1)) gives the outer rate per unit change in the inner value; it omits the conversion to a rate per unit x. Since x² + 1 > 0 for every real x, this derivative is valid even at x = 0, where it is zero.

For h(x) = (x² + 1)^(3/2), the derivative is 3x square root of (x² + 1). Since x² + 1 = (square root of (x² + 1))², the expression 3x(x² + 1)/square root of (x² + 1) reduces to the same derivative. The denominator never vanishes here, so this rearrangement introduces no missing input.

Check your understanding 2 Find the rate inside the root

For f(x) = square root of (x² + x) on x > 0, find f'(x) in two equivalent exact forms. Explain why splitting the root into square root of x square root of (x + 1) is allowed on this interval, and find the derivative at x = 1.

Show answer

The inner rate is 2x + 1, so

f'(x) = (2x + 1)/(2 square root of (x² + x)) = (2x + 1)/(2 square root of x square root of (x + 1)).

Both x and x + 1 are positive on x > 0, which justifies the real-root product identity and keeps both denominators nonzero. At x = 1, the derivative is 3/(2 square root of 2) = 3 square root of 2/4. The factor 2x + 1 must remain in either form; changing the appearance of the root cannot supply a missing chain factor.

Root simplification also needs the principal real branch. For example, square root of ((x-1)⁴) = (x-1)² for every real x, because (x-1)² is nonnegative. Its first derivative is 2(x − 1), and its second derivative is 2, including at x = 1. In contrast, square root of ((x-1)²) = |x-1| changes its slope there; it cannot be replaced by x − 1 on an interval that crosses 1.

Differentiate the resulting function again

The second derivative f''(x) is the rate of change of the first derivative. For f(x) = x³, first find f'(x) = 3x², then differentiate that result to get f''(x) = 6x. Differentiating the original function a second time from scratch would only give the first derivative again.

Keep the chain factor on each differentiation. For g(x) = e^3x, g'(x) = 3e^3x and g''(x) = 9e^3x. For h(x) = ln(2x + 1) with x > −1/2, h'(x) = 2(2x + 1)⁻¹ and h''(x) = -4(2x + 1)⁻². The negative sign comes from the new exponent −1; the second factor 2 comes from the inner rate. These examples need only the power rule, constant multiples and the chain rule.

Check your understanding 3 Keep both rounds of differentiation

For f(x) = 3x^(3/2)-2 ln(2x + 1) + e^3x on x > 0, find both f'(x) and f''(x). Explain where each coefficient in the second derivative comes from.

Show answer

First differentiate term by term:

f'(x) = (9/2) square root of x -4/(2x + 1) + 3e^3x.

Differentiate that entire result:

f''(x) = 9/(4 square root of x) + 8/((2x + 1)²) + 9e^3x.

The power term contributes (9/2)(1/2)x^(-1/2). Rewriting the logarithmic term’s first derivative as -4(2x + 1)⁻¹ gives the factors (−4)(−1)(2), hence +8. The exponential term supplies another inner factor 3, giving 9. Every term is valid on the stated x > 0 interval. A correct expression here does not by itself classify a stationary point; that needs a stationary input and a suitable test.

An equivalent formula must cover the stated inputs

Simplification can hide a missing input. A proposed expression must be defined at every input where the requested derivative is required, as well as have the correct value there.

Check your understanding 4 Check the formula before cancelling

For f(x) = ln x on x > 0, a learner proposes f'(x) = (x-1)/(x(x-1)). Does that expression give the complete derivative on the stated interval? Explain and repair it.

Show answer

The derivative is 1/x for every x > 0, including x = 1, where it equals 1. The proposed fraction is undefined at x = 1. Cancelling x − 1 shows agreement only where that factor is nonzero; it does not make the original fraction defined at the missing input. Use f'(x) = 1/x on x > 0.

Form the tangent from a point and gradient

For y = x² − 3x + 1 at x = 2, the point is (2,−1), and y′ = 2x − 3 gives gradient 1. The tangent is y + 1 = x − 2, or y = x − 3. Substitute x = 2 to check the point, then check the line’s coefficient agrees with the derivative.

In general, at a differentiable point with input a,

y-f(a) = f'(a)(x-a).

The variable x in this line is free to vary; a is the fixed input where the tangent touches the curve. A line passing through the point is not necessarily the tangent: its gradient must agree too. Conversely, y = f′(a)x usually misses the point because it silently assumes a zero intercept.

Check your understanding 5 Find the point as well as the rate

For y = e^2x at x = 0, find the tangent line. Assess the proposed answers y = 2x and y = x + 1 by checking both the point and gradient.

Show answer

The point is (0,1) and the derivative is 2e^2x, giving gradient 2. The tangent is y = 2x + 1. The line y = 2x has the right slope but misses (0,1). The line y = x + 1 passes through that point but has the wrong slope, as would happen if the inner factor were omitted.

Use a numerical derivative at the requested input

A graphing calculator or graphing software can approximate the derivative without first displaying an algebraic formula. Enter the whole original expression, select the derivative-at-a-point operation, and supply the input explicitly. A cursor’s current graph height is not its tangent gradient.

For f(x) = ln(3x + 4) at x = 2, the function value is ln 10 ≈ 2.302585, whereas the derivative is 3/10 = 0.3. A numerical derivative near 0.3 agrees with the analytic calculation. The tangent is y- ln 10 = 0.3(x-2), or y = 0.3x + ln 10-0.6.

Record the function, input and requested precision. Keep the exact logarithm in an exact tangent equation; a rounded derivative or function value produces only an approximate line. If a numerical operation fails at an excluded input, increasing display precision does not make that original function valid there.

Interpret a derivative sign locally

A positive derivative throughout an interval shows the function increasing there; a negative derivative shows it decreasing. A zero derivative at a point identifies a stationary candidate, not automatically a maximum or minimum.

These statements describe the original function’s rise, fall or horizontal tangent. They do not say that a positive function value forces a positive derivative. The positive decreasing exponential above supplies a counterexample.

Try it yourself 1

Locate the required tangent

Minimal support

Problem

Find the point on y = 4 + ln(2x + 3) where its tangent is parallel to 2y − 3x = 5. Give the point and tangent equation exactly, and check that the input is allowed in the original function.

Write your answer, then compare it with the solution

Hints

Hint 1

Identify which information fixes the tangent

The given line constrains a gradient, rather than the height of the point on the curve. Recover that gradient from its equation, then decide which quantity from the function must equal it.

Show full solution
  1. Translate parallelism into a gradient

    Method

    Rearrange the line as y = (3/2)x + 5/2.

    Reason

    Parallel lines have the same gradient, here 3/2.

    Working

    Answer

    The curve’s derivative is 2/(2x + 3), including the inner factor 2. Set 2/(2x + 3) = 3/2; solving gives 2x + 3 = 4/3, hence x = -5/6.
  2. Find the matching point and check it

    Method

    Use the original function at that input.

    Reason

    The derivative supplied a slope condition, not the curve’s height.

    Working

    Answer

    The logarithm argument is 4/3 > 0, so the input is allowed. The point is (-5/6, 4 + ln(4/3)). Its derivative is 2/(4/3) = 3/2, as required.
  3. Construct and verify the tangent

    Method

    Combine the point with the required gradient.

    Reason

    A gradient alone leaves the intercept undetermined.

    Working

    Answer

    The tangent is y-4- ln(4/3) = (3/2)(x + 5/6), equivalently y = (3/2)x + 21/4 + ln(4/3). Substituting x = −5/6 returns the original height, and its x-coefficient is 3/2.

Keep track of this lesson

Mark the lesson done when you have worked through it.

Lesson progress is optional and kept on this device.

Your lesson mark records your own study. Checks are kept separately in My Learning.