Educerie

Educerie · IB Diploma · Mathematics: analysis and approaches

IB Mathematics AA 5.3 · SL and HL

Differentiating powers and polynomials

Finding a gradient with chords and limits works but is slow, so is there a rule that gives the derivative of a function like 4x5−3x2+7x−94x^{5} - 3x^{2} + 7x - 9 straight away?

What you will learn

  • Understand the power rule for any integer power, including zero and negative powers
  • Know that a constant multiple stays in front, a sum is differentiated term by term and a constant differentiates to zero
  • Understand that a function must be rewritten as a sum of powers of x before the rule can be used
  • Know that the derivative gives the gradient at a point and the rate of change in context

You must be able to

  1. Differentiate a polynomial or a sum of integer powers term by term
  2. Rewrite brackets, single-term fractions and reciprocals as powers of x before differentiating
  3. Find the gradient of a curve at a given point
  4. Solve f'(x) = k to find the points where the gradient has a given value
  5. Find unknown constants from a given point and a given gradient
  6. Interpret a derivative as a rate of change with units

In the exam. everywhere. On its own it is a 2 to 4 mark Paper 1 opener: "find f′(x)f'(x)", "write down f′(x)f'(x)", "find the gradient at x=2x = 2", "find the point where the gradient is −9-9". Inside longer questions, often behind the word "hence", it is the first step of almost every tangent, normal, increasing-decreasing and optimisation problem on both papers, so a slip here costs the marks that follow it too.

1The power rule, and where it comes from

5.1 showed by chords that the derivative of x2x^{2} is 2x2x. Try x4x^{4}. Take a point (x,x4)(x, x^{4}) and a nearby point at x+hx + h. Expand with the binomial theorem:

