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

Exercise 7.1 · Q1: An anti derivative of sin⁡2x\sin 2x

Exercise 7.1Integration by inspection · Section 7.2
The question

Find an anti derivative (or integral) of the following function by the method of inspection.

sin⁡2x\sin 2x
Exam answer

We know that ddx(cos⁡2x)=−2sin⁡2x\frac{d}{dx}(\cos 2x) = -2\sin 2x⁠.

∴ sin⁡2x=ddx(−12cos⁡2x)\therefore\ \sin 2x = \frac{d}{dx}\left(-\frac12\cos 2x\right)

∴\therefore An anti derivative of sin⁡2x\sin 2x is −12cos⁡2x-\dfrac12\cos 2x⁠, and ∫sin⁡2x dx\int\sin 2x\,dx =−12cos⁡2x+C= -\dfrac12\cos 2x + C⁠.

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

The one idea this problem is built on

An anti derivative of ff is any function whose derivative is ff⁠. "Inspection" means: guess a function from a derivative you already know, differentiate the guess, and adjust it until its derivative is exactly sin⁡2x\sin 2x⁠. We know that −cos⁡-\cos differentiates to sin⁡\sin⁠; the inner 2x2x only adds a factor 22 (chain rule), which we cancel by dividing by 22⁠.

Given, to find, and the plan
Given
f(x)=sin⁡2xf(x) = \sin 2x⁠, defined for every real xx⁠.
To find
One function FF with F′(x)=sin⁡2xF'(x) = \sin 2x for every real xx⁠.
Plan
(1) Start from the standard result ddx(−cos⁡x)=sin⁡x\frac{d}{dx}(-\cos x) = \sin x and try −cos⁡2x-\cos 2x⁠. (2) Differentiate the guess with the chain rule and see what factor is off. (3) Fix the factor. (4) Check by differentiating the final answer back. (5) Write the whole family with + C+\,C⁠.

Basics you need

1Anti derivative

FF is an anti derivative of ff on an interval if F′(x)=f(x)F'(x) = f(x) at every point of that interval. Integration is differentiation run backwards (Section 7.2). Basics: integration undoes differentiation

2Derivatives of sine and cosine

ddx(sin⁡x)=cos⁡x\frac{d}{dx}(\sin x) = \cos x and ddx(cos⁡x)=−sin⁡x\frac{d}{dx}(\cos x) = -\sin x⁠, so ddx(−cos⁡x)=sin⁡x\frac{d}{dx}(-\cos x) = \sin x⁠. This is item (iii) of the standard formulae in Section 7.2: ∫sin⁡x dx=−cos⁡x+C\int \sin x\,dx = -\cos x + C⁠. Basics: trigonometric facts for integrals

3The chain rule

To differentiate cos⁡(2x)\cos(2x)⁠, differentiate the outer cosine at the inner 2x2x⁠, then multiply by the derivative of the inner 2x2x⁠, which is 22⁠. Read backwards, this is why an inner 2x2x costs a factor 12\frac12 when we integrate. Basics: the chain rule backwards

4The constant of integration

If F′=fF' = f then also (F+C)′=f(F + C)' = f for every constant CC⁠, because a constant has derivative 00⁠. So one anti derivative gives a whole family F+CF + C⁠. Lesson: integration as anti differentiation

Solution

  1. Make a first guess from a known derivative

    We need a function whose derivative is a sine. The standard formulae give one immediately:

    ddx(−cos⁡x)=sin⁡x.\frac{d}{dx}(-\cos x) = \sin x.

    Our function has 2x2x in place of xx⁠, so the natural first guess is −cos⁡2x-\cos 2x⁠.

    Inspection always starts from a derivative we already know. The only derivative that produces a plain sine is that of −cos⁡-\cos⁠, so the answer must be built from −cos⁡2x-\cos 2x⁠. The guess is only a candidate until we differentiate it.
    Item (iii) of the list of standard formulae, Section 7.2: ddx(−cos⁡x)=sin⁡x\frac{d}{dx}(-\cos x) = \sin x⁠, equivalently ∫sin⁡x dx=−cos⁡x+C\int \sin x\,dx = -\cos x + C⁠. Basics: trigonometric facts for integrals
  2. Differentiate the guess (chain rule)

    Write the guess as an outer function of an inner one: inner u=2xu = 2x⁠, outer −cos⁡u-\cos u⁠. Then

    ddx(−cos⁡2x)=sin⁡u⋅dudx=sin⁡2x⋅2=2sin⁡2x.\begin{aligned} \frac{d}{dx}(-\cos 2x) &= \sin u \cdot \frac{du}{dx} \\ &= \sin 2x \cdot 2 \\ &= 2\sin 2x. \end{aligned}

    The guess gives 2sin⁡2x2\sin 2x⁠: the right function, but twice too big.

    The derivative of the outer −cos⁡u-\cos u with respect to uu is sin⁡u\sin u⁠, and the chain rule multiplies it by dudx=2\frac{du}{dx} = 2⁠. That extra factor 22 comes from the inner 2x2x⁠: the curve −cos⁡2x-\cos 2x runs through its values twice as fast as −cos⁡x-\cos x⁠, so its slopes are twice as steep.
    Chain rule (Theorem 4, Section 5.3.1 of Chapter 5): ddxg(u(x))=g′(u(x)) u′(x)\frac{d}{dx}g(u(x)) = g'(u(x))\,u'(x)⁠. Basics: the chain rule backwards
  3. Remove the extra factor 2

    Multiplying a function by a constant multiplies its derivative by the same constant. So multiply the guess by 12\frac12⁠:

    ddx(−12cos⁡2x)=12⋅2sin⁡2x=sin⁡2x.\begin{aligned} \frac{d}{dx}\left(-\tfrac12\cos 2x\right) &= \tfrac12\cdot 2\sin 2x \\ &= \sin 2x. \end{aligned}

    Hence −12cos⁡2x-\frac12\cos 2x is an anti derivative of sin⁡2x\sin 2x.

    The constant factor rule (kF)′=kF′(kF)' = kF' lets us scale the guess freely. We scale by exactly the reciprocal of the unwanted factor, 12\frac12⁠, so that 12⋅2=1\frac12 \cdot 2 = 1 and nothing but sin⁡2x\sin 2x is left. This is the same move the book makes for cos⁡2x\cos 2x in Example 1 (i).
    Constant multiple rule for derivatives (Section 5.3): ddx(kF)=kdFdx\frac{d}{dx}(kF) = k\frac{dF}{dx}⁠. Example 1
  4. Check: differentiate the answer back

    Let F(x)=−12cos⁡2xF(x) = -\frac12\cos 2x⁠. With inner u=2xu = 2x (so u′=2u' = 2⁠) and dducos⁡u=−sin⁡u\frac{d}{du}\cos u = -\sin u⁠:

    F′(x)=−12⋅(−sin⁡2x)⋅2=sin⁡2x.  ✓\begin{aligned} F'(x) &= -\tfrac12 \cdot (-\sin 2x) \cdot 2 \\ &= \sin 2x. \;\checkmark \end{aligned}

    The derivative is exactly the given function, for every real xx⁠.

    Inspection is guessing, and a guess is only an answer once it has been checked. Differentiating back is the definition of "anti derivative" applied directly: if F′=fF' = f⁠, then FF is an anti derivative of ff⁠, with nothing left to doubt.
    Property (I), Section 7.2.1: differentiation and integration undo each other. Basics: integration undoes differentiation
  5. All anti derivatives: add the constant

    Adding any constant does not change the derivative, so every function −12cos⁡2x+C-\frac12\cos 2x + C is an anti derivative too, and by the Remark in Section 7.2 these are all of them:

    ∫sin⁡2x dx=−12cos⁡2x+C.\int \sin 2x\,dx = -\tfrac12\cos 2x + C.
    x y π/4 π/2 3π/4 π 0 1 2 3 C = 1 C = 2 C = 3 gold tangents at x = π/4 are parallel: slope 1
    Three members of the family y=−12cos⁡2x+Cy = -\frac12\cos 2x + C (with C=1,2,3C = 1, 2, 3⁠). Each is the previous one lifted straight up, so at any xx all of them have the same slope sin⁡2x\sin 2x⁠. At x=π4x = \frac{\pi}{4} the slope is sin⁡π2=1\sin\frac{\pi}{2} = 1⁠, and the three tangents (gold) are parallel.
    The question asks for an anti derivative, so −12cos⁡2x-\frac12\cos 2x alone answers it. But the integral sign means the whole family, and the picture shows why: lifting a graph up or down changes no slope, and two functions with the same derivative on an interval differ only by a constant.
    Remark in Section 7.2: functions with the same derivative on an interval differ by a constant, so {F+C:C∈R}\{F + C : C \in \R\} is the family of all anti derivatives. Lesson: integration as anti differentiation
Result

An anti derivative of sin⁡2x\sin 2x is −12cos⁡2x-\frac12\cos 2x⁠, valid for every real xx⁠. All of them are given by

∫sin⁡2x dx=−12cos⁡2x+C.\int \sin 2x\,dx = -\tfrac12\cos 2x + C.

(Textbook answer: −12cos⁡2x-\frac12\cos 2x⁠.)

Check it with numbers

Take x=0.5x = 0.5 and h=0.001h = 0.001⁠. The slope of F(x)=−12cos⁡2xF(x) = -\frac12\cos 2x estimated from two nearby values:

F(0.501)−F(0.499)0.002=−0.269309142208−(−0.270992083056)0.002≈0.8414704.\begin{aligned} &\frac{F(0.501) - F(0.499)}{0.002} \\ &= \frac{-0.269309142208 - (-0.270992083056)}{0.002} \\ &\approx 0.8414704. \end{aligned}

The integrand at the same point is sin⁡1≈0.8414710\sin 1 \approx 0.8414710⁠. They agree to six decimal places, as they should if F′=sin⁡2xF' = \sin 2x⁠.

Common mistakes
  1. Wrong sign. Writing 12cos⁡2x\frac12\cos 2x⁠: its derivative is −sin⁡2x-\sin 2x⁠. The derivative of cosine carries a minus sign, so the anti derivative of sine must carry one too.
  2. Multiplying by 2 instead of dividing. −2cos⁡2x-2\cos 2x differentiates to 4sin⁡2x4\sin 2x⁠. The inner 2x2x already contributes a factor 22⁠; we must cancel it, not add another.
  3. Changing the angle. −12cos⁡x-\frac12\cos x differentiates to 12sin⁡x\frac12\sin x⁠, a different function. The angle 2x2x stays as it is.
What to take away
  1. Inspection: guess from a known derivative, differentiate the guess, then fix the constant factor.
  2. For a constant a≠0a \ne 0⁠: ∫sin⁡ax dx=−1acos⁡ax+C\int \sin ax\,dx = -\frac{1}{a}\cos ax + C⁠. The inner axax costs a factor 1a\frac1a⁠.
  3. Always differentiate the answer back. It takes a few seconds and catches sign and factor slips.

Every fact used, and where it comes from

FactUsed inSource
ddx(−cos⁡x)=sin⁡x\frac{d}{dx}(-\cos x) = \sin x⁠; ∫sin⁡x dx=−cos⁡x+C\int \sin x\,dx = -\cos x + CSteps 1, 4Standard formulae, item (iii), Section 7.2
Chain ruleSteps 2, 4Theorem 4, Section 5.3.1 (Chapter 5)
ddx(kF)=kF′\frac{d}{dx}(kF) = kF'Step 3Algebra of derivatives, Section 5.3 (product rule with a constant factor)
Inspection applied to cos⁡2x\cos 2xStep 3Example 1 (i), Section 7.2.1
Differentiation and integration undo each otherStep 4Property (I), Section 7.2.1
Anti derivatives differ by a constantStep 5Remark, Section 7.2 (Lesson: anti differentiation)
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 →