Answer on Question #70345 - Math - Calculus
Solve: d 2 y d x 2 − 2 tan x d y d x + 5 y = e x sec x \frac{d^2y}{dx^2} - 2\tan x\frac{dy}{dx} + 5y = e^x\sec x d x 2 d 2 y − 2 tan x d x d y + 5 y = e x sec x
Solution
We are given
d 2 y d x 2 − 2 tan x d y d x + 5 y = e x sec x \frac{d^2y}{dx^2} - 2\tan x\frac{dy}{dx} + 5y = e^x\sec x d x 2 d 2 y − 2 tan x d x d y + 5 y = e x sec x
Multiply both sides of the equation by cos x \cos x cos x :
cos x d 2 y d x 2 − 2 sin x d y d x + 5 y cos x = e x \cos x \frac{d^2y}{dx^2} - 2\sin x \frac{dy}{dx} + 5y\cos x = e^x cos x d x 2 d 2 y − 2 sin x d x d y + 5 y cos x = e x
We will be looking for a solution in the form
u ( x ) = y ( x ) cos x u(x) = y(x)\cos x u ( x ) = y ( x ) cos x
Find d u d x \frac{du}{dx} d x d u and d 2 u d x 2 \frac{d^2u}{dx^2} d x 2 d 2 u
d u d x = d y d x cos x − y sin x \frac{du}{dx} = \frac{dy}{dx}\cos x - y\sin x d x d u = d x d y cos x − y sin x d 2 u d x 2 = d d x ( d y d x cos x − y sin x ) = d 2 y d x 2 cos x − d y d x sin x − d y d x sin x − y cos x = d 2 y d x 2 cos x − 2 d y d x sin x − y cos x = d 2 y d x 2 cos x − 2 d y d x sin 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 d x 2 d 2 u = d x d ( d x d y cos x − y sin x ) = d x 2 d 2 y cos x − d x d y sin x − d x d y sin x − y cos x = d x 2 d 2 y cos x − 2 d x d y sin x − y cos x = d x 2 d 2 y cos x − 2 d x d y sin x − u
Thus, from the last equality we get
d 2 y d x 2 cos x − 2 d y d x sin x = d 2 u d x 2 + u \frac{d^2y}{dx^2}\cos x - 2\frac{dy}{dx}\sin x = \frac{d^2u}{dx^2} + u d x 2 d 2 y cos x − 2 d x d y sin x = d x 2 d 2 u + u
Substitution of the (3) into the (1) yields
d 2 u d x 2 + 6 u = e x \frac{d^2u}{dx^2} + 6u = e^x d x 2 d 2 u + 6 u = e x
Solve this equation. The general solution is the sum of the complementary solution and particular solution. Find the complementary solution by solving
d 2 u d x 2 + 6 u = 0 \frac{d^2u}{dx^2} + 6u = 0 d x 2 d 2 u + 6 u = 0
Substitute u = e λ x u = e^{\lambda x} u = e λ x
d 2 d x 2 ( e λ x ) + 6 e λ x = 0 \frac{d^2}{dx^2}(e^{\lambda x}) + 6e^{\lambda x} = 0 d x 2 d 2 ( e λ x ) + 6 e λ x = 0 λ 2 e λ x + 6 e λ x = 0 ⇒ ( λ 2 + 6 ) e λ x = 0 ⇒ λ 2 + 6 = 0 ⇒ λ 2 = − 6 ⇒ λ 1 = i 6 , λ 2 = − i 6 \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} λ 2 e λ x + 6 e λ x = 0 ⇒ ( λ 2 + 6 ) e λ x = 0 ⇒ λ 2 + 6 = 0 ⇒ λ 2 = − 6 ⇒ λ 1 = i 6 , λ 2 = − i 6
The obtained roots give u 1 ( x ) = c 1 e i 6 x u_{1}(x) = c_{1}e^{i\sqrt{6} x} u 1 ( x ) = c 1 e i 6 x , u 2 ( x ) = c 2 e − i 6 x u_{2}(x) = c_{2}e^{-i\sqrt{6} x} u 2 ( x ) = c 2 e − i 6 x as solutions, where c 1 c_{1} c 1 and c 2 c_{2} c 2 are arbitrary constants. The general solution is the sum of u 1 u_{1} u 1 and u 2 u_{2} u 2 :
u ( x ) = u 1 ( x ) + u 2 ( x ) = c 1 e i 6 x + c 2 e − i 6 x u(x) = u_{1}(x) + u_{2}(x) = c_{1}e^{i\sqrt{6}x} + c_{2}e^{-i\sqrt{6}x} u ( x ) = u 1 ( x ) + u 2 ( x ) = c 1 e i 6 x + c 2 e − i 6 x
Apply Euler's identity e α + i β = e a cos β + i e a sin β e^{\alpha + i\beta} = e^{a}\cos\beta + i e^{a}\sin\beta e α + i β = e a cos β + i e a sin β
u ( x ) = c 1 e i 6 x + c 2 e − i 6 x = c 1 ( cos ( 6 x ) + i sin ( 6 x ) ) + c 2 ( cos ( 6 x ) − i sin ( 6 x ) ) = = ( c 1 + c 2 ) cos ( 6 x ) + i ( c 1 − c 2 ) sin ( 6 x ) \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} u ( x ) = c 1 e i 6 x + c 2 e − i 6 x = c 1 ( cos ( 6 x ) + i sin ( 6 x ) ) + c 2 ( cos ( 6 x ) − i sin ( 6 x ) ) = = ( c 1 + c 2 ) cos ( 6 x ) + i ( c 1 − c 2 ) sin ( 6 x )
Redefine ( c 1 + c 2 ) (c_{1} + c_{2}) ( c 1 + c 2 ) as c 1 c_{1} c 1 and i ( c 1 − c 2 ) i(c_{1} - c_{2}) i ( c 1 − c 2 ) as c 2 c_{2} c 2 , since these are arbitrary constants:
= c 1 cos ( 6 x ) + c 2 sin ( 6 x ) = c_{1}\cos(\sqrt{6}x) + c_{2}\sin(\sqrt{6}x) = c 1 cos ( 6 x ) + c 2 sin ( 6 x )
Determine the particular solution to d 2 u d x 2 + 6 u = e x \frac{d^2u}{dx^2} + 6u = e^x d x 2 d 2 u + 6 u = e x by the method of undetermined coefficients:
The particular solution to d 2 u d x 2 + 6 u = e x \frac{d^2u}{dx^2} + 6u = e^x d x 2 d 2 u + 6 u = e x is of the form
u p ( x ) = a 1 e x u_{p}(x) = a_{1}e^{x} u p ( x ) = a 1 e x
Substitute the particular solution u p ( x ) u_{p}(x) u p ( x ) into the differential equation:
d 2 d x 2 ( a 1 e x ) + 6 a 1 e x = e x \frac{d^2}{dx^2}(a_{1}e^{x}) + 6a_{1}e^{x} = e^{x} d x 2 d 2 ( a 1 e x ) + 6 a 1 e x = e x a 1 e x + 6 a 1 e x = e x a_{1}e^{x} + 6a_{1}e^{x} = e^{x} a 1 e x + 6 a 1 e x = e x a 1 + 6 a 1 = 1 ⇒ 7 a 1 = 1 ⇒ a 1 = 1 7 a_{1} + 6a_{1} = 1 \Rightarrow 7a_{1} = 1 \Rightarrow a_{1} = \frac{1}{7} a 1 + 6 a 1 = 1 ⇒ 7 a 1 = 1 ⇒ a 1 = 7 1
Substitute a 1 a_{1} a 1 into u p ( x ) = a 1 e x u_{p}(x) = a_{1}e^{x} u p ( x ) = a 1 e x
u p ( x ) = 1 7 e x u_{p}(x) = \frac{1}{7}e^{x} u p ( x ) = 7 1 e x
The general solution of (4) is
u ( x ) = u c ( x ) + u p ( x ) = 1 7 e x + c 1 cos ( 6 x ) + c 2 sin ( 6 x ) 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) u ( x ) = u c ( x ) + u p ( x ) = 7 1 e x + c 1 cos ( 6 x ) + c 2 sin ( 6 x )
We find solution of the original equation from the equality (2)
u ( x ) = y ( x ) cos x ⇒ y ( x ) = 1 cos x u ( x ) = 1 cos x ( 1 7 e x + c 1 cos ( 6 x ) + c 2 sin ( 6 x ) ) 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) u ( x ) = y ( x ) cos x ⇒ y ( x ) = cos x 1 u ( x ) = cos x 1 ( 7 1 e x + c 1 cos ( 6 x ) + c 2 sin ( 6 x ) )
Answer: y ( x ) = 1 cos x ( 1 7 e x + c 1 cos ( 6 x ) + c 2 sin ( 6 x ) ) 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) y ( x ) = c o s x 1 ( 7 1 e x + c 1 cos ( 6 x ) + c 2 sin ( 6 x ) )
Answer provided by https://www.AssignmentExpert.com
Comments
Dear Deeksha gupta, You are welcome. We are glad to be helpful. If you liked our service, please press a like-button beside the answer field. Thank you!
Your site is very helpful for us.Thank you so much