Question #70345

solve: d^2/dx^2 - 2 tan x dy/dx + 5y = e^x sec x

Expert's answer

Answer on Question #70345 - Math - Calculus

Solve: d2ydx2−2tan⁡xdydx+5y=exsec⁡x\frac{d^2y}{dx^2} - 2\tan x\frac{dy}{dx} + 5y = e^x\sec x

Solution

We are given


d2ydx2−2tan⁡xdydx+5y=exsec⁡x\frac{d^2y}{dx^2} - 2\tan x\frac{dy}{dx} + 5y = e^x\sec x


Multiply both sides of the equation by cos⁡x\cos x:


cos⁡xd2ydx2−2sin⁡xdydx+5ycos⁡x=ex\cos x \frac{d^2y}{dx^2} - 2\sin x \frac{dy}{dx} + 5y\cos x = e^x


We will be looking for a solution in the form


u(x)=y(x)cos⁡xu(x) = y(x)\cos x


Find dudx\frac{du}{dx} and d2udx2\frac{d^2u}{dx^2}

dudx=dydxcos⁡x−ysin⁡x\frac{du}{dx} = \frac{dy}{dx}\cos x - y\sin xd2udx2=ddx(dydxcos⁡x−ysin⁡x)=d2ydx2cos⁡x−dydxsin⁡x−dydxsin⁡x−ycos⁡x=d2ydx2cos⁡x−2dydxsin⁡x−ycos⁡x=d2ydx2cos⁡x−2dydxsin⁡x−u\frac{d^2u}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\cos x - y\sin x\right) = \frac{d^2y}{dx^2}\cos x - \frac{dy}{dx}\sin x - \frac{dy}{dx}\sin x - y\cos x = \frac{d^2y}{dx^2}\cos x - 2\frac{dy}{dx}\sin x - y\cos x = \frac{d^2y}{dx^2}\cos x - 2\frac{dy}{dx}\sin x - u


Thus, from the last equality we get


d2ydx2cos⁡x−2dydxsin⁡x=d2udx2+u\frac{d^2y}{dx^2}\cos x - 2\frac{dy}{dx}\sin x = \frac{d^2u}{dx^2} + u


Substitution of the (3) into the (1) yields


d2udx2+6u=ex\frac{d^2u}{dx^2} + 6u = e^x


Solve this equation. The general solution is the sum of the complementary solution and particular solution. Find the complementary solution by solving


d2udx2+6u=0\frac{d^2u}{dx^2} + 6u = 0


Substitute u=eλxu = e^{\lambda x}

d2dx2(eλx)+6eλx=0\frac{d^2}{dx^2}(e^{\lambda x}) + 6e^{\lambda x} = 0λ2eλx+6eλx=0⇒(λ2+6)eλx=0⇒λ2+6=0⇒λ2=−6⇒λ1=i6,λ2=−i6\lambda^2 e^{\lambda x} + 6e^{\lambda x} = 0 \Rightarrow (\lambda^2 + 6)e^{\lambda x} = 0 \Rightarrow \lambda^2 + 6 = 0 \Rightarrow \lambda^2 = -6 \Rightarrow \lambda_1 = i\sqrt{6}, \lambda_2 = -i\sqrt{6}


The obtained roots give u1(x)=c1ei6xu_{1}(x) = c_{1}e^{i\sqrt{6} x}, u2(x)=c2e−i6xu_{2}(x) = c_{2}e^{-i\sqrt{6} x} as solutions, where c1c_{1} and c2c_{2} are arbitrary constants. The general solution is the sum of u1u_{1} and u2u_{2}:


u(x)=u1(x)+u2(x)=c1ei6x+c2e−i6xu(x) = u_{1}(x) + u_{2}(x) = c_{1}e^{i\sqrt{6}x} + c_{2}e^{-i\sqrt{6}x}


Apply Euler's identity eα+iβ=eacos⁡β+ieasin⁡βe^{\alpha + i\beta} = e^{a}\cos\beta + i e^{a}\sin\beta

u(x)=c1ei6x+c2e−i6x=c1(cos⁡(6x)+isin⁡(6x))+c2(cos⁡(6x)−isin⁡(6x))==(c1+c2)cos⁡(6x)+i(c1−c2)sin⁡(6x)\begin{aligned} u(x) = c_{1}e^{i\sqrt{6}x} + c_{2}e^{-i\sqrt{6}x} &= c_{1}\left(\cos(\sqrt{6}x) + i\sin(\sqrt{6}x)\right) + c_{2}\left(\cos(\sqrt{6}x) - i\sin(\sqrt{6}x)\right) = \\ &= (c_{1} + c_{2})\cos(\sqrt{6}x) + i(c_{1} - c_{2})\sin(\sqrt{6}x) \end{aligned}


Redefine (c1+c2)(c_{1} + c_{2}) as c1c_{1} and i(c1−c2)i(c_{1} - c_{2}) as c2c_{2}, since these are arbitrary constants:


=c1cos⁡(6x)+c2sin⁡(6x)= c_{1}\cos(\sqrt{6}x) + c_{2}\sin(\sqrt{6}x)


Determine the particular solution to d2udx2+6u=ex\frac{d^2u}{dx^2} + 6u = e^x by the method of undetermined coefficients:

The particular solution to d2udx2+6u=ex\frac{d^2u}{dx^2} + 6u = e^x is of the form


up(x)=a1exu_{p}(x) = a_{1}e^{x}


Substitute the particular solution up(x)u_{p}(x) into the differential equation:


d2dx2(a1ex)+6a1ex=ex\frac{d^2}{dx^2}(a_{1}e^{x}) + 6a_{1}e^{x} = e^{x}a1ex+6a1ex=exa_{1}e^{x} + 6a_{1}e^{x} = e^{x}a1+6a1=1⇒7a1=1⇒a1=17a_{1} + 6a_{1} = 1 \Rightarrow 7a_{1} = 1 \Rightarrow a_{1} = \frac{1}{7}


Substitute a1a_{1} into up(x)=a1exu_{p}(x) = a_{1}e^{x}

up(x)=17exu_{p}(x) = \frac{1}{7}e^{x}


The general solution of (4) is


u(x)=uc(x)+up(x)=17ex+c1cos⁡(6x)+c2sin⁡(6x)u(x) = u_{c}(x) + u_{p}(x) = \frac{1}{7}e^{x} + c_{1}\cos(\sqrt{6}x) + c_{2}\sin(\sqrt{6}x)


We find solution of the original equation from the equality (2)


u(x)=y(x)cos⁡x⇒y(x)=1cos⁡xu(x)=1cos⁡x(17ex+c1cos⁡(6x)+c2sin⁡(6x))u(x) = y(x)\cos x \Rightarrow y(x) = \frac{1}{\cos x} u(x) = \frac{1}{\cos x}\left(\frac{1}{7}e^{x} + c_{1}\cos(\sqrt{6}x) + c_{2}\sin(\sqrt{6}x)\right)


Answer: y(x)=1cos⁡x(17ex+c1cos⁡(6x)+c2sin⁡(6x))y(x) = \frac{1}{\cos x}\left(\frac{1}{7}e^{x} + c_{1}\cos(\sqrt{6}x) + c_{2}\sin(\sqrt{6}x)\right)

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

LATEST TUTORIALS
APPROVED BY CLIENTS