Question #50899

5. Apply the method of variations of parameters to solve the following differential equations:

a) x^2 y'' + x y' - y = x^2 e^x

b) y'' + a^2 y = cosec ax

c) Solve the equation d^2 y / d x^2 - cot x dy/dx - sin^2 xy = cos x - cos^3 x by changing the independent
variable.

Expert's answer

Answer on Question #50899-Math-Differential Calculus-Equations

Apply the method of variations of parameters to solve the following differential equations:

a) x2y+xyy=x2exx^{2}y^{\prime \prime} + xy^{\prime} - y = x^{2}e^{x}

b) y+a2y=cosecaxy^{\prime \prime} + a^{2}y = \text{cosec} ax

c) Solve the equation d2ydx2cotxdydxsin2xy=cosxcos3x\frac{d^2y}{dx^2} - \cot x\frac{dy}{dx} - \sin^2 xy = \cos x - \cos^3 x by changing the independent variable.

Solution

a) x2y+xyy=0x^{2}y^{\prime \prime} + xy^{\prime} - y = 0

y=xnn(n1)+n1=0n=±1.y=c1x+c21x.\begin{array}{l} y = x^{n} \rightarrow n(n - 1) + n - 1 = 0 \rightarrow n = \pm 1. \\ y = c_{1}x + c_{2}\frac{1}{x}. \end{array}


The Wronskian is given by


W=[x1x11x2]=(1x+1x)=2x0.W = \begin{bmatrix} x & \frac{1}{x} \\ 1 & -\frac{1}{x^{2}} \end{bmatrix} = -\left(\frac{1}{x} + \frac{1}{x}\right) = -\frac{2}{x} \neq 0.


We seek the solution in the form y=y1v1+y2v2y = y_{1}v_{1} + y_{2}v_{2}

v1=(y2RW)dx=1xx2ex2xdx=ex2(x22x+2)+c1.v2=(y1RW)dx=xx2ex2xdx=ex2(x44x3+12x224x+24)+c2.\begin{array}{l} v_{1} = \int \left(-\frac{y_{2}R}{W}\right) dx = -\int \frac{\frac{1}{x} \cdot x^{2} e^{x}}{-\frac{2}{x}} dx = \frac{e^{x}}{2} (x^{2} - 2x + 2) + c_{1}. \\ v_{2} = \int \left(\frac{y_{1}R}{W}\right) dx = \int \frac{x \cdot x^{2} e^{x}}{-\frac{2}{x}} dx = -\frac{e^{x}}{2} (x^{4} - 4x^{3} + 12x^{2} - 24x + 24) + c_{2}. \end{array}


So,


y=x[ex2(x22x+2)+c1]+1x[ex2(x44x3+12x224x+24)+c2].y=c1x+c21x+ex[x25x+1212x]\begin{array}{l} y = x \left[ \frac{e^{x}}{2} (x^{2} - 2x + 2) + c_{1} \right] + \frac{1}{x} \left[ -\frac{e^{x}}{2} (x^{4} - 4x^{3} + 12x^{2} - 24x + 24) + c_{2} \right]. \\ y = c_{1}x + c_{2}\frac{1}{x} + e^{x} \left[ x^{2} - 5x + 12 - \frac{12}{x} \right] \end{array}


b) y+a2y=0y^{\prime \prime} + a^{2}y = 0

y=c2cosax+c1sinax.y = c_{2}\cos ax + c_{1}\sin ax.


The Wronskian is given by


W=[sinaxcosaxacosaxasinax]=a(sin2ax+cos2ax)=a0.W = \begin{bmatrix} \sin ax & \cos ax \\ acos ax & -asin ax \end{bmatrix} = -a(\sin^{2} ax + \cos^{2} ax) = -a \neq 0.


We seek the solution in the form y=y1v1+y2v2y = y_{1}v_{1} + y_{2}v_{2}

v1=(y2RW)dx=cosaxcosecaxadx=1a2lnsinax+c1.v_{1} = \int \left(-\frac{y_{2}R}{W}\right) dx = -\int \frac{\cos ax \cdot \text{cosec} ax}{-a} dx = \frac{1}{a^{2}} \ln |\sin ax| + c_{1}.v2=(y1RW)dx=sinaxcscaxadx=xa+c2.v _ {2} = \int \left(\frac {y _ {1} R}{W}\right) d x = \int \frac {\sin a x \cdot \csc a x}{- a} d x = \frac {x}{a} + c _ {2}.


So,


y=cosax[xa+c2]+sinax[1a2lnsinax+c1].y = \cos a x \left[ \frac {x}{a} + c _ {2} \right] + \sin a x \left[ \frac {1}{a ^ {2}} \ln | \sin a x | + c _ {1} \right].


c) Comparing the given equation with y+Py+Qy=Ry'' + Py' + Qy = R, we have P=cotxP = -\cot x, Q=sin2xQ = -\sin^2 x and R=cosxcos3x=cosxsin2xR = \cos x - \cos^3 x = \cos x \sin^2 x. (1)

Choose zz such that (dzdx)2=sin2x\left(\frac{dz}{dx}\right)^2 = \sin^2 x and dzdx=sinx\frac{dz}{dx} = \sin x. (2)

Integrating, z=sinxdx=cosxz = \int \sin x \, dx = -\cos x. (3)

Now changing the independent variable from xx to zz by using relation (3), the given equation is transformed into


d2ydz2+P1dydz+Q1y=R1,\frac {d ^ {2} y}{d z ^ {2}} + P _ {1} \frac {d y}{d z} + Q _ {1} y = R _ {1},


where P1=d2zdx2+Pdzdx(dzdx)2=cosx+(cotx)(sinx)sin2x=0P_{1} = \frac{\frac{d^{2}z}{dx^{2}} + P\frac{dz}{dx}}{\left(\frac{dz}{dx}\right)^{2}} = \frac{\cos x + (-cot x)(\sin x)}{\sin^{2}x} = 0, by (1) and (2)


Q1=Q(dzdz)2=sin2xsin2x=1,R1=R(dzdz)2=cosxsin2xsin2x=cosx=z.Q _ {1} = \frac {Q}{\left(\frac {d z}{d z}\right) ^ {2}} = \frac {- \sin^ {2} x}{\sin^ {2} x} = - 1, R _ {1} = \frac {R}{\left(\frac {d z}{d z}\right) ^ {2}} = \frac {\cos x \sin^ {2} x}{\sin^ {2} x} = \cos x = - z.


From (5), d2ydz2y=z\frac{d^2y}{dz^2} - y = -z, or (D121)y=z(D_1^2 - 1)y = -z, where D1=ddzD_1 = \frac{d}{dz}.

Its auxiliary equation is m21=0m^2 - 1 = 0 so that m=±1m = \pm 1. General solution of (5) is


c1ez+c2ez=c1ecosx+c2ecosx, by (3)c _ {1} e ^ {z} + c _ {2} e ^ {- z} = c _ {1} e ^ {- \cos x} + c _ {2} e ^ {\cos x}, \text{ by (3)}


Partial solution is


1D121(z)=11D12z=(1D12)1z=(1+D12+)z=z=cosx.\frac {1}{D _ {1} ^ {2} - 1} (- z) = \frac {1}{1 - D _ {1} ^ {2}} z = (1 - D _ {1} ^ {2}) ^ {- 1} z = (1 + D _ {1} ^ {2} + \dots) z = z = - \cos x.


Hence the required solution is


y=c1ecosx+c2ecosxcosx.y = c _ {1} e ^ {- \cos x} + c _ {2} e ^ {\cos x} - \cos x.


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