Class 12 Maths, Worked in Full Past papersGet updates
Chapter 7 · Integrals

Exercise 7.1 · Q16: ∫(2x−3cos⁡x+ex) dx\int (2x - 3\cos x + e^x)\,dx

Exercise 7.1Integration as anti-differentiation · Section 7.2
The question

Find the following integral:

∫(2x−3cos⁡x+ex) dx\int (2x - 3\cos x + e^x)\,dx
Exam answer

Let I=∫(2x−3cos⁡x+ex)dxI = \displaystyle\int\left(2x - 3\cos x + e^x\right)dx⁠.

I=2∫x dx−3∫cos⁡x dx+∫ex dx=2⋅x22−3sin⁡x+ex+C\begin{aligned} I &= 2\int x\,dx - 3\int\cos x\,dx \\ &\quad + \int e^x\,dx \\ &= 2\cdot\frac{x^2}{2} - 3\sin x + e^x + C \end{aligned}

∴ I=x2−3sin⁡x+ex+C\therefore\ I = x^2 - 3\sin x + e^x + C⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

The integrand is a sum of three functions whose antiderivatives we already know from the derivative table: x2x^2 has derivative 2x2x⁠, sin⁡x\sin x has derivative cos⁡x\cos x⁠, and exe^x is its own derivative. Integration is linear (sums split up, constants come out), so we integrate each term on its own and add.

Given, to find, and the plan
Given
The integrand f(x)=2x−3cos⁡x+exf(x) = 2x - 3\cos x + e^x⁠, defined for every real xx⁠.
To find
∫f(x) dx\int f(x)\,dx⁠.
Plan
(1) Split into three integrals, constants in front. (2) Use the standard formulae for xnx^n⁠, cos⁡x\cos x and exe^x⁠. (3) Differentiate the answer to check it.

Basics you need

1Integration undoes differentiation

∫f(x) dx=F(x)+C\int f(x)\,dx = F(x) + C means F′(x)=f(x)F'(x) = f(x)⁠. Each standard integral is a derivative formula read backwards. Basics: integration undoes differentiation

2Three standard integrals

From the list in Section 7.2: (i) ∫xn dx=xn+1n+1+C\int x^n\,dx = \frac{x^{n+1}}{n+1} + C⁠; (ii) ∫cos⁡x dx=sin⁡x+C\int \cos x\,dx = \sin x + C⁠; (xi) ∫ex dx=ex+C\int e^x\,dx = e^x + C⁠. Basics: the power rule Basics: trigonometric facts for integrals

3Linearity

∫(k1f1+k2f2) dx\int (k_1 f_1 + k_2 f_2)\,dx =k1 ⁣∫f1 dx+k2 ⁣∫f2 dx= k_1\!\int f_1\,dx + k_2\!\int f_2\,dx⁠, and the same for three or more terms (Property V, Section 7.2.1). Lesson: integration as anti-differentiation

Solution

  1. Split the integral (Property V)

    ∫(2x−3cos⁡x+ex) dx=2∫x dx−3∫cos⁡x dx+∫ex dx.\begin{aligned} &\int (2x - 3\cos x + e^x)\,dx \\ &\quad = 2\int x\,dx - 3\int \cos x\,dx + \int e^x\,dx. \end{aligned}
    Property V is the rule that integration respects sums and constant multiples, with k1=2k_1 = 2⁠, k2=−3k_2 = -3⁠, k3=1k_3 = 1⁠. Taking the constants out leaves three integrals that are each exactly a formula from the list. The minus sign belongs to the constant −3-3⁠, so it stays attached to the cosine term.
  2. Use the standard formulae

    2∫x dx=2⋅x22=x2,−3∫cos⁡x dx=−3sin⁡x,∫ex dx=ex.\begin{aligned} 2\int x\,dx &= 2\cdot\frac{x^2}{2} = x^2, \\ -3\int \cos x\,dx &= -3\sin x, \\ \int e^x\,dx &= e^x. \end{aligned}

    Adding, with a single constant of integration,

    ∫(2x−3cos⁡x+ex) dx=x2−3sin⁡x+ex+C.\begin{aligned} &\int (2x - 3\cos x + e^x)\,dx \\ &\quad = x^2 - 3\sin x + e^x + C. \end{aligned}
    Formula (i) with n=1n = 1 gives x22\frac{x^2}{2}⁠, and the 2 in front cancels the 2 below. Formula (ii) holds because ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x⁠. Formula (xi) holds because exe^x is its own derivative. The three separate constants add up to one arbitrary constant CC⁠.
    Formulae (i), (ii) and (xi), Section 7.2. Basics: trigonometric facts for integrals
  3. Check: differentiate the answer back

    ddx(x2−3sin⁡x+ex+C)=2x−3cos⁡x+ex+0.\begin{aligned} &\frac{d}{dx}\left(x^2 - 3\sin x + e^x + C\right) \\ &\quad = 2x - 3\cos x + e^x + 0. \end{aligned}

    This is the integrand, for every real xx⁠, so the answer is correct.

    ddxx2=2x\frac{d}{dx}x^2 = 2x⁠, ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x (so −3sin⁡x-3\sin x gives −3cos⁡x-3\cos x⁠), ddxex=ex\frac{d}{dx}e^x = e^x⁠, and a constant has derivative 0. All three functions are defined and differentiable for every real xx⁠, so no domain restriction is needed.
    Derivatives column of the list in Section 7.2; Property I, Section 7.2.1. Basics: integration undoes differentiation
