We need to solve the given Differential equation
Solution:
Given equation is the Linear differential in the form dxdy+P(x)y=Q(x)
Now compare the given equation dxdy+y cotx=ecos x with the above form
P(x)=cot x
Q(x)=ecos x
Integrating factor = I.F = e∫P(x)dx=e∫cotx dx=eln sinx=sin x
The solution of the Linear equation is,
y×(I.F)=∫(I.F)×Q(x)dx+c
y×sinx=∫sinx ecosxdx+c
y sinx=−∫d(cosx) ecosxdx+c
y sinx=−ecosx+c
Now we need to find the c value by plugging x=2π and y=−2
−2(sin2π)=−ecos2π+c
−2=−e0+c−2=−1+cc=−1 Finally the solution is ,
y sinx=−ecosx−1
Comments