Skip to main content
NSWMaths AdvancedSyllabus dot point

How do we differentiate functions built from products, quotients and compositions of standard functions?

Apply the product, quotient and chain rules, and differentiate exponential, logarithmic and trigonometric functions

A focused answer to the HSC Maths Advanced dot point on differentiation rules. The power, chain, product and quotient rules, plus derivatives of exponential, logarithmic and trigonometric functions, with worked examples and exam traps.

Generated by Claude Opus 4.812 min answer

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

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

What this dot point is asking

NESA wants you to differentiate any function built from the standard library (polynomials, exe^x, lnx\ln x, sinx\sin x, cosx\cos x, tanx\tan x) using the power, chain, product and quotient rules. Almost every Maths Advanced calculus question begins with a differentiation step, so fluency here is non-negotiable.

The answer

The power rule

For any real nn,

ddx(xn)=nxn1.\frac{d}{dx}(x^n) = n x^{n - 1}.

This extends to negative and fractional powers. For example, ddx(x2)=2x3\frac{d}{dx}(x^{-2}) = -2 x^{-3} and ddx(x)=12x1/2\frac{d}{dx}(\sqrt{x}) = \frac{1}{2}x^{-1/2}.

The chain rule

If y=f(g(x))y = f(g(x)), let u=g(x)u = g(x) so y=f(u)y = f(u). Then

dydx=dydududx.\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}.

In practice, "differentiate the outside, leave the inside alone, then multiply by the derivative of the inside".

The product rule

If y=u(x)v(x)y = u(x) v(x), then

dydx=uv+uv.\frac{dy}{dx} = u' v + u v'.

The quotient rule

If y=u(x)v(x)y = \frac{u(x)}{v(x)}, then

dydx=uvuvv2.\frac{dy}{dx} = \frac{u' v - u v'}{v^2}.

Standard derivatives

Memorise these. They appear in nearly every paper.

ddx(ex)=ex,ddx(ef(x))=f(x)ef(x).\frac{d}{dx}(e^x) = e^x, \qquad \frac{d}{dx}(e^{f(x)}) = f'(x) e^{f(x)}.

ddx(lnx)=1x,ddx(lnf(x))=f(x)f(x).\frac{d}{dx}(\ln x) = \frac{1}{x}, \qquad \frac{d}{dx}(\ln f(x)) = \frac{f'(x)}{f(x)}.

ddx(sinx)=cosx,ddx(cosx)=sinx,ddx(tanx)=sec2x.\frac{d}{dx}(\sin x) = \cos x, \qquad \frac{d}{dx}(\cos x) = -\sin x, \qquad \frac{d}{dx}(\tan x) = \sec^2 x.

For composed trig, the chain rule gives ddx(sin(f(x)))=f(x)cos(f(x))\frac{d}{dx}(\sin(f(x))) = f'(x) \cos(f(x)), and similarly for cos\cos and tan\tan.

What the derivative means

Every differentiation rule is a tool for finding f(x)f'(x), the instantaneous rate of change of ff, which is also the gradient of the tangent to y=f(x)y = f(x) at each point. The first-principles definition behind every rule is

f(x)=limh0f(x+h)f(x)h.f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}.

NESA can ask you to differentiate from first principles for a simple polynomial, so you should be able to set up this limit, expand f(x+h)f(x + h), cancel the hh in the numerator, and take the limit. For all other functions you quote the standard rules above, which are themselves derived from this limit.

Seeing the derivative: from secant to tangent

The derivative is the gradient of the tangent, and the tangent is the limiting position of a secant. Watching that limit form is the single best way to understand what f(x)f'(x) measures. Fix a point PP on the curve y=f(x)y = f(x) and let a second point QQ slide towards it; the gradient of the line PQPQ is the average rate of change f(a+h)f(a)h\frac{f(a+h) - f(a)}{h}, and as h0h \to 0 it tends to the instantaneous rate of change at PP.

Stage 1, a wide secant. Place a fixed point PP at x=ax = a and a second point QQ a large horizontal distance hh to the right. The straight line through PP and QQ is a secant, and its gradient is the average rate of change between the two points, the rise divided by the run.

Stage 1: a wide secant line through two points on the curve The curve y equals f of x with a fixed point P. A second point Q sits a large horizontal distance h to the right. The straight secant line through P and Q has gradient equal to the average rate of change, the rise over the run, between the two points. x y P Q secant gradient = rise / run 1

Stage 2, slide QQ closer. Move QQ towards PP so the gap hh shrinks. The secant now hugs the curve more closely near PP, and its gradient is a better estimate of the gradient at PP itself.

Stage 2: Q slides towards P, shrinking h The same curve. Point Q has moved closer to P, so the horizontal gap h is smaller. The secant line now lies closer to the curve near P and its gradient is closer to the true gradient at P. x y P Q smaller h, secant nearer the curve 2

