Find the solution of the integral \[\int_{ - \pi }^\pi {{{\left( {\cos ax - \sin bx} \right)}^2}dx} \] where \[a\] and \[b\] are integers. Choose the correct option.
a. \[ - \pi \]
b. 0
c. \[\pi \]
d. \[2\pi \]
Answer
297.3k+ views
Hint—We will use the property \[{\left( {a - b} \right)^2} = {a^2} + {b^2} - 2ab\] and then integrate each value separately and applying the limits also from \[ - \pi \] to \[\pi \]. The value of the integral \[2\cos ax\sin bx = 0\] as \[\cos ax\sin bx\] is an odd function in the interval \[\left[ { - \pi ,\pi } \right]\].
Complete step-by-step solution
Consider the given integral,
\[I = \int_{ - \pi }^\pi {{{\left( {\cos ax - \sin bx} \right)}^2}dx} \]
Use the property \[{\left( {a - b} \right)^2} = {a^2} + {b^2} - 2ab\] to expand the given function,
We get,
\[
I = \int_{ - \pi }^\pi {\left( {{{\cos }^2}ax + {{\sin }^2}bx - 2\cos ax\sin bx} \right)dx} \\
= \int_{ - \pi }^\pi {{{\cos }^2}axdx} + \int_{ - \pi }^\pi {{{\sin }^2}bxdx} - \int_{ - \pi }^\pi {2\cos ax\sin bxdx} \\
\]
Here, we know that \[\cos ax\sin bx\] is an odd function in the interval \[\left[ { - \pi ,\pi } \right]\].
Thus, from this we get, \[2\cos ax\sin bx = 0\].
Hence, put the value in the integral,
\[I = \int_{ - \pi }^\pi {{{\cos }^2}axdx} + \int_{ - \pi }^\pi {{{\sin }^2}bxdx} - 0\]
Since, we know that \[{\cos ^2}ax\] and \[{\sin ^2}bx\] are even functions in the interval so, we will change the interval from \[\left[ { - \pi ,\pi } \right]\] to \[\left[ {0,\pi } \right]\] and multiply the integral by 2.
Thus, we get,
\[I = \int_0^\pi {2{{\cos }^2}axdx} + \int_0^\pi {2{{\sin }^2}bxdx} \]
Further, we know that, \[{\cos ^2}ax = \dfrac{{1 + \cos 2ax}}{2}\] and \[{\sin ^2}bx = \dfrac{{1 - \cos 2bx}}{2}\]
Thus, put the values in the integral to simply further.
Thus, we get,
\[
I = \int_0^\pi {\left( {1 + \cos 2ax} \right)dx} + \int_0^\pi {\left( {1 - \cos 2bx} \right)dx} \\
= \int_0^\pi {\left( {1 + \cos 2ax + 1 - \cos 2bx} \right)dx} \\
= \int_0^\pi {\left( {2 + \cos 2ax - \cos 2bx} \right)dx} \\
\]
Now, we will integrate each part individually in the integral.
Thus,
\[
I = 2\left[ x \right]_0^\pi + \left[ {\dfrac{{\sin 2ax}}{{2a}}} \right]_0^\pi - \left[ {\dfrac{{\sin 2bx}}{{2b}}} \right]_0^\pi \\
= 2\left( {\pi - 0} \right) + \left( {\dfrac{{\sin 2a\pi }}{{2a}} - \dfrac{{\sin 2a\left( 0 \right)}}{{2a}}} \right) - \left( {\dfrac{{\sin 2b\pi }}{{2b}} - \dfrac{{\sin 2b\left( 0 \right)}}{{2b}}} \right) \\
= 2\pi + \dfrac{{\sin 2a\pi }}{{2a}} - \dfrac{{\sin 2b\pi }}{{2b}} \\
\]
Now, as we know that \[\sin n\pi = 0\]
Here, \[\sin 2a\pi = 0\] and \[\sin 2b\pi = 0\] as \[a\] and \[b\] are integers.
Thus, we get that,
\[I = 2\pi \]
The option (d) is the correct option, as the solution of the integral is \[I = 2\pi \].
Note: The properties \[{\cos ^2}x = \dfrac{{1 + \cos 2x}}{2}\] and \[{\sin ^2}x = \dfrac{{1 - \cos 2x}}{2}\] makes the calculation of the integral easier. We must know that the function \[{\cos ^2}x\] and \[{\sin ^2}x\] are even functions and the function \[\cos x\sin x\] forms an odd function. Use the fact that \[\sin n\pi = 0\] for all the values of \[n\].
Complete step-by-step solution
Consider the given integral,
\[I = \int_{ - \pi }^\pi {{{\left( {\cos ax - \sin bx} \right)}^2}dx} \]
Use the property \[{\left( {a - b} \right)^2} = {a^2} + {b^2} - 2ab\] to expand the given function,
We get,
\[
I = \int_{ - \pi }^\pi {\left( {{{\cos }^2}ax + {{\sin }^2}bx - 2\cos ax\sin bx} \right)dx} \\
= \int_{ - \pi }^\pi {{{\cos }^2}axdx} + \int_{ - \pi }^\pi {{{\sin }^2}bxdx} - \int_{ - \pi }^\pi {2\cos ax\sin bxdx} \\
\]
Here, we know that \[\cos ax\sin bx\] is an odd function in the interval \[\left[ { - \pi ,\pi } \right]\].
Thus, from this we get, \[2\cos ax\sin bx = 0\].
Hence, put the value in the integral,
\[I = \int_{ - \pi }^\pi {{{\cos }^2}axdx} + \int_{ - \pi }^\pi {{{\sin }^2}bxdx} - 0\]
Since, we know that \[{\cos ^2}ax\] and \[{\sin ^2}bx\] are even functions in the interval so, we will change the interval from \[\left[ { - \pi ,\pi } \right]\] to \[\left[ {0,\pi } \right]\] and multiply the integral by 2.
Thus, we get,
\[I = \int_0^\pi {2{{\cos }^2}axdx} + \int_0^\pi {2{{\sin }^2}bxdx} \]
Further, we know that, \[{\cos ^2}ax = \dfrac{{1 + \cos 2ax}}{2}\] and \[{\sin ^2}bx = \dfrac{{1 - \cos 2bx}}{2}\]
Thus, put the values in the integral to simply further.
Thus, we get,
\[
I = \int_0^\pi {\left( {1 + \cos 2ax} \right)dx} + \int_0^\pi {\left( {1 - \cos 2bx} \right)dx} \\
= \int_0^\pi {\left( {1 + \cos 2ax + 1 - \cos 2bx} \right)dx} \\
= \int_0^\pi {\left( {2 + \cos 2ax - \cos 2bx} \right)dx} \\
\]
Now, we will integrate each part individually in the integral.
Thus,
\[
I = 2\left[ x \right]_0^\pi + \left[ {\dfrac{{\sin 2ax}}{{2a}}} \right]_0^\pi - \left[ {\dfrac{{\sin 2bx}}{{2b}}} \right]_0^\pi \\
= 2\left( {\pi - 0} \right) + \left( {\dfrac{{\sin 2a\pi }}{{2a}} - \dfrac{{\sin 2a\left( 0 \right)}}{{2a}}} \right) - \left( {\dfrac{{\sin 2b\pi }}{{2b}} - \dfrac{{\sin 2b\left( 0 \right)}}{{2b}}} \right) \\
= 2\pi + \dfrac{{\sin 2a\pi }}{{2a}} - \dfrac{{\sin 2b\pi }}{{2b}} \\
\]
Now, as we know that \[\sin n\pi = 0\]
Here, \[\sin 2a\pi = 0\] and \[\sin 2b\pi = 0\] as \[a\] and \[b\] are integers.
Thus, we get that,
\[I = 2\pi \]
The option (d) is the correct option, as the solution of the integral is \[I = 2\pi \].
Note: The properties \[{\cos ^2}x = \dfrac{{1 + \cos 2x}}{2}\] and \[{\sin ^2}x = \dfrac{{1 - \cos 2x}}{2}\] makes the calculation of the integral easier. We must know that the function \[{\cos ^2}x\] and \[{\sin ^2}x\] are even functions and the function \[\cos x\sin x\] forms an odd function. Use the fact that \[\sin n\pi = 0\] for all the values of \[n\].
Recently Updated Pages
Geometry of Complex Numbers Explained

