Question
Question: If \[\;y = y(x)\] is the solution of the differential equation \[\,\left( {\dfrac{{2 + \sin x}}{{y +...
If y=y(x) is the solution of the differential equation (y+12+sinx)dxdy+cosx=0.
With y(0)=1 then y(\dfrac{\pi} {2} )\;\\_\\_.
Solution
Hint: Separate dy and dx then integrate the equation. We use the variable separable method.
Given :-
(y+12+sinx)dxdy+cosx=0
After transposing we get,
(y+11)dy=−(2+sinxcosx)dx
On integrating we get,
∫(y+11)dy=−∫(2+sinxcosx)dx...(i)
First we will solve this,
∫(2+sinxcosx)dx
Let sinx=t
Then cosxdx=dt
From the above two equations the integral becomes,
∫(2+t1)dt=ln(2+t)+lnc1
On putting the value of t,
log(2+t)=log(2+sinx)
On putting these values in equation (i), we get equation (i) as ,
ln(y+1)=−ln(2+sinx)+lnc
Then we got an equation as,
y=2+sinxc−1......(lna−lnb=lnba)
From the question,
y(0)=1
So,
The equation is ,
y=2+sinx4−1
We have asked to find y(2π),
So,
y(2π)=2+14−1=31......(sin(2π)=1)
Hence the correct option is A.
Note: In these types of questions first open the integral by variable separation method then when the equation is obtained, get the value of constant from the information provided in the question then after getting completely , get the answer which is asked in question by putting the value of constant.