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) where y(0)=1?
Solution
Here, in the given question, we are given differential equation y′+ytanx=sin(2x) where y(0)=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 dxdy+Py=Q. Then we will find its integrating factor as e∫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)
This can also be written as:
dxdy+tanx.y=sin(2x).........(i)
This is a first order linear differential equation of the form:
dxdy+Py=Q
where P and Q are functions of x.
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) becomes the exact differential of some function.For the given equation,
y′+tanx.y=sin(2x), P=tanx and Q=sin(2x)
We will solve this using an integrating factor.
⇒I.F.=e∫Pdx
On substituting value of P, we get
⇒I.F.=e∫tanxdx
As we know
⇒I.F.=elogsecx
⇒I.F.=secx
Multiplying both sides of (i) by integrating factor (secx), we get
⇒secxdxdy+secxtanx.y=secxsin(2x)
Integrating both sides with respect to x, we get
⇒y(secx)=∫(sin2x×secx)dx+C [Using: y(I.F.)=∫(Q×I.F.)dx+C]
As we know secx=cosx1 and sin2x=2sinxcosx. Therefore, we get
⇒ycosx1=∫cosx1(2sinxcosx)dx+C
On cancelling out common terms on RHS, we get
⇒cosxy=∫2sinxdx
⇒cosxy=2∫sinxdx
As we know ∫sinx=−cosx+C. Therefore, we get
⇒cosxy=−2cosx+C
On cross multiplication, we get
⇒y=−2cos2x+Ccosx
Which is the general solution. Then using y(0)=1 we can find C as:
⇒1=−2cos20+Ccos0
As we know cos0=1. Therefore, we get
⇒1=−2+C
⇒C=3
Hence, y=−2cos2x+3cosx.
Therefore, the particular solution of the differential equation y′+ytanx=sin(2x) where y(0)=1 is y=−2cos2x+3cosx.
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.