Lesson 3 of 8 · 15 min

Integrating exe^x, 1x\frac{1}{x}, sine and cosine

Read your derivative rules backwards to integrate exe^x, 1x\frac{1}{x} (for x>0x > 0), sin⁡(x)\sin(x) and cos⁡(x)\cos(x) with the signs right, and combine them with powers of xx.

What you will be able to do

  • Use ∫ex dx=ex+c\int e^x\,dx = e^x + c.
  • Use ∫1x dx=ln⁡(x)+c\int \frac{1}{x}\,dx = \ln(x) + c for x>0x > 0, and explain why the power rule cannot do this one.
  • Use ∫sin⁡(x) dx=−cos⁡(x)+c\int \sin(x)\,dx = -\cos(x) + c and ∫cos⁡(x) dx=sin⁡(x)+c\int \cos(x)\,dx = \sin(x) + c with the signs right.
  • Combine these with the power rule using the sum and constant multiple rules.

Every derivative you learned in Topics 1 and 2 gives you an integral for free: just read it backwards. Four of them complete the set of integrals on the formula sheet.

Derivatives you know, read backwards
You know this derivativeSo you know this integral
ddxex=ex\frac{d}{dx}e^x = e^x∫ex dx=ex+c\int e^x\,dx = e^x + c
ddxln⁡(x)=1x\frac{d}{dx}\ln(x) = \frac{1}{x}, for x>0x > 0∫1x dx=ln⁡(x)+c\int \frac{1}{x}\,dx = \ln(x) + c, for x>0x > 0
ddxsin⁡(x)=cos⁡(x)\frac{d}{dx}\sin(x) = \cos(x)∫cos⁡(x) dx=sin⁡(x)+c\int \cos(x)\,dx = \sin(x) + c
ddx(−cos⁡(x))=sin⁡(x)\frac{d}{dx}\big({-\cos(x)}\big) = \sin(x)∫sin⁡(x) dx=−cos⁡(x)+c\int \sin(x)\,dx = -\cos(x) + c

The power rule covers every power of xx except one. At n=−1n = -1 it would give x00\frac{x^0}{0}, which is meaningless. But you already know a function whose derivative is 1x\frac{1}{x}: it is ln⁡(x)\ln(x), defined for x>0x > 0.

Interactive

The gradient of ln(x)

Drag the point along y=ln⁡(x)y = \ln(x). The gradient it traces out is the curve y=1xy = \frac{1}{x}: steep near x=0x = 0, flattening as xx grows. So ln⁡(x)\ln(x) is an antiderivative of 1x\frac{1}{x} for x>0x > 0.

Key idea

Four more standard integrals

∫ex dx=ex+c∫1x dx=ln⁡(x)+c,  x>0\int e^x\,dx = e^x + c \qquad \int \frac{1}{x}\,dx = \ln(x) + c,\ \ x > 0 ∫sin⁡(x) dx=−cos⁡(x)+c∫cos⁡(x) dx=sin⁡(x)+c\int \sin(x)\,dx = -\cos(x) + c \qquad \int \cos(x)\,dx = \sin(x) + c

All four are on the formula sheet. Combine them with the sum and constant multiple rules, exactly as you did with powers.

Determine ∫(4ex−3x)dx\int \left(4e^x - \frac{3}{x}\right)dx, for x>0x > 0.

Reads asYour answer shows here as maths.

Common mistake

eˣ is not a power of x, and 1/x is not x⁰/0

The power rule needs the variable in the base, as in xnx^n. In exe^x the variable is in the index, so ∫ex dx=ex+c\int e^x\,dx = e^x + c, not ex+1x+1\frac{e^{x+1}}{x+1}. At n=−1n = -1 the power rule breaks down altogether: ∫1x dx=ln⁡(x)+c\int \frac{1}{x}\,dx = \ln(x) + c.

The cosine result reads straight off the table. The sine one needs a moment's care: ddxcos⁡(x)=−sin⁡(x)\frac{d}{dx}\cos(x) = -\sin(x), so ddx(−cos⁡(x))=sin⁡(x)\frac{d}{dx}\big({-\cos(x)}\big) = \sin(x), and therefore ∫sin⁡(x) dx=−cos⁡(x)+c\int \sin(x)\,dx = -\cos(x) + c. A picture keeps the signs straight.

Differentiating moves one step clockwise. Integrating moves one step anticlockwise: ∫sin⁡(x) dx=−cos⁡(x)+c\int \sin(x)\,dx = -\cos(x) + c.

Determine ∫(2cos⁡(x)−5sin⁡(x)) dx\int \big(2\cos(x) - 5\sin(x)\big)\,dx.

Reads asYour answer shows here as maths.

Note

Radians only

As with derivatives, the sine and cosine results hold only when xx is in radians. Keep your calculator in radians for every calculus question.

Worked example

Integrate a mix of powers, 1x\frac{1}{x}, cos⁡(x)\cos(x) and exe^x

  • Simple familiar
  • Technology free

Determine ∫(x2−62x+3cos⁡(x)−ex)dx\int \left(\frac{x^2 - 6}{2x} + 3\cos(x) - e^x\right)dx for x>0x > 0.

5 steps

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

Method

  1. Divide any fraction through by its denominator first.

  2. Match each term to a formula: power, 1x\frac{1}{x}, exe^x, sin⁡\sin or cos⁡\cos.

  3. Integrate term by term, then add one constant.

Watch out for

  • ∫3x dx=3ln⁡(x)\int \frac{3}{x}\,dx = 3\ln(x), not 3x00\frac{3x^0}{0} and not −3x2-\frac{3}{x^2}.

  • ∫3cos⁡(x) dx=3sin⁡(x)\int 3\cos(x)\,dx = 3\sin(x), not −3sin⁡(x)-3\sin(x).

  • ∫ex dx=ex\int e^x\,dx = e^x, not ex+1x+1\frac{e^{x+1}}{x+1}: the power rule does not apply to exe^x.

Select every function that is an antiderivative of 1x\frac{1}{x} for x>0x > 0.

Select all that apply.

Exam tip

Use the formula sheet, but check the signs

All four results are on the formula sheet, with ln⁡(x)\ln(x) for x>0x > 0. The sign in ∫sin⁡(x) dx=−cos⁡(x)+c\int \sin(x)\,dx = -\cos(x) + c is a classic lost mark, so check it by differentiating: ddx(−cos⁡(x))=sin⁡(x)\frac{d}{dx}\big({-\cos(x)}\big) = \sin(x). When an integrand has 1x\frac{1}{x} in it, state the domain x>0x > 0 in your answer.

Summary

  • ∫ex dx=ex+c\int e^x\,dx = e^x + c: the power rule does not apply to exe^x.

  • ∫1x dx=ln⁡(x)+c\int \frac{1}{x}\,dx = \ln(x) + c for x>0x > 0. This fills the gap at n=−1n = -1 in the power rule.

  • ∫cos⁡(x) dx=sin⁡(x)+c\int \cos(x)\,dx = \sin(x) + c and ∫sin⁡(x) dx=−cos⁡(x)+c\int \sin(x)\,dx = -\cos(x) + c, with xx in radians.

  • Differentiating moves clockwise round sin⁡→cos⁡→−sin⁡→−cos⁡\sin \to \cos \to -\sin \to -\cos; integrating moves anticlockwise.

  • Combine these with powers term by term, using one constant of integration.

Finished the lesson?

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

Lesson 3 of 80% read

Save your progress with a free account