gradient of chord=(x+h)4−x4h=x4+4x3h+6x2h2+4xh3+h4−x4hexpand (x+h)4=4x3+6x2h+4xh2+h3cancel x4, divide by h≠0\begin{aligned}\text{gradient of chord} &= \frac{(x+h)^{4} - x^{4}}{h} \\[6pt] &= \frac{x^{4} + 4x^{3}h + 6x^{2}h^{2} + 4xh^{3} + h^{4} - x^{4}}{h} && \textcolor{#838c91}{\text{expand }(x+h)^{4}} \\[6pt] &= 4x^{3} + 6x^{2}h + 4xh^{2} + h^{3} && \textcolor{#838c91}{\text{cancel }x^{4}\text{, divide by }h \ne 0}\end{aligned}→4x3 as h→0every term still holding an h vanishes\to 4x^{3} \text{ as } h \to 0 \qquad \textcolor{#838c91}{\text{every term still holding an }h\text{ vanishes}}
  • Only one term survives: the second term of the expansion. For a general power nn that term is (n1)xn−1h=nxn−1h\binom{n}{1}x^{n-1}h = nx^{n-1}h. Dividing by hh leaves nxn−1nx^{n-1}. That is why the coefficient is the power and the new power is one less.
  • This argument proves the rule only for positive integers nn, because it uses a binomial expansion. For n=0n = 0 and the negative integers, take the rule from the formula booklet, valid for x≠0x \ne 0.

If f(x)=xnf(x) = x^{n}, then f′(x)=nxn−1f'(x) = nx^{n-1}. Bring the power down, reduce it by one. (Formula booklet.)

f(x)f(x)x2x^{2}x3x^{3}x4x^{4}x9x^{9}xx1=x01 = x^{0}x−1x^{-1}x−2x^{-2}
f′(x)f'(x)2x2x3x23x^{2}4x34x^{3}9x89x^{8}1100−x−2-x^{-2}−2x−3-2x^{-3}

Three entries in that table deserve a second look.

  • x=x1x = x^{1} gives 1×x0=11 \times x^{0} = 1. The line y=xy = x has gradient 1 everywhere.
  • 1=x01 = x^{0} gives 0×x−1=00 \times x^{-1} = 0. A horizontal line has gradient 0. Strictly, the x−1x^{-1} in that step needs x≠0x \ne 0. The conclusion does not: a constant has derivative 0 at every xx, including 0.
  • x−2x^{-2} gives −2x−3-2x^{-3}. For a negative power, reducing the power by one makes it more negative: −2−1=−3-2 - 1 = -3, not −1-1. This is the commonest slip with the rule.

The guide states the rule for integer nn, and that is all this subtopic needs. 5.6 extends it, unchanged, to any rational power.

Notation. f′(x)f'(x), dydx\dfrac{dy}{dx} and ddx(f(x))\dfrac{d}{dx}\bigl(f(x)\bigr) all mean the derivative. The last is an instruction to differentiate what follows.

2Constants, multiples and sums

A constant

  • If f(x)=cf(x) = c, a number, then f′(x)=0f'(x) = 0.
  • Figure 1 shows why that matters. y=x2+3y = x^{2} + 3 is y=x2y = x^{2} moved up 3, and moving a graph up does not tilt it. At every xx the two curves have the same gradient, so the +3+3 contributes nothing to the derivative.
Figure 1 · Adding a constant moves the curve, not its gradients x y −2 −1 1 2 2 4 6 8 +3 gradient 2 gradient 2 y = x² + 3 y = x² y = x² and y = x² + 3 have the same gradient at every x, so the constant differentiates to 0.
Figure 1 · Adding a constant moves the curve, not its gradients

A multiple

  • If f(x)=axnf(x) = ax^{n}, then f′(x)=anxn−1f'(x) = anx^{n-1}.
  • The number in front multiplies the result.
ddx(7x6)=7×6x5=42x5\frac{d}{dx}\left(7x^{6}\right) = 7 \times 6x^{5} = 42x^{5}ddx(−4x3)=−4×3x2=−12x2\frac{d}{dx}\left(-4x^{3}\right) = -4 \times 3x^{2} = -12x^{2}ddx(x510)=110×5x4=x42a fraction in front is still a multiple\frac{d}{dx}\left(\frac{x^{5}}{10}\right) = \frac{1}{10} \times 5x^{4} = \frac{x^{4}}{2} \qquad \textcolor{#838c91}{\text{a fraction in front is still a multiple}}ddx(9x)=99x1→9×1×x0\frac{d}{dx}\left(9x\right) = 9 \qquad \textcolor{#838c91}{9x^{1} \to 9 \times 1 \times x^{0}}
  • Why it works: multiplying by 3 stretches the graph vertically by a factor of 3. Every rise triples for the same run, so every gradient triples. Figure 2 shows y=x2y = x^{2} and y=3x2y = 3x^{2} at x=1x = 1: gradient 2 and gradient 6.
Figure 2 · A multiple multiplies every gradient x y −2 −1 1 2 2 4 6 8 gradient 2 gradient 6 y = 3x² y = x² Stretching y = x² vertically by 3 makes every gradient 3 times as steep: 2x becomes 6x.
Figure 2 · A multiple multiplies every gradient

A sum or difference

  • The derivative of a sum is the sum of the derivatives. So differentiate a polynomial one term at a time, keeping the signs.
  • Both this rule and the multiple rule follow from the limit definition: limits of sums add, and a constant factor comes outside a limit.
f(x)=6x4−2x3+5x2−x+11f(x) = 6x^{4} - 2x^{3} + 5x^{2} - x + 11f′(x)=24x3−6x2+10x−16×4x3, −2×3x2, 5×2x, −1, and 11→0f'(x) = 24x^{3} - 6x^{2} + 10x - 1 \qquad \textcolor{#838c91}{6 \times 4x^{3}\text{, }-2 \times 3x^{2}\text{, }5 \times 2x\text{, }-1\text{, and }11 \to 0}
  • A polynomial of degree n≥1n \ge 1 has a derivative of degree n−1n-1. That is a useful check on any answer.
  • The sum rule does not extend to products or quotients. (2x−1)(x+3)(2x - 1)(x + 3) does not differentiate to 2×12 \times 1, the product of the brackets' derivatives. Section 4 deals with that.

3Other letters, other variables

  • The variable's name doesn't matter. Differentiate with respect to the letter at the bottom of the derivative. If s=5t3−2ts = 5t^{3} - 2t, then dsdt=15t2−2\dfrac{ds}{dt} = 15t^{2} - 2.
  • A letter that stands for a fixed number (kk, aa, π\pi) is a constant. It behaves like a number:
ddx(2x4+kx−k2)=8x3+kk2 is a constant, so it vanishes; kx is a multiple of x\frac{d}{dx}\left(2x^{4} + kx - k^{2}\right) = 8x^{3} + k \qquad \textcolor{#838c91}{k^{2}\text{ is a constant, so it vanishes; }kx\text{ is a multiple of }x}ddx(mx3)=ddx(mx−3)=−3mx−4\frac{d}{dx}\left(\frac{m}{x^{3}}\right) = \frac{d}{dx}\left(mx^{-3}\right) = -3mx^{-4}f′(p)=−3mp4the gradient at x=p, in terms of m and pf'(p) = -\frac{3m}{p^{4}} \qquad \textcolor{#838c91}{\text{the gradient at }x = p\text{, in terms of }m\text{ and }p}
  • The answer then contains kk, mm or pp, and that is correct. "In terms of" means the letters stay.

4Negative powers, and rewriting first

The rule only applies to a sum of terms of the form axnax^{n}. Rewrite anything else into that shape before you differentiate. Figure 4 (end of this section) summarises the routine. Here are the rewrites the exam uses.

Negative powers

  • A term such as 8x3\dfrac{8}{x^{3}} is a power of xx in disguise.
  • Write it with a negative index first, then apply the rule.
y=8x3+5xy = \frac{8}{x^{3}} + \frac{5}{x}y=8x−3+5x−1rewrite: 1xn=x−ny = 8x^{-3} + 5x^{-1} \qquad \textcolor{#838c91}{\text{rewrite: }\dfrac{1}{x^{n}} = x^{-n}}dydx=8×(−3)x−4+5×(−1)x−2\frac{dy}{dx} = 8 \times (-3)x^{-4} + 5 \times (-1)x^{-2}dydx=−24x−4−5x−2\frac{dy}{dx} = -24x^{-4} - 5x^{-2}dydx=−24x4−5x2either form is accepted\frac{dy}{dx} = -\frac{24}{x^{4}} - \frac{5}{x^{2}} \qquad \textcolor{#838c91}{\text{either form is accepted}}
  • Watch the signs. A negative multiple times a negative power gives a positive term, so −6x−2-6x^{-2} differentiates to +12x−3+12x^{-3}.
  • Figure 3 shows what the rule says about y=1xy = \dfrac{1}{x}. Its derivative is −x−2=−1x2-x^{-2} = -\dfrac{1}{x^{2}}. This is negative for every x≠0x \ne 0 because x2x^{2} is always positive. So every tangent slopes down, on both branches, as the graph shows.
Figure 3 · A negative power: y = x⁻¹ and its derivative (a) y = 1/x = x⁻¹ x y −3 −1 1 3 3 −3 (b) dy/dx = −x⁻² = −1/x² x y −3 −1 1 3 1 −1 always below the x-axis Every tangent to y = 1/x slopes downwards, so its derivative −1/x² is negative for every x ≠ 0.
Figure 3 · A negative power: y = x⁻¹ and its derivative
  • A common trap is the term 43x\dfrac{4}{3x}. The 3 is in the denominator with the xx, so 43x=43x−1\dfrac{4}{3x} = \dfrac{4}{3}x^{-1}. Its derivative is −43x−2-\dfrac{4}{3}x^{-2}.
    • It is not 12x−212x^{-2} or −12x−2-12x^{-2}. Only the xx moves up with a negative index. The 3 stays on the bottom.

Expand brackets.

y=(x+4)(3x−2)y = (x + 4)(3x - 2)y=3x2+12x−2x−8=3x2+10x−8expand firsty = 3x^{2} + 12x - 2x - 8 = 3x^{2} + 10x - 8 \qquad \textcolor{#838c91}{\text{expand first}}dydx=6x+10\frac{dy}{dx} = 6x + 10

Split a fraction over a single-term denominator. Divide every term on top by the bottom.

y=2x4−5x3+xx2y = \frac{2x^{4} - 5x^{3} + x}{x^{2}}y=2x2−5x+x−1three divisions: x4/x2, x3/x2, x/x2y = 2x^{2} - 5x + x^{-1} \qquad \textcolor{#838c91}{\text{three divisions: }x^{4}/x^{2}\text{, }x^{3}/x^{2}\text{, }x/x^{2}}dydx=4x−5−x−2\frac{dy}{dx} = 4x - 5 - x^{-2}

This only works because the denominator is a single term. You cannot split x2+1x+3\dfrac{x^{2}+1}{x+3} this way. A fraction like that needs the quotient rule from 5.6.

Both at once. A harder one, of the kind Paper 1 sets as a "show that" or "hence".

y=(x3+2)2x2=x6+4x3+4x2expand the top=x4+4x+4x−2split\begin{aligned}y &= \frac{\left(x^{3} + 2\right)^{2}}{x^{2}} \\[6pt] &= \frac{x^{6} + 4x^{3} + 4}{x^{2}} && \textcolor{#838c91}{\text{expand the top}} \\[6pt] &= x^{4} + 4x + 4x^{-2} && \textcolor{#838c91}{\text{split}}\end{aligned}dydx=4x3+4−8x−3\frac{dy}{dx} = 4x^{3} + 4 - 8x^{-3}

Expand a bracket raised to a power the same way (the binomial theorem for a cube) until 5.6 gives a shortcut.

Figure 4 · Rewrite, differentiate, then use it 1 · Rewrite as powers expand brackets split fractions over x 1/xⁿ → x⁻ⁿ 2 · Differentiate each term: axⁿ → anxⁿ⁻¹ constant → 0 ax → a 3 · Use it gradient at x = a: f′(a) point with gradient k: solve f′(x) = k Most lost marks happen in the first box: brackets and fractions must become sums of powers first.
Figure 4 · Rewrite, differentiate, then use it

5From ff to f′f': what the degree tells you

Because the power drops by one, the shape of f′f' is predictable before any algebra.

  • A straight line f(x)=ax+bf(x) = ax + b has a constant derivative: a horizontal line at height aa.
  • A quadratic has a straight-line derivative. It crosses the xx-axis at the quadratic's turning point.
  • A cubic has a quadratic derivative, so its graph is a parabola. Where that parabola is below the xx-axis, the cubic is decreasing.

When a question says "sketch the graph of f′f'", find f′(x)f'(x) by the rule first. Then sketch it from its own equation: intercepts, and a shape set by its degree and leading coefficient.

Worked example. Paper 1. Let f(x)=x3−3x2f(x) = x^{3} - 3x^{2}. (a) Find f′(x)f'(x). (b) Sketch the graph of y=f′(x)y = f'(x), showing its intercepts and vertex. (c) Hence state the interval on which ff is decreasing.

f′(x)=3x2−6x=3x(x−2)(a)f'(x) = 3x^{2} - 6x = 3x(x - 2) \qquad \textcolor{#838c91}{\text{(a)}}f′(x)=0 at x=0 and x=2x-intercepts; the y-intercept is f′(0)=0f'(x) = 0 \text{ at } x = 0 \text{ and } x = 2 \qquad \textcolor{#838c91}{x\text{-intercepts; the }y\text{-intercept is }f'(0) = 0}x=1:f′(1)=3−6=−3vertex midway between the roots: (1,−3)x = 1:\quad f'(1) = 3 - 6 = -3 \qquad \textcolor{#838c91}{\text{vertex midway between the roots: }(1, -3)}f′(x)<0 for 0<x<2(c): there the graph of f′ is below the axisf'(x) < 0 \text{ for } 0 < x < 2 \qquad \textcolor{#838c91}{\text{(c): there the graph of }f'\text{ is below the axis}}
  • For (b), draw a parabola opening upwards (leading coefficient 3>03 > 0). Take it through (0,0)(0, 0) and (2,0)(2, 0), with its lowest point at (1,−3)(1, -3), each labelled.
  • A sketch earns its marks for shape, intercepts and vertex. Plotted decimals are not needed.
  • Figure 5 sets the sketch under the graph of ff. Where f′f' is negative, ff falls. Where f′f' crosses the axis, ff has a horizontal tangent.
Figure 5 · f(x) = x³ − 3x² and the sketch of f′(x) = 3x² − 6x (a) y = f(x) x y −1 1 −4 4 (b) y = f′(x) x y −1 3 4 8 (0, 0) (2, −4) 0 2 vertex (1, −3) f decreasing f′ > 0 f′ > 0 f′ < 0 f′ is below the x-axis exactly where f decreases (0 < x < 2), and crosses it where f has a horizontal tangent.
Figure 5 · f(x) = x³ − 3x² and the sketch of its derivative

6Using the derivative

The gradient at a point

  • Substitute the xx-coordinate into f′(x)f'(x), not into f(x)f(x).
  • Example: y=2x4−5x3+xx2y = \dfrac{2x^{4} - 5x^{3} + x}{x^{2}} at x=2x = 2. Here dydx=4x−5−x−2\dfrac{dy}{dx} = 4x - 5 - x^{-2}, so the gradient is 8−5−14=8 - 5 - \dfrac{1}{4} = 2.752.75.
  • If the question gives the yy-coordinate too, you don't need it for the gradient. You need it only when you go on to write the tangent's equation in 5.4.

The points where the gradient has a given value

  • Set f′(x)f'(x) equal to that value and solve for xx. Then find yy from the original function.
  • Figure 6 shows the case f(x)=x3−3xf(x) = x^{3} - 3x with gradient 9.
f′(x)=3x2−3f'(x) = 3x^{2} - 33x2−3=9gradient equals 93x^{2} - 3 = 9 \qquad \textcolor{#838c91}{\text{gradient equals 9}}x2=4x^{2} = 4x=2 or x=−2x = 2 \text{ or } x = -2f(2)=8−6=2,f(−2)=−8+6=−2y from f, not from f′f(2) = 8 - 6 = 2,\quad f(-2) = -8 + 6 = -2 \qquad \textcolor{#838c91}{y\text{ from }f\text{, not from }f'}points (2,2) and (−2,−2)\text{points } (2, 2) \text{ and } (-2, -2)
Figure 6 · Finding where the gradient takes a given value x y −1 1 2 −8 −4 4 8 −2 (2, 2) (−2, −2) gradient 9 gradient 9 y = x³ − 3x Solve f′(x) = 9: 3x² − 3 = 9 gives x = ±2. Two points, two parallel tangents.
Figure 6 · Finding where the gradient takes a given value
  • There are two points, because the gradient function of a cubic is a quadratic. Keep both unless xx is restricted. The two tangents in Figure 6 share a gradient, so they are parallel.

Negative powers in a gradient equation. Solve for the power of xx first. For f(x)=3x+12xf(x) = 3x + \dfrac{12}{x}:

f′(x)=3−12x−2f'(x) = 3 - 12x^{-2}3−12x2=0gradient zero3 - \dfrac{12}{x^{2}} = 0 \qquad \textcolor{#838c91}{\text{gradient zero}}x2=4 so x=±2x^{2} = 4 \text{ so } x = \pm 2f(2)=12,f(−2)=−12two points with zero gradient: stationary points, classified in 5.8f(2) = 12,\quad f(-2) = -12 \qquad \textcolor{#838c91}{\text{two points with zero gradient: stationary points, classified in 5.8}}

Parallel to a given line

  • A tangent parallel to a line has the line's gradient, so solve for that value.
  • Example: y=x2−5x+2y = x^{2} - 5x + 2 and the line 2x+y=72x + y = 7, rearranged to y=−2x+7y = -2x + 7. The gradient is −2-2. Then dydx=2x−5=−2\dfrac{dy}{dx} = 2x - 5 = -2 gives x=32x = \tfrac{3}{2}. From the curve, y=94−152+2=−134y = \tfrac{9}{4} - \tfrac{15}{2} + 2 = -\tfrac{13}{4}. The point is (32,−134)\left(\tfrac{3}{2}, -\tfrac{13}{4}\right).

"Hence" and "show that"

  • Part (a) often asks for f′(x)f'(x), and part (b) says "hence find where the gradient is kk". Use the derivative you just found; don't start again.
  • In a "show that" the target is given, so every rewriting step must be visible. The marks are for the working.

Finding unknown constants

  • Each piece of information gives an equation.
  • The curve y=ax3+bx2y = ax^{3} + bx^{2} passes through (2,4)(2, 4) and has gradient 88 there.
point (2,4): 8a+4b=4  →  2a+b=1\text{point } (2, 4)\text{: } 8a + 4b = 4 \;\to\; 2a + b = 1dydx=3ax2+2bx\frac{dy}{dx} = 3ax^{2} + 2bxgradient 8 at x=2: 12a+4b=8  →  3a+b=2\text{gradient 8 at } x = 2\text{: } 12a + 4b = 8 \;\to\; 3a + b = 2subtract: a=1 and b=−1\text{subtract: } a = 1 \text{ and } b = -1
  • "Passes through" is a statement about yy. "Gradient" is a statement about dydx\dfrac{dy}{dx}. Use each on the right function.
  • One unknown needs only one equation. For g(x)=kx3−4xg(x) = kx^{3} - 4x with g′(2)=20g'(2) = 20: 12k−4=2012k - 4 = 20, so k=2k = 2.

Rates of change in context

  • In 5.1 a chord estimated a rate. The rule gives it exactly.
  • Example: a cube of side ss cm has volume V=s3V = s^{3}, so dVds=3s2\dfrac{dV}{ds} = 3s^{2}. At s=4s = 4 the volume increases at 48 cm348\ \mathrm{cm^{3}} per cm of side.
  • In economics the same move gives marginal cost = the rate at which total cost rises with output.
  • Example: a bakery's weekly cost of making nn loaves is C(n)=0.002n3−0.3n2+40n+1500C(n) = 0.002n^{3} - 0.3n^{2} + 40n + 1500 euros. Then C′(n)=0.006n2−0.6n+40C'(n) = 0.006n^{2} - 0.6n + 40, and C′(50)=15−30+40=25C'(50) = 15 - 30 + 40 = 25. When 50 loaves a week are being made, cost is rising at about €25 per extra loaf.
  • Interpret it with the units and the value of nn, as 5.1 set out.

7Checking with technology

  • On Paper 2 the GDC can check a derivative found by hand. Compare its numerical derivative at an awkward value, say x=1.7x = 1.7, with your f′(1.7)f'(1.7). A gap beyond rounding means a wrong term, most often a negative power.
  • A value at one point is not an expression, so "find f′(x)f'(x)" needs the algebra on either paper.
  • For "find the gradient at x=1.7x = 1.7" on Paper 2, the GDC value is acceptable. Write f′(1.7)=…f'(1.7) = \ldots first, so a wrong number still shows the method.

Practice questions

42 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.