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

Example 32: ∫0π/2sin⁡4xsin⁡4x+cos⁡4x dx\int_0^{\pi/2}\frac{\sin^4x}{\sin^4x+\cos^4x}\,dx

ExamplesProperties of definite integrals · Section 7.10
The question

Evaluate ∫0π2sin⁡4xsin⁡4x+cos⁡4x  dx\displaystyle\int_0^{\frac{\pi}{2}} \frac{\sin^4 x}{\sin^4 x + \cos^4 x}\; dx⁠.

Exam answer

Let

I=∫0π2sin⁡4x dxsin⁡4x+cos⁡4x…(i)I = \int_0^{\frac{\pi}{2}}\frac{\sin^4 x\,dx}{\sin^4 x + \cos^4 x}\quad\ldots(\text{i})

Using ∫0af(x) dx=∫0af(a−x) dx\displaystyle\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dx⁠, with sin⁡(π2−x)=cos⁡x\sin\left(\frac{\pi}{2} - x\right) = \cos x and cos⁡(π2−x)=sin⁡x\cos\left(\frac{\pi}{2} - x\right) = \sin x⁠,

I=∫0π2cos⁡4x dxcos⁡4x+sin⁡4x…(ii)I = \int_0^{\frac{\pi}{2}}\frac{\cos^4 x\,dx}{\cos^4 x + \sin^4 x}\quad\ldots(\text{ii})

Adding (i) and (ii),

2I=∫0π2sin⁡4x+cos⁡4xsin⁡4x+cos⁡4x dx=∫0π21 dx=[x]0π2=π2\begin{aligned} 2I &= \int_0^{\frac{\pi}{2}}\frac{\sin^4 x + \cos^4 x}{\sin^4 x + \cos^4 x}\,dx \\ &= \int_0^{\frac{\pi}{2}}1\,dx = \Big[x\Big]_0^{\frac{\pi}{2}} = \frac{\pi}{2} \end{aligned}

∴ I=π4\therefore\ I = \dfrac{\pi}{4}⁠.

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

The one idea this problem is built on

On [0,π2]\left[0, \frac{\pi}{2}\right]⁠, replacing xx by π2−x\frac{\pi}{2} - x swaps sin⁡\sin and cos⁡\cos⁠. Property P4 says this does not change the integral. So the same number II is also the integral of cos⁡4xcos⁡4x+sin⁡4x\frac{\cos^4 x}{\cos^4 x + \sin^4 x}⁠. The two integrands add up to exactly 1, so 2I=∫0π/21 dx=π22I = \int_0^{\pi/2}1\,dx = \frac{\pi}{2}⁠.

Given, to find, and the plan
Given
I=∫0π/2sin⁡4xsin⁡4x+cos⁡4x dxI = \int_0^{\pi/2}\frac{\sin^4 x}{\sin^4 x + \cos^4 x}\,dx⁠.
To find
The exact value of II⁠.
Plan
Check the denominator never vanishes; apply P4 with a=π2a = \frac{\pi}{2} to get a second form (2); add (1) and (2); solve for II⁠.

Basics you need

1Property P4

∫0af(x) dx=∫0af(a−x) dx\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dx (Section 7.10): reading the interval from the other end does not change the area. Lesson: properties of definite integrals

2Complementary angles

sin⁡(π2−x)=cos⁡x\sin\left(\frac{\pi}{2} - x\right) = \cos x and cos⁡(π2−x)=sin⁡x\cos\left(\frac{\pi}{2} - x\right) = \sin x⁠. Basics: trigonometric identities

3Adding integrals over the same interval

∫abf+∫abg=∫ab(f+g)\int_a^b f + \int_a^b g = \int_a^b (f + g)⁠. Basics: symmetry and mirror images