JEE Main 2023 (February 1st Shift 2) Physics Question Paper with Answer Key

JEE Main 2023 (February 1st Shift 1) Maths Question Paper with Answer Key

JEE Main 2023 (February 1st Shift 2) Chemistry Question Paper with Answer Key

Hydrogen and Its Type Important Concepts and Tips for JEE Exam Preparation

JEE Main 2023 (February 1st Shift 1) Physics Question Paper with Answer Key

Trending doubts
JEE Main 2026: Exam Dates, Session 2 Updates, City Slip, Admit Card & Latest News

Understanding the Electric Field of a Uniformly Charged Ring

Understanding Atomic Structure for Beginners

Derivation of Equation of Trajectory Explained for Students

Electron Gain Enthalpy and Electron Affinity Explained

How to Convert a Galvanometer into an Ammeter or Voltmeter

Other Pages
JEE Advanced Percentile vs Marks 2026: JEE Main Cutoff, AIR & IIT Admission Guide

JEE Advanced 2026 Notification Out with Exam Date, Registration (Extended), Syllabus and More

JEE Advanced Weightage Chapter Wise 2026 for Physics, Chemistry, and Mathematics

Understanding Geostationary and Geosynchronous Satellites

Hybridisation in Chemistry – Concept, Types & Applications

Understanding the Angle of Deviation in a Prism

