Solveeit Logo

Question

Question: Find the particular solution of the differential equation: \[\dfrac{{dy}}{{dx}} = - \dfrac{{x + y\...

Find the particular solution of the differential equation:
dydx=x+ycosx1+sinx\dfrac{{dy}}{{dx}} = - \dfrac{{x + y\cos x}}{{1 + \sin x}} given that y=1y = 1, when x=0x = 0

Explanation

Solution

We are given a differential equation, whose particular solution has to be found. We do this by separating the term with purely xx function from the differential and mix of xx and yy function. Then we find a differential equation of form such that we have to find the integrating factor. We solve it further ahead using the formulas to solve this problem.
Formula used: The solution of differential equation of form dydx+yP(x)=Q(x)\dfrac{{dy}}{{dx}} + yP(x) = Q(x) is given by
y×IF=IF×Q(x)dxy \times IF = \int {IF \times Q(x)dx} , where IFIF is the integrating factor given as, IF=eP(x)dxIF = {e^{\int {P(x)dx} }}.

Complete step-by-step solution:
WE are given the differential equation as,
dydx=x+ycosx1+sinx\dfrac{{dy}}{{dx}} = - \dfrac{{x + y\cos x}}{{1 + \sin x}}
We now separate the term with purely xx function from the differential and mix of xx and yy function. dydx+ycosx1+sinx=x1+sinx \Rightarrow \dfrac{{dy}}{{dx}} + \dfrac{{y\cos x}}{{1 + \sin x}} = - \dfrac{x}{{1 + \sin x}}
This is of form,
dydx+yP(x)=Q(x)\dfrac{{dy}}{{dx}} + yP(x) = Q(x)
So solve such differential equations, find the integrating factor IFIF of P(x)P(x). We find it as, IF=eP(x)dxIF = {e^{\int {P(x)dx} }}.Using this ,

IF=ecosx1+sinxdx IF=eln(1+sinx) IF=1+sinx  \Rightarrow IF = {e^{\int { \dfrac{{\cos x}}{{1 + \sin x}}dx} }} \\\ \Rightarrow IF = {e^{\ln (1 + \sin x)}} \\\ \Rightarrow IF = 1 + \sin x \\\

Hence, we get the integrating factor as1+sinx1 + \sin x. Now, we know that solution of a differential equation of kind dydx+yP(x)=Q(x)\dfrac{{dy}}{{dx}} + yP(x) = Q(x) is,
y×IF=IF×Q(x)dxy \times IF = \int {IF \times Q(x)dx}
Using this solution we move ahead as,

y×(1+sinx)=(1+sinx)(x1+sinx)dx y(1+sinx)=xdx y(1+sinx)=x22+c y=x22(1+sinx)+c1+sinx(1)  \Rightarrow y \times (1 + \sin x) = \int {(1 + \sin x)} \left( { - \dfrac{x}{{1 + \sin x}}} \right)dx \\\ \Rightarrow y(1 + \sin x) = - \int {xdx} \\\ \Rightarrow y(1 + \sin x) = - \dfrac{{{x^2}}}{2} + c \\\ \Rightarrow y = - \dfrac{{{x^2}}}{{2(1 + \sin x)}} + \dfrac{c}{{1 + \sin x}}\,\,\,\, \to (1) \\\

Where cc is a constant.
Now to find the particular solution when we are given that y=1y = 1, when x=0x = 0,
Putting these values in equation (1)(1)

1=022(1+sin0)+c1+sin0 1=c  \Rightarrow 1 = - \dfrac{{{0^2}}}{{2(1 + \sin 0)}} + \dfrac{c}{{1 + \sin 0}} \\\ \Rightarrow 1 = c \\\

We get the value of constant as 11. Putting this in equation (1)(1) we get the particular solution as,
y=x22(1+sinx)+11+sinxy = - \dfrac{{{x^2}}}{{2(1 + \sin x)}} + \dfrac{1}{{1 + \sin x}}\,

Note: We have to be careful in finding the form of the differential equation and then solving it as missing of finding its form may lead to more lengthy and complex calculations. When we once find the form of the given differential equation, the rest of the process becomes easy if we remember the formulas related to it.