P1 4.2, P1 4.1 - Differentiating powers

P1 4.2, P1 4.1 - Differentiating powers

Find gradient functions efficiently by differentiating powers and sums. Learn how to rewrite products, quotients and roots first, then differentiate once more to obtain a second derivative.

Power rule and sums

How could you find the gradient function of y=(x+2)(x−3)/xy=(x+2)(x-3)/\sqrt{x} without a long chord calculation? The key is to rewrite it as powers whose derivatives follow one simple rule.

For y=x2y=x^2, chord gradients gave dy/dx=2x\mathrm{d}y/\mathrm{d}x=2x. For y=x3y=x^3, the same calculation at x=ax=a gives

(a+h)3−a3h=3a2+3ah+h2,\frac{(a+h)^3-a^3}{h}=3a^2+3ah+h^2,

which approaches 3a23a^2 as hh approaches zero. The exponent becomes a multiplier, then decreases by one.

Power rule for differentiation

ddx(xn)=nxn−1.\frac{\mathrm{d}}{\mathrm{d}x}(x^n)=nx^{n-1}.

This applies wherever the power is real and differentiable. Multiply by any constant coefficient, and differentiate sums and differences term by term:

ddx(kxn)=knxn−1.\frac{\mathrm{d}}{\mathrm{d}x}(kx^n)=knx^{n-1}.

A constant has derivative 00, and d(kx)/dx=k\mathrm{d}(kx)/\mathrm{d}x=k.

Not in the formula booklet: learn it.

A constant shifts a graph vertically without changing its tangent gradients. Likewise, multiplying all heights by kk multiplies all vertical changes, so it multiplies the derivative by kk. For a sum, the changes add, so the derivatives add.

Worked example 1: differentiate a polynomial

Question. Find dy/dx\mathrm{d}y/\mathrm{d}x when y=6x3−5x2+4x−9y=6x^3-5x^2+4x-9.

Plan. Apply the power rule to each term and remove the constant term.

dydx=6(3)x3−1−5(2)x2−1+4=18x2−10x+4\begin{aligned} \frac{\mathrm{d}y}{\mathrm{d}x} &=6(3)x^{3-1}-5(2)x^{2-1}+4\\ &=18x^2-10x+4 \end{aligned}

Answer. dy/dx=18x2−10x+4\mathrm{d}y/\mathrm{d}x=18x^2-10x+4.

Check. At x=0x=0, the terms in x3x^3 and x2x^2 have horizontal tangents, leaving the linear term's gradient 44. The result gives 44.

Change only the first exponent from 33 to 3/23/2. The same two operations apply to a fractional index.

Worked example 2: a fractional power

Question. Find dy/dx\mathrm{d}y/\mathrm{d}x when y=6x3/2−5x2+4x−9y=6x^{3/2}-5x^2+4x-9, for x>0x>0.

Plan. Multiply by each exponent, then subtract one from it.

dydx=6(32)x3/2−1−10x+4=9x1/2−10x+4\begin{aligned} \frac{\mathrm{d}y}{\mathrm{d}x} &=6\left(\frac32\right)x^{3/2-1}-10x+4\\ &=9x^{1/2}-10x+4 \end{aligned}

Answer. dy/dx=9x−10x+4\mathrm{d}y/\mathrm{d}x=9\sqrt{x}-10x+4.

Check. At x=4x=4, the result gives −18-18. The symmetric nearby quotient [y(4.001)−y(3.999)]/0.002[y(4.001)-y(3.999)]/0.002 is approximately −18.00000005-18.00000005, agreeing to the displayed precision.

Negative indices work too: d(x−2)/dx=−2x−3\mathrm{d}(x^{-2})/\mathrm{d}x=-2x^{-3} for x≠0x\ne0. Keep the sign of the old exponent when forming the new coefficient.

Watch out

d(6x3/2)/dx=9x1/2\mathrm{d}(6x^{3/2})/\mathrm{d}x=9x^{1/2}, not 9x3/29x^{3/2}. Multiplying by the exponent and reducing it are both necessary. Also, the derivative of −9-9 is 00, not −9-9.

Use the same term-by-term method with a new first coefficient.

Rewriting products quotients and roots before differentiation

A product or quotient may hide a sum of powers; expose those powers before differentiating.

For example, x=x1/2\sqrt{x}=x^{1/2} and 1/x2=x−21/x^2=x^{-2}. A single-power denominator can be divided into every term separately:

x2+5x−33x=13x3/2+53x1/2−x−1/2(x>0).\frac{x^2+5x-3}{3\sqrt{x}} =\frac13x^{3/2}+\frac53x^{1/2}-x^{-1/2} \qquad(x>0).

The quotient law subtracts the denominator's exponent from each numerator exponent. The coefficient 1/31/3 also applies to every term.

You already know

Expand brackets before collecting powers. For x>0x>0, xa/xb=xa−bx^a/x^b=x^{a-b}, so dividing by x\sqrt{x} subtracts 1/21/2 from each exponent.

Start with a product that expands to a quadratic.

Worked example 3: expand a product

Question. Differentiate y=(x+2)(x−3)y=(x+2)(x-3).

Plan. Expand and collect terms, then use the power rule.

y=x2−3x+2x−6=x2−x−6dydx=2x−1\begin{aligned} y&=x^2-3x+2x-6=x^2-x-6\\ \frac{\mathrm{d}y}{\mathrm{d}x}&=2x-1 \end{aligned}

Answer. dy/dx=2x−1\mathrm{d}y/\mathrm{d}x=2x-1.

Check. The expanded graph is (x−1/2)2−25/4(x-1/2)^2-25/4. At its symmetry line x=1/2x=1/2, the tangent is horizontal, and 2(1/2)−1=02(1/2)-1=0.

Change only the denominator: divide the same product by x\sqrt{x}. Expand first as before, then divide each term.

Worked example 4: divide by a root

Question. Differentiate y=(x+2)(x−3)/xy=(x+2)(x-3)/\sqrt{x}, for x>0x>0.

Plan. Expand the numerator, rewrite the quotient as three powers, then differentiate each.

y=x2−x−6x1/2=x3/2−x1/2−6x−1/2dydx=32x1/2−12x−1/2+3x−3/2\begin{aligned} y&=\frac{x^2-x-6}{x^{1/2}}\\ &=x^{3/2}-x^{1/2}-6x^{-1/2}\\ \frac{\mathrm{d}y}{\mathrm{d}x} &=\frac32x^{1/2}-\frac12x^{-1/2}+3x^{-3/2} \end{aligned}

Why rewrite first? The power rule applies to each separate power. Differentiating the numerator and denominator separately and dividing their derivatives is not a differentiation rule.

Answer. dy/dx=32x−12x+3x3/2\mathrm{d}y/\mathrm{d}x=\frac32\sqrt{x}-\frac1{2\sqrt{x}}+\frac3{x^{3/2}}.

Check. At x=4x=4, this gives 3−1/4+3/8=25/83-1/4+3/8=25/8. A symmetric quotient from the original expression at 4±0.0014\pm0.001 is approximately 3.1250000053.125000005, agreeing with 25/825/8.

The final positive term comes from multiplying the two negative factors −6-6 and −1/2-1/2.

Watch out

x2−x−6x=x3/2−x1/2−6x−1/2\frac{x^2-x-6}{\sqrt{x}}=x^{3/2}-x^{1/2}-6x^{-1/2}, not x3/2−x−6x^{3/2}-x-6. Divide every numerator term. The denominator also excludes x=0x=0, so the original domain matters.

Now change the numerator's two brackets while keeping the same rewriting strategy.

Second derivatives

You can differentiate a gradient function to find how that gradient changes with the input.

For y=x3y=x^3, the first derivative is 3x23x^2. Differentiating 3x23x^2 gives 6x6x, called the second derivative. You are applying the same operation twice, to two successive functions.

Second derivative

For y=f(x)y=f(x), the second derivative is the derivative of f′(x)f'(x). Write it as

f′′(x)ord2ydx2.f''(x)\quad\text{or}\quad\frac{\mathrm{d}^2y}{\mathrm{d}x^2}.

It measures the rate of change of the first derivative with respect to xx. It is not the square of the first derivative.

Keep a separate line for each derivative so that the second calculation uses the first derivative rather than the original function.

Worked example 5: differentiate twice

Question. Given f(x)=x3−3x2+2x+5f(x)=x^3-3x^2+2x+5, find f′′(x)f''(x) and f′′(2)f''(2).

Plan. Differentiate term by term twice, then substitute x=2x=2 into the second result.

f′(x)=3x2−6x+2f′′(x)=6x−6f′′(2)=12−6=6\begin{aligned} f'(x)&=3x^2-6x+2\\ f''(x)&=6x-6\\ f''(2)&=12-6=6 \end{aligned}

Answer. f′′(x)=6x−6f''(x)=6x-6 and f′′(2)=6f''(2)=6.

Check. The first derivative is g(x)=3x2−6x+2g(x)=3x^2-6x+2. Its chord gradient from 22 to 2+h2+h is 6+3h6+3h, which approaches 66.

Change only the original leading power from x3x^3 to x4x^4. Track that change through both derivatives.

Worked example 6: a changed leading power

Question. Given f(x)=x4−3x2+2x+5f(x)=x^4-3x^2+2x+5, find f′′(x)f''(x) and f′′(2)f''(2).

Plan. Find the first and second derivative functions before substituting.

f′(x)=4x3−6x+2f′′(x)=12x2−6f′′(2)=12(4)−6=42\begin{aligned} f'(x)&=4x^3-6x+2\\ f''(x)&=12x^2-6\\ f''(2)&=12(4)-6=42 \end{aligned}

Answer. f′′(x)=12x2−6f''(x)=12x^2-6 and f′′(2)=42f''(2)=42.

Check. The first derivative's symmetric chord gradient at 22, using inputs 2±0.0012\pm0.001, is 42.00000442.000004, close to 4242. Squaring f′(2)=22f'(2)=22 would instead give 484484, a different calculation.

If the first derivative has units of metres per second and the input is time in seconds, the second derivative has units of metres per second squared. Each differentiation divides the units by the input's units again.

Watch out

Substituting x=2x=2 into f′(x)f'(x) gives a number, not a function you can then differentiate to find f′′(2)f''(2). Differentiate first; substitute afterwards.

The opening curve needed no new product or quotient rule: expansion and index laws exposed powers. A second derivative follows by applying the same power rule to its gradient function.

Quick Recap

  • Differentiate kxnkx^n by multiplying by nn and reducing the exponent by one.
  • Differentiate sums term by term; a constant differentiates to zero.
  • Expand products and rewrite roots or quotients as powers before differentiating.
  • Differentiate the first derivative to obtain the second derivative, then substitute if a value is required.

The opening curve has gradient function 32x1/2−12x−1/2+3x−3/2\frac32x^{1/2}-\frac12x^{-1/2}+3x^{-3/2}, for x>0x>0.