Question #68322

(1) obtain the solution for the initial value problem dy/dx+(cotx)y=xcscx,y(pi/2)=1

(2)solve the differential equation dy/dx=x(1+y^2)

(3) solve the differential equation dy/dx+(cotx)y=xcscx

Expert's answer

Answer on Question #68322 - Math - Differential Equations

Question

(1) Obtain the solution for the initial value problem dy/dx+(cotx)y=xcsx,y(pi/2)=1\mathrm{dy} / \mathrm{dx} + (\mathrm{cotx})\mathrm{y} = \mathrm{xcsx},\mathrm{y}(\mathrm{pi} / 2) = 1

(2) Solve the differential equation dy/dx=x(1+y2)\mathrm{dy} / \mathrm{dx} = \mathrm{x}(1 + \mathrm{y}^{\wedge}2)

(3) Solve the differential equation dy/dx+(cotx)y=xcsx\mathrm{dy} / \mathrm{dx} + (\mathrm{cotx})\mathrm{y} = \mathrm{xcsx}

Solution

Q1. We have the initial value problem


dydx+(cotx)y=xcscxy(π2)=1\frac {d y}{d x} + (\cot x) y = x \csc x \quad y \left(\frac {\pi}{2}\right) = 1


First we find the general solution of the equation, i.e. solve the problem


dydx+(cotx)y=xcscx\frac {d y}{d x} + (\cot x) y = x \csc x


This equation is a linear equation of the form


dydx+P(x)y=Q(x)\frac {d y}{d x} + P (x) y = Q (x)


where


P(x)=cotx,Q(x)=xcscxP (x) = \cot x, Q (x) = x \csc x


To solve this differential equation, we need to multiply both sides by the integrating factor I(x)I(x) , where


I(x)=eP(x)dx=ecotxdx| I (x) | = e ^ {\int P (x) d x} = e ^ {\int \cot x d x}


and integrate both sides.

Find integral


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


We are looking for a particular integrating factor, so we take C=0C = 0 . Then we get


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


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

sinxdydx+(sinxcotx)y=x(cscxsinx)\sin x \frac {d y}{d x} + (\sin x \cdot \cot x) y = x (\csc x \cdot \sin x)


or


sinxdydx+(cosx)y=x\sin x \frac {d y}{d x} + (\cos x) y = x


and so we can rewrite the equation as


ddx(ysinx)=x\frac {d}{d x} (y \cdot \sin x) = x


Integrate both sides of this equation we get the general solution


ddx(ysinx)dx=xdxysinx=x22+c\int \frac {d}{d x} (y \cdot \sin x) d x = \int x d x \Rightarrow y \cdot \sin x = \frac {x ^ {2}}{2} + c


where cc is constant defined by the initial conditions.

Now we find cc and solve the initial value problem. Substitute the initial condition


y(π2)=1y \left(\frac {\pi}{2}\right) = 1


into the general solution:


1sin(π2)=12(π2)2+c1 \cdot \sin \left(\frac {\pi}{2}\right) = \frac {1}{2} \left(\frac {\pi}{2}\right) ^ {2} + c


or


1=π28+cc=1π281 = \frac {\pi^ {2}}{8} + c \Rightarrow c = 1 - \frac {\pi^ {2}}{8}


Then we obtain the solution for the initial value problem


ysinx=x22+1π28y \cdot \sin x = \frac {x ^ {2}}{2} + 1 - \frac {\pi^ {2}}{8}


or dividing both sides by sinx\sin x ,


y=(x22+1π28)cscxy = \left(\frac {x ^ {2}}{2} + 1 - \frac {\pi^ {2}}{8}\right) \csc x


Answer: the solution for the initial value problem is


y=(x22+1π28)cscxy = \left(\frac {x ^ {2}}{2} + 1 - \frac {\pi^ {2}}{8}\right) \csc x


Q2. We have the equation


dydx=x(1+y2)\frac {d y}{d x} = x (1 + y ^ {2})


This equation is the separable equation, i.e. it is a first-order differential equation in which the expression for dydx\frac{dy}{dx} can be written in the form


dydx=f(x)g(y)\frac {d y}{d x} = f (x) g (y)


For this problem


f(x)=x,g(y)=(1+y2)f (x) = x, \quad g (y) = (1 + y ^ {2})


To solve this equation we rewrite it in the differential form


dy=x(1+y2)dxd y = x (1 + y ^ {2}) d x


or, dividing both sides by 1+y21 + y^{2}

dy(1+y2)=xdx\frac {d y}{(1 + y ^ {2})} = x d x


Then we integrate both sides of this equation:


dy(1+y2)=xdx\int \frac {d y}{(1 + y ^ {2})} = \int x d x


We get


arctany=x22+c\arctan y = \frac {x ^ {2}}{2} + c


or


y=tan(x22+c),y = \tan \left(\frac {x ^ {2}}{2} + c\right),


where cc is constant

Answer: The solution of the given differential equation is


y=tan(x22+c)y = \tan \left(\frac {x ^ {2}}{2} + c\right)


Q3. We have the equation


dydx+(cotx)y=xcscx\frac{dy}{dx} + (\cot x)y = x \csc x


The general solution of this equation we obtained by solving problem 1:


ysinx=x22+cy \cdot \sin x = \frac{x^2}{2} + c


or dividing both sides by sinx\sin x,


y=(x22+c)cscxy = \left(\frac{x^2}{2} + c\right) \csc x


Answer: The solution of the given differential equation is


y=(x22+c)cscxy = \left(\frac{x^2}{2} + c\right) \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