Solution

  1. The denominator is never 0

    Using sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1⁠:

    sin⁡4x+cos⁡4x=(sin⁡2x+cos⁡2x)2−2sin⁡2xcos⁡2x=1−12sin⁡22x ≥ 12.\begin{aligned}\sin^4 x + \cos^4 x &= (\sin^2 x + \cos^2 x)^2 - 2\sin^2 x\cos^2 x \\ &= 1 - \tfrac12\sin^2 2x \ \ge\ \tfrac12.\end{aligned}

    So the integrand is continuous on [0,π2]\left[0, \frac{\pi}{2}\right] (in fact everywhere), and its values lie between 0 and 1.

    P4 and the addition below need integrals of continuous functions. Since sin⁡22x≤1\sin^2 2x \le 1⁠, the denominator is at least 12\frac12⁠, never 0. (It is also clear directly: sin⁡x\sin x and cos⁡x\cos x are never 0 at the same time.)
    2sin⁡xcos⁡x=sin⁡2x2\sin x\cos x = \sin 2x⁠, so 2sin⁡2xcos⁡2x=12sin⁡22x2\sin^2 x\cos^2 x = \frac12\sin^2 2x⁠. Basics: trigonometric identities
  2. Label the integral (1) and apply P4

    I=∫0π2sin⁡4xsin⁡4x+cos⁡4x dx(1)I = \int_0^{\frac{\pi}{2}}\frac{\sin^4 x}{\sin^4 x + \cos^4 x}\,dx \qquad (1)

    By P4 with a=π2a = \frac{\pi}{2}⁠, replace xx by π2−x\frac{\pi}{2} - x⁠:

    I=∫0π2sin⁡4(π2−x)sin⁡4(π2−x)+cos⁡4(π2−x) dx=∫0π2cos⁡4xcos⁡4x+sin⁡4x dx(2)\begin{aligned}I &= \int_0^{\frac{\pi}{2}}\frac{\sin^4\left(\frac{\pi}{2} - x\right)}{\sin^4\left(\frac{\pi}{2} - x\right) + \cos^4\left(\frac{\pi}{2} - x\right)}\,dx \\ &= \int_0^{\frac{\pi}{2}}\frac{\cos^4 x}{\cos^4 x + \sin^4 x}\,dx \qquad (2)\end{aligned}
    The complementary-angle identities turn every sin⁡\sin into cos⁡\cos and every cos⁡\cos into sin⁡\sin⁠. The denominator sin⁡4+cos⁡4\sin^4 + \cos^4 is unchanged (only its order), while the numerator becomes cos⁡4x\cos^4 x⁠. We now have two different-looking integrands with the same integral.
    P4, Section 7.10, with a=π2a = \frac{\pi}{2}⁠. Lesson: properties of definite integrals
  3. Add (1) and (2)

    2I=∫0π2sin⁡4x+cos⁡4xsin⁡4x+cos⁡4x dx=∫0π21 dx=[x]0π2=π2.\begin{aligned}2I &= \int_0^{\frac{\pi}{2}}\frac{\sin^4 x + \cos^4 x}{\sin^4 x + \cos^4 x}\,dx \\ &= \int_0^{\frac{\pi}{2}}1\,dx = \big[x\big]_0^{\frac{\pi}{2}} = \frac{\pi}{2}.\end{aligned}

    Hence I=π4≈0.7853982I = \frac{\pi}{4} \approx 0.7853982⁠.

    The two fractions have the same denominator, so their numerators add to the denominator itself and the quotient is 1 (allowed because the denominator is never 0, Step 1). Integrating 1 over an interval gives its length, π2\frac{\pi}{2}⁠.
    ∫1 dx=x+C\int 1\,dx = x + C (standard formula (i) with n=0n = 0⁠). Lesson: the fundamental theorem
  4. The picture

    π/4 π/2 1/2 1 x y (π/4, 1/2) area I area I sin⁴x / (sin⁴x + cos⁴x) dashed: cos⁴x / (…)
    The blue curve y=sin⁡4xsin⁡4x+cos⁡4xy = \frac{\sin^4 x}{\sin^4 x + \cos^4 x} rises from 0 to 1 through (π4,12)\left(\frac{\pi}{4}, \frac12\right)⁠; the region under it is shaded. The dashed gold curve cos⁡4xsin⁡4x+cos⁡4x\frac{\cos^4 x}{\sin^4 x + \cos^4 x} is its mirror image in x=π4x = \frac{\pi}{4} and has the same area I. At every xx the two heights add to 1, so the two areas fill the rectangle of area π2\frac{\pi}{2}⁠.
    The blue curve is symmetric about the point (π4,12)\left(\frac{\pi}{4}, \frac12\right)⁠: the unshaded part of the rectangle above it is a half-turn copy of the shaded part. So the shaded region is exactly half of the π2\frac{\pi}{2} by 1 rectangle.
    Mirror images have equal areas. Basics: symmetry and mirror images
Result

∫0π2sin⁡4xsin⁡4x+cos⁡4x dx=π4≈0.7853982,\int_0^{\frac{\pi}{2}}\frac{\sin^4 x}{\sin^4 x + \cos^4 x}\,dx = \frac{\pi}{4} \approx 0.7853982, the same as the book's answer.

Check it with numbers

A numerical integration over [0,π2]\left[0, \frac{\pi}{2}\right] gives 0.7853982, which is π4\frac{\pi}{4}⁠. At the sample point x=0.3x = 0.3⁠, the integrand is about 0.0090733 and its partner cos⁡4sin⁡4+cos⁡4\frac{\cos^4}{\sin^4 + \cos^4} is about 0.9909267: they add to 1.

Common mistakes
  1. Trying to find an antiderivative. It is possible but long; P4 gives the value in three lines.
  2. Changing only the numerator. P4 replaces xx by π2−x\frac{\pi}{2} - x everywhere, in the denominator too.
  3. Writing 2I=π22I = \frac{\pi}{2}⁠, so I=πI = \pi⁠. Divide by 2: I=π4I = \frac{\pi}{4}⁠.
What to take away
  1. For ∫0π/2f(sin⁡x)f(sin⁡x)+f(cos⁡x) dx\int_0^{\pi/2}\frac{f(\sin x)}{f(\sin x) + f(\cos x)}\,dx the answer is π4\frac{\pi}{4} by the same three lines, whenever ff is continuous and the denominator is never 0 on the interval.
  2. P4 with a=π2a = \frac{\pi}{2} swaps sin⁡\sin and cos⁡\cos⁠; adding the two forms often cancels the difficult part.
  3. Label the two forms (1) and (2) so that "adding (1) and (2)" is clear.

Every fact used, and where it comes from

FactUsed inSource
sin⁡4x+cos⁡4x=1−12sin⁡22x\sin^4 x + \cos^4 x = 1 - \frac12\sin^2 2xStep 1Identities sin⁡2+cos⁡2=1\sin^2 + \cos^2 = 1⁠, sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x
P4: ∫0af(x) dx=∫0af(a−x) dx\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dxStep 2Section 7.10 (Lesson)
sin⁡(π2−x)=cos⁡x\sin(\frac{\pi}{2} - x) = \cos x⁠, cos⁡(π2−x)=sin⁡x\cos(\frac{\pi}{2} - x) = \sin xStep 2Trigonometry (Basics)
∫abf+∫abg=∫ab(f+g)\int_a^b f + \int_a^b g = \int_a^b(f + g)Step 3Linearity of integrals
∫abf=F(b)−F(a)\int_a^b f = F(b) - F(a)Step 3Theorem 2, Section 7.8.3 (Lesson)
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 →