Result

For all real xx⁠,

∫(2x−3cos⁡x+ex) dx=x2−3sin⁡x+ex+C.\begin{aligned} &\int (2x - 3\cos x + e^x)\,dx \\ &\quad = x^2 - 3\sin x + e^x + C. \end{aligned}

(Textbook answer: x2−3sin⁡x+ex+Cx^2 - 3\sin x + e^x + C⁠.)

Check it with numbers

At x=1x = 1 (radians) the integrand is 2−3cos⁡1+e2 - 3\cos 1 + e ≈2−1.6209069+2.7182818\approx 2 - 1.6209069 + 2.7182818 =3.0973749= 3.0973749⁠. With F(x)=x2−3sin⁡x+exF(x) = x^2 - 3\sin x + e^x⁠: F(1.001)≈1.19696987F(1.001) \approx 1.19696987 and F(0.999)≈1.19077512F(0.999) \approx 1.19077512⁠, so the slope of FF at 1 is about

1.19696987−1.190775120.002≈3.0974,\frac{1.19696987 - 1.19077512}{0.002} \approx 3.0974,

which matches the integrand value 3.0973749 to four decimal places.

(Each value of FF is rounded to 8 decimal places, so the slope is reliable to about 4 decimal places.)

Common mistakes
  1. Sign of the cosine integral. ∫cos⁡x dx=+sin⁡x\int \cos x\,dx = +\sin x⁠. (It is ∫sin⁡x dx\int \sin x\,dx that equals −cos⁡x-\cos x⁠.)
  2. ∫2x dx=2\int 2x\,dx = 2 or x2/2x^2/2⁠. The correct answer is x2x^2⁠: raise the power, divide by 2, and the 2 in front cancels.
  3. ∫ex dx=ex+1x+1\int e^x\,dx = \frac{e^{x+1}}{x+1}⁠. The power formula is for xnx^n with a constant exponent, not for exe^x⁠, whose variable is in the exponent.
What to take away
  1. Linearity (Property V) reduces a sum to a list of standard integrals.
  2. Know formulae (i), (ii), (iii), (xi) both ways: (sin⁡x)′=cos⁡x(\sin x)' = \cos x means ∫cos⁡x dx=sin⁡x+C\int\cos x\,dx = \sin x + C⁠.
  3. Differentiate back to check the signs of trigonometric terms.

Every fact used, and where it comes from

FactUsed inSource
Integrate term by term, constants in frontStep 1Property V, Section 7.2.1 (Lesson: integration as anti-differentiation)
∫xndx=xn+1n+1+C\int x^n dx = \frac{x^{n+1}}{n+1} + CStep 2Formula (i), Section 7.2
∫cos⁡x dx=sin⁡x+C\int \cos x\,dx = \sin x + CStep 2Formula (ii), Section 7.2
∫ex dx=ex+C\int e^x\,dx = e^x + CStep 2Formula (xi), Section 7.2
(x2)′=2x(x^2)' = 2x⁠, (sin⁡x)′=cos⁡x(\sin x)' = \cos x⁠, (ex)′=ex(e^x)' = e^xStep 3Derivatives column, list in Section 7.2; Property I, Section 7.2.1
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →