Lesson 4 of 7 · 15 min

The quotient rule with e, ln and trig

Differentiate quotients such as ln⁡(x)x2\frac{\ln(x)}{x^2}, sin⁡(x)x\frac{\sin(x)}{x} and exx+1\frac{e^x}{x + 1} with the quotient rule, and use it to find the derivative of tan⁡(x)\tan(x).

What you will be able to do

  • Use ddx(uv)=vdudx−udvdxv2\frac{d}{dx}\left(\frac{u}{v}\right) = \frac{v\frac{du}{dx} - u\frac{dv}{dx}}{v^2} with exponential, logarithmic and trigonometric functions.
  • Simplify the numerator and cancel common factors to reach simplest form.
  • Derive ddxtan⁡(x)=1cos⁡2(x)\frac{d}{dx}\tan(x) = \frac{1}{\cos^2(x)} using the quotient rule.

The function y=ln⁡(x)xy = \frac{\ln(x)}{x} rises from the far negative values near x=0x = 0, crosses the xx-axis at x=1x = 1, reaches a maximum and then slowly falls towards 0. Where exactly is the top? You need its derivative, and it is a quotient: one function divided by another.

Interactive

Find the top of y=ln⁡(x)xy = \frac{\ln(x)}{x}

Drag the point until the tangent is horizontal. The lower graph is the derivative 1−ln⁡(x)x2\frac{1 - \ln(x)}{x^2}, which is zero where ln⁡(x)=1\ln(x) = 1, that is, at x=e≈2.72x = e \approx 2.72.

Key idea

The quotient rule

If y=uvy = \frac{u}{v}, where uu and vv are functions of xx, then

dydx=vdudx−udvdxv2\frac{dy}{dx} = \frac{v\frac{du}{dx} - u\frac{dv}{dx}}{v^2}

Bottom times derivative of top, minus top times derivative of bottom, all over the bottom squared. It is on the QCAA formula sheet.

Worked example

Differentiate y=ln⁡(x)x2y = \frac{\ln(x)}{x^2}

  • Simple familiar
  • Technology free

Differentiate y=ln⁡(x)x2y = \frac{\ln(x)}{x^2}, for x>0x > 0, giving your answer in simplest form.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Set out uu, u′u', vv and v′v'.

  2. Substitute into vu′−uv′v2\frac{vu' - uv'}{v^2}, bottom first on top.

  3. Simplify the numerator, factorise it, and cancel a factor common to the whole numerator and denominator.

Watch out for

  • Reversing the numerator to uv′−vu′uv' - vu' gives the negative of the answer.

  • Cancelling xx from only one term of the numerator.

Differentiate y=sin⁡(x)xy = \frac{\sin(x)}{x}.

fracdydx =
Reads asYour answer shows here as maths.

The derivative of tan⁡(x)\tan(x). You now have everything you need to differentiate tangent, because tan⁡(x)=sin⁡(x)cos⁡(x)\tan(x) = \frac{\sin(x)}{\cos(x)}. It is not on the Methods formula sheet, so derive it when you need it.

Worked example

Derive the derivative of tan⁡(x)\tan(x)

  • Complex familiar
  • Technology free

(a) Use the quotient rule to show that ddxtan⁡(x)=1cos⁡2(x)\frac{d}{dx}\tan(x) = \frac{1}{\cos^2(x)}.

(b) Hence find the gradient of y=tan⁡(x)y = \tan(x) at x=π4x = \frac{\pi}{4}.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Write tan⁡(x)=sin⁡(x)cos⁡(x)\tan(x) = \frac{\sin(x)}{\cos(x)}.

  2. Apply the quotient rule.

  3. Simplify with sin⁡2(x)+cos⁡2(x)=1\sin^2(x) + \cos^2(x) = 1.

Watch out for

  • −sin⁡(x)×(−sin⁡(x))=+sin⁡2(x)-\sin(x) \times \left(-\sin(x)\right) = +\sin^2(x). Losing this sign stops the identity from working.

  • The derivative of tan⁡(x)\tan(x) is not on the Methods formula sheet, so be ready to derive it.

Using the quotient rule on y=excos⁡(x)y = \frac{e^{x}}{\cos(x)}, which expression is the numerator of dydx\frac{dy}{dx}?

Choose one answer

Differentiate y=exx+1y = \frac{e^x}{x + 1} and simplify fully.

fracdydx =
Reads asYour answer shows here as maths.

Common mistake

Quotient rule traps

  • The order on top. It is vu′−uv′vu' - uv'. The product rule doesn't care about order; the quotient rule does, and swapping it flips the sign.
  • Forgetting to square the bottom. The denominator is v2v^2.
  • Cancelling across a sum. In xcos⁡(x)−sin⁡(x)x2\frac{x\cos(x) - \sin(x)}{x^2} you cannot cancel an xx, because sin⁡(x)\sin(x) has no factor of xx. Only cancel factors of the whole numerator.

Tip

Do you need the quotient rule?

If the bottom is a constant, it is a constant multiple: sin⁡(x)4\frac{\sin(x)}{4} differentiates to cos⁡(x)4\frac{\cos(x)}{4}. If the top is a constant, the chain rule is often quicker: 3cos⁡(x)=3(cos⁡(x))−1\frac{3}{\cos(x)} = 3(\cos(x))^{-1}, so its derivative is −3(cos⁡(x))−2×(−sin⁡(x))=3sin⁡(x)cos⁡2(x)-3(\cos(x))^{-2} \times (-\sin(x)) = \frac{3\sin(x)}{\cos^2(x)}.

Summary

  • For y=uvy = \frac{u}{v}: dydx=vu′−uv′v2\frac{dy}{dx} = \frac{vu' - uv'}{v^2}. Bottom times derivative of top comes first.

  • Expand and simplify the numerator, take out common factors, and leave the denominator squared and factorised.

  • Only cancel a factor that divides the whole numerator.

  • ddxtan⁡(x)=1cos⁡2(x)\frac{d}{dx}\tan(x) = \frac{1}{\cos^2(x)}, from tan⁡(x)=sin⁡(x)cos⁡(x)\tan(x) = \frac{\sin(x)}{\cos(x)} and sin⁡2(x)+cos⁡2(x)=1\sin^2(x) + \cos^2(x) = 1.

  • A constant on the bottom is a constant multiple; a constant on top is often quicker with the chain rule.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 4 of 70% read

Save your progress with a free account