Question #71893

dy/dx+ycotx=5e^cosx

Expert's answer

Answer on Question #71893 – Math – Differential Equations

Question

dy/dx+ycotx=5ecosx\mathrm{dy/dx+ycotx=5e^{\wedge}cosx}

Solution

The given equation


dydx+ycotx=5ecosx\frac{dy}{dx} + y \cot x = 5 e^{\cos x}


is a linear differential equation of the form


dydx+P(x)y=Q(x),\frac{dy}{dx} + P(x)y = Q(x),


where P(x)=cotxP(x) = \cot x, Q(x)=5ecosxQ(x) = 5e^{\cos x}.

To solve this equation we find the integrating factor


I(x)=eP(x)dx=ecotxdxI(x) = e^{\int P(x)dx} = e^{\int \cot x \, dx}


Calculate the integral in the exponent:


cotxdx=cosxsinxdx=d(sinx)sinx=lnsinx\int \cot x \, dx = \int \frac{\cos x}{\sin x} \, dx = \int \frac{d(\sin x)}{\sin x} = \ln |\sin x|


So the integrating factor is


I(x)=elnsinx=sinxI(x) = e^{\ln |\sin x|} = \sin x


Multiply both sides of the given equation by I(x)=sinxI(x) = \sin x:


sinxdydx+(sinxcotx)y=5sinxecosx\sin x \frac{dy}{dx} + (\sin x \cdot \cot x)y = 5 \sin x e^{\cos x}sinxdydx+(cosx)y=5sinxecosx\sin x \frac{dy}{dx} + (\cos x)y = 5 \sin x e^{\cos x}


Using the Product Rule we get


ddx(ysinx)=5sinxecosx\frac{d}{dx}(y \sin x) = 5 \sin x e^{\cos x}


Integrate both sides of this equation:


ddx(ysinx)dx=5sinxecosxdx,\int \frac{d}{dx}(y \sin x) \, dx = \int 5 \sin x e^{\cos x} \, dx,ysinx=5ecosxd(cosx)=5ecosxd(cosx),y \sin x = 5 \int e^{\cos x} \, d(-\cos x) = -5 \int e^{\cos x} \, d(\cos x),ysinx=5ecosx+c,y \sin x = -5 e^{\cos x} + c,


where cc is an integration constant.

Dividing both sides by sinx\sin x we get the general solution of the original equation:


y=(5ecosx+c)cscx.y = (-5 e^{\cos x} + c) \csc x.


Answer: y=(5ecosx+c)cscxy = (-5 e^{\cos x} + c) \csc x.

Answer provided by https://www.AssignmentExpert.com

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS