Skip to main content
ScotlandMathsSyllabus dot point

How does the chain rule let you differentiate and integrate a function nested inside another, such as a bracket raised to a power or a sine of a linear expression?

Differentiating composite functions with the chain rule, including expressions of the form a function of a linear expression and sine and cosine of a linear expression, and reversing the process to integrate functions of the form (ax + b) to the n, sin(ax + b) and cos(ax + b).

A focused answer to the SQA Higher Mathematics chain rule content, covering how to differentiate composite functions including powers of brackets and trigonometric functions of a linear expression, and how to reverse the chain rule to integrate (ax + b) to the n, sin(ax + b) and cos(ax + b).

Generated by Claude Opus 4.89 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The chain rule
  3. Trigonometric composites
  4. Reversing the chain rule to integrate
  5. Examples in context
  6. Try this

What this dot point is asking

The SQA wants you to differentiate a composite function, one function nested inside another, using the chain rule, and then to reverse the process to integrate functions of the form (ax+b)n(ax + b)^n, sin(ax+b)\sin(ax + b) and cos(ax+b)\cos(ax + b). At Higher the inside function is almost always a simple expression such as 3x+23x + 2 or 2x3+12x^3 + 1, so the chain rule reduces to a quick "differentiate the outside, multiply by the inside derivative" routine, and integration reverses it by dividing by that inside derivative.

The chain rule

A composite function is built by feeding one function into another. Writing y=f(g(x))y = f(g(x)), the inside function gg acts first and the outside function ff acts on the result. The power rule alone cannot differentiate (2x+5)7(2x + 5)^7 correctly, because the variable is wrapped inside a bracket; the chain rule supplies the missing factor.

The single most reliable way to apply it is to name the outside and the inside before you start, differentiate the outside, then tack on the inside derivative as a multiplier.

Trigonometric composites

The chain rule handles sin\sin and cos\cos of a linear expression in exactly the same way. The outside derivatives are the standard ones, ddxsinx=cosx\dfrac{d}{dx}\sin x = \cos x and ddxcosx=sinx\dfrac{d}{dx}\cos x = -\sin x (in radians), and the inside derivative is the multiplier.

Reversing the chain rule to integrate

Because integration undoes differentiation, the chain rule run backwards tells you how to integrate a bracket raised to a power, or a sine or cosine of a linear expression. The key idea is that differentiation multiplies by the inside derivative aa, so integration must divide by it.

Examples in context

When a model gives a quantity as a function of a scaled or shifted variable, the chain rule is what lets you find its rate of change. If the height of a tide is modelled by h(t)=3sin(0.5t+1)h(t) = 3\sin(0.5t + 1) metres, then the rate at which the height changes is h(t)=30.5cos(0.5t+1)=1.5cos(0.5t+1)h'(t) = 3 \cdot 0.5\cos(0.5t + 1) = 1.5\cos(0.5t + 1) metres per unit time, where the factor 0.50.5 comes straight from the chain rule. Reversing the process, an engineer who knows a velocity of the form v(t)=(2t+1)3v(t) = (2t + 1)^3 recovers displacement by integrating, dividing by the inside derivative 22 to get (2t+1)48+c\dfrac{(2t + 1)^4}{8} + c.

Try this

Q1. Differentiate y=(4x+3)6y = (4x + 3)^6. [3 marks]

  • Cue. Outside derivative 6(4x+3)56(4x + 3)^5, inside derivative 44, so dydx=24(4x+3)5\dfrac{dy}{dx} = 24(4x + 3)^5.

Q2. Find cos(2x+5)dx\displaystyle\int \cos(2x + 5)\,dx. [2 marks]

  • Cue. 12sin(2x+5)+c\dfrac{1}{2}\sin(2x + 5) + c, dividing by the inside derivative 22 and remembering the constant.

Exam-style practice questions

Practice questions written in the style of SQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

SQA Higher 20193 marksDifferentiate f(x)=(2x3+1)4f(x) = (2x^3 + 1)^4 with respect to xx.
Show worked answer →

Identify the outside function as ()4(\,\cdot\,)^4 and the inside as 2x3+12x^3 + 1 (1 mark for recognising the composite structure).

Differentiate the outside, keeping the inside untouched: 4(2x3+1)34(2x^3 + 1)^3 (1 mark).

Multiply by the derivative of the inside, which is 6x26x^2: f(x)=4(2x3+1)36x2=24x2(2x3+1)3f'(x) = 4(2x^3 + 1)^3 \cdot 6x^2 = 24x^2(2x^3 + 1)^3 (1 mark). Markers reward the outside derivative, the inside derivative, and the product of the two; the most common dropped mark is forgetting the factor 6x26x^2.

SQA Higher 20214 marksFind 6sin(3x+2)dx\displaystyle\int 6\sin(3x + 2)\,dx.
Show worked answer →

Recognise this as a reverse chain rule: integrating sin(ax+b)\sin(ax + b) brings a factor of 1a\dfrac{1}{a} and turns sine into cos-\cos (1 mark for the strategy).

The integral of sin(3x+2)\sin(3x + 2) is 13cos(3x+2)-\dfrac{1}{3}\cos(3x + 2) because the inside derivative is 33, so we divide by 33 (1 mark).

Multiply by the constant 66: 6×(13cos(3x+2))=2cos(3x+2)6 \times \left(-\dfrac{1}{3}\cos(3x + 2)\right) = -2\cos(3x + 2) (1 mark).

Add the constant of integration: 6sin(3x+2)dx=2cos(3x+2)+c\displaystyle\int 6\sin(3x + 2)\,dx = -2\cos(3x + 2) + c (1 mark). Markers reward the cos-\cos form, the division by 33, the multiplication by 66, and the constant of integration; omitting +c+c loses the final mark.

Related dot points

Sources & how we know this