Question
Question: If \[\left( {2 + \sin x} \right).\dfrac{{dy}}{{dx}} + \left( {y + 1} \right)\cos x = 0,\,\,and\,\,y\...
If (2+sinx).dxdy+(y+1)cosx=0,andy(0)=1, then y(2π) is equal to
A. 31
B. −31
C. −32
D. 34
Solution
y(0)=1 means that at the point 0 the value of the function is one and we have to find the value of the function at 2π. The given equation is such that we have to convert it into a partial differential equation from. Remember that integration of x1dx is log∣x∣ and differentiation of cosxissinx and sinxis cosx .
Ex: dxdsinx=cosx
The log function has many different rules. One can write (logm+logn) as log mn and log m - log n as lognm similar log x to the house power is power x log x.
Ex: logx2=2logx
Complete step by step solution:
Given: The given differential equation is
Further performing calculation, we get
⇒2+sinx.dy=−(y+1).cosx.dx ⇒−(y+1)1dy=2+sinxcosx.dx ⇒y+11.dy+2+sinxcosx.dx=0Now performing integration i.e. integrating both sides, we get
∫y+11dy+∫2+sinxcosx=dx=0........(i)
Let 2+sinx=t
∴Differentiating with respect to x we get
Now, putting the value of cosxdx=dt and 2+sinx=t in the equation (i) we get
log∣1+y∣+C1+∫tdt=0 ⇒log∣1+y∣+C1+log∣t∣+C2=0Putting back the value of t.
⇒log∣1+y∣+log∣2+sinx∣=−(C1+C2)
Now, let −(C1+C2)=logC thus, the equation becomes.
log∣1+y∣+log∣2+sinx∣=logC
Now, according to question y(0)=1 this means that y=1when x=0, thus putting these values we get
log(2)+log∣2∣=logC
\left( {y + 1} \right) = \dfrac{4}{3} \\
y = \dfrac{4}{3} - 1 \\