Stage 3, let h0h \to 0. As QQ slides almost on top of PP, the gap hh becomes tiny and the secant is barely distinguishable from a line that just grazes the curve at PP. The average rate of change is converging on a single number.

Stage 3: h shrinks towards zero The same curve with Q very close to P. The horizontal gap h is now tiny and the secant line is almost touching the curve at P, so its gradient is almost exactly the gradient at P. x y P Q h to 0: Q approaches P 3

Stage 4, the tangent is the limit. In the limit h0h \to 0, QQ merges with PP and the secant becomes the tangent at PP. Its gradient is the derivative f(a)f'(a), the instantaneous rate of change. Every rule on this page is a shortcut for computing exactly this limiting gradient.

Stage 4: the tangent at P is the limit The same curve. In the limit as h tends to zero, Q merges with P and the secant becomes the tangent line at P, drawn solid in the accent colour. Its gradient is the derivative f prime of a, the instantaneous rate of change at P. x y P tangent: m = f '(a) 4

Deciding which rule to use

The single most common student error is reaching for the wrong rule. Read the structure of the expression first.

  • A sum or difference of terms: differentiate each term separately.
  • A function raised to a power, or a function inside another function (a composition): chain rule.
  • Two functions multiplied together: product rule.
  • One function divided by another: quotient rule.

Many HSC expressions combine rules. For y=x2sin(2x)y = x^2 \sin(2x) you use the product rule on the outer multiplication and the chain rule on sin(2x)\sin(2x). Work from the outside in, naming each piece as you go.

Tangents and normals

Once you have f(x)f'(x), the gradient of the tangent at x=ax = a is m=f(a)m = f'(a). The tangent line is

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

The normal is perpendicular to the tangent, so its gradient is 1f(a)-\frac{1}{f'(a)} (provided f(a)0f'(a) \neq 0). These appear constantly in HSC questions: differentiate, evaluate the derivative at the point, then write the line equation.

Higher derivatives

Differentiating f(x)f'(x) again gives the second derivative f(x)f''(x), the rate of change of the gradient. For f(x)=x3f(x) = x^3, f(x)=3x2f'(x) = 3x^2 and f(x)=6xf''(x) = 6x. Higher derivatives drive concavity and motion problems, so the rules here feed directly into later calculus topics.

How exam questions ask about differentiation

The wording varies, but each version is a cue for a particular rule or follow-up:

  • "Differentiate" or "find dydx\frac{dy}{dx}". A direct rule application. Identify the structure (sum, composition, product, quotient) first, then apply the matching rule and simplify.
  • "Differentiate from first principles". Set up f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}, expand f(x+h)f(x+h), cancel the hh, and take the limit. NESA reserves this for simple polynomials, but you must show the limit, not quote the power rule.
  • "Find the gradient of the curve at x=ax = a". Differentiate, then substitute x=ax = a into f(x)f'(x). The number you get is the gradient of the tangent there.
  • "Find the equation of the tangent / normal at the point ...". Differentiate, evaluate f(a)f'(a) for the gradient, then use yf(a)=f(a)(xa)y - f(a) = f'(a)(x - a) for the tangent; for the normal use gradient 1f(a)-\frac{1}{f'(a)}.
  • "Show that dydx=\frac{dy}{dx} = \ldots". A "show that" answer must reach the printed result by valid steps; do not just assert it. Pick up the marks by displaying the rule used and every simplification.
  • A derivative buried in a larger question. Most calculus questions open with a differentiation step that feeds a later part (stationary points, rates, areas). Get it right and factored, because every later mark depends on it.

Exam-style practice questions

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

2022 HSC Q113 marksDifferentiate y=(3x2+1)5y = (3x^2 + 1)^5 with respect to xx.
Show worked answer →

This is a composition, so use the chain rule. Let u=3x2+1u = 3x^2 + 1, so y=u5y = u^5.

dydu=5u4\frac{dy}{du} = 5u^4 and dudx=6x\frac{du}{dx} = 6x.

dydx=dydududx=5(3x2+1)46x=30x(3x2+1)4\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} = 5(3x^2 + 1)^4 \cdot 6x = 30x(3x^2 + 1)^4.

Markers reward identifying the inner and outer functions, applying the chain rule cleanly, and presenting the final answer in factored form.

2020 HSC Q123 marksFind the derivative of f(x)=x2lnxf(x) = x^2 \ln x.
Show worked answer →

Use the product rule with u=x2u = x^2 and v=lnxv = \ln x.

u=2xu' = 2x and v=1xv' = \frac{1}{x}.

f(x)=uv+uv=2xlnx+x21x=2xlnx+xf'(x) = u' v + u v' = 2x \ln x + x^2 \cdot \frac{1}{x} = 2x \ln x + x.

Factor: f(x)=x(2lnx+1)f'(x) = x(2 \ln x + 1).

Markers expect explicit labelling of uu, vv and their derivatives, correct application of the rule, and a tidy final answer.

Related dot points