Solveeit Logo

Question

Question: What is the particular solution of the differential equation \(y' + y\tan x = \sin \left( {2x} \righ...

What is the particular solution of the differential equation y+ytanx=sin(2x)y' + y\tan x = \sin \left( {2x} \right) where y(0)=1y\left( 0 \right) = 1?

Explanation

Solution

Here, in the given question, we are given differential equation y+ytanx=sin(2x)y' + y\tan x = \sin \left( {2x} \right) where y(0)=1y\left( 0 \right) = 1 and we need to find the particular solution of the differential equation. To find the answer to the given equation, first we have to observe the type of given differential equation, which is the linear differential equation dydx+Py=Q\dfrac{{dy}}{{dx}} + Py = Q. Then we will find its integrating factor as ePdx{e^{\int {Pdx} }} and find a particular solution of the equation by formula by substituting constant.

Complete step by step answer:
We have, y+ytanx=sin(2x)y' + y\tan x = \sin \left( {2x} \right)
This can also be written as:
dydx+tanx.y=sin(2x).........(i)\dfrac{{dy}}{{dx}} + \tan x.y = \sin \left( {2x} \right).........\left( i \right)
This is a first order linear differential equation of the form:
dydx+Py=Q\dfrac{{dy}}{{dx}} + Py = Q
where PP and QQ are functions of xx.

This type of differential equations are solved when they are multiplied by a factor, which is called an integrating factor, because by multiplication of this factor the left hand side of the differential equation (i)\left( i \right) becomes the exact differential of some function.For the given equation,
y+tanx.y=sin(2x)y' + \tan x.y = \sin \left( {2x} \right), P=tanxP = \tan x and Q=sin(2x)Q = \sin \left( {2x} \right)
We will solve this using an integrating factor.
I.F.=ePdx\Rightarrow I.F. = {e^{\int {Pdx} }}

On substituting value of PP, we get
I.F.=etanxdx\Rightarrow I.F. = {e^{\int {\tan xdx} }}
As we know
I.F.=elogsecx\Rightarrow I.F. = {e^{\log \sec x}}
I.F.=secx\Rightarrow I.F. = \sec x
Multiplying both sides of (i)\left( i \right) by integrating factor (secx)\left( {\sec x} \right), we get
secxdydx+secxtanx.y=secxsin(2x)\Rightarrow \sec x\dfrac{{dy}}{{dx}} + \sec x\tan x.y = \sec x\sin \left( {2x} \right)
Integrating both sides with respect to xx, we get
y(secx)=(sin2x×secx)dx+C\Rightarrow y\left( {\sec x} \right) = \int {\left( {\sin 2x \times \sec x} \right)} dx + C [Using: y(I.F.)=(Q×I.F.)dx+Cy\left( {I.F.} \right) = \int {\left( {Q \times I.F.} \right)} dx + C]
As we know secx=1cosx\sec x = \dfrac{1}{{\cos x}} and sin2x=2sinxcosx\sin 2x = 2\sin x\cos x. Therefore, we get
y1cosx=1cosx(2sinxcosx)dx+C\Rightarrow y\dfrac{1}{{\cos x}} = \int {\dfrac{1}{{\cos x}}\left( {2\sin x\cos x} \right)dx} + C

On cancelling out common terms on RHS, we get
ycosx=2sinxdx\Rightarrow \dfrac{y}{{\cos x}} = \int {2\sin xdx}
ycosx=2sinxdx\Rightarrow \dfrac{y}{{\cos x}} = 2\int {\sin xdx}
As we know sinx=cosx+C\int {\sin x = - \cos x + C} . Therefore, we get
ycosx=2cosx+C\Rightarrow \dfrac{y}{{\cos x}} = - 2\cos x + C
On cross multiplication, we get
y=2cos2x+Ccosx\Rightarrow y = - 2{\cos ^2}x + C\cos x
Which is the general solution. Then using y(0)=1y\left( 0 \right) = 1 we can find CC as:
1=2cos20+Ccos0\Rightarrow 1 = - 2{\cos ^2}0 + C\cos 0
As we know cos0=1\cos 0 = 1. Therefore, we get
1=2+C\Rightarrow 1 = - 2 + C
C=3\Rightarrow C = 3
Hence, y=2cos2x+3cosxy = - 2{\cos ^2}x + 3\cos x.

Therefore, the particular solution of the differential equation y+ytanx=sin(2x)y' + y\tan x = \sin \left( {2x} \right) where y(0)=1y\left( 0 \right) = 1 is y=2cos2x+3cosxy = - 2{\cos ^2}x + 3\cos x.

Note: While solving differential equations, firstly rearrange the differential equation in such a way that you can get a differential equation in some known form such as variable separable, homogeneous or linear differential equation. While finding a particular solution, finding the value of constant very accurately as a particular solution is a unique solution.