Question #68963

Solve, using the method of variation of parameters
(d2y/dx2) - y = 2/(1+e^​x)

Expert's answer

Answer on Question 68963 - Math - Differential Equations

Solve, using the method of variation of parameters d2ydx2y=21+ex\frac{d^2y}{dx^2} - y = \frac{2}{1 + e^x}.

Solution:

Let us first solve the corresponding homogenous linear differential equation


d2ydx2y=0.\frac {d ^ {2} y}{d x ^ {2}} - y = 0.


The characteristic equation λ21=0\lambda^2 - 1 = 0 has two roots λ1=1\lambda_1 = -1 and λ2=1\lambda_2 = 1. Consequently, the pair of functions exe^{-x} and exe^x is a fundamental system of solutions and therefore the general solution has the form


y=C1ex+C2ex,y = C _ {1} e ^ {- x} + C _ {2} e ^ {x},


where C1C_1 and C2C_2 are arbitrary real constants.

By the method of variation of parameters, we look for a partial solution of the non-homogenous equation in the form


y=α1(x)ex+α2(x)exy _ {*} = \alpha_ {1} (x) e ^ {- x} + \alpha_ {2} (x) e ^ {x}


with unknown functions α1\alpha_{1} and α2\alpha_{2}. The derivatives of α1\alpha_{1}, α2\alpha_{2} can be found as a solution of the system


(exexexex)(α1α2)=(021+ex).\left( \begin{array}{cc} e ^ {- x} & e ^ {x} \\ - e ^ {- x} & e ^ {x} \end{array} \right) \left( \begin{array}{c} \alpha_ {1} ^ {\prime} \\ \alpha_ {2} ^ {\prime} \end{array} \right) = \left( \begin{array}{c} 0 \\ \frac {2}{1 + e ^ {x}} \end{array} \right).


Using Cramer's rule we solve the system


Δ(x)=exexexex=exex+exex=2;\Delta (x) = \left| \begin{array}{cc} e ^ {- x} & e ^ {x} \\ - e ^ {- x} & e ^ {x} \end{array} \right| = e ^ {- x} e ^ {x} + e ^ {- x} e ^ {x} = 2;Δ1(x)=0ex21+exex=2ex1+ex,\Delta_ {1} (x) = \left| \begin{array}{cc} 0 & e ^ {x} \\ \frac {2}{1 + e ^ {x}} & e ^ {x} \end{array} \right| = - \frac {2 e ^ {x}}{1 + e ^ {x}},Δ2(x)=ex0ex21+ex=2ex1+ex;\Delta_ {2} (x) = \left| \begin{array}{cc} e ^ {- x} & 0 \\ - e ^ {- x} & \frac {2}{1 + e ^ {x}} \end{array} \right| = \frac {2 e ^ {- x}}{1 + e ^ {x}};α1(x)=Δ1(x)Δ(x)=ex1+ex,α2(x)=Δ2(x)Δ(x)=ex1+ex.\alpha_ {1} ^ {\prime} (x) = \frac {\Delta_ {1} (x)}{\Delta (x)} = - \frac {e ^ {x}}{1 + e ^ {x}}, \quad \alpha_ {2} ^ {\prime} (x) = \frac {\Delta_ {2} (x)}{\Delta (x)} = \frac {e ^ {- x}}{1 + e ^ {x}}.


Then we have


α1(x)=ex1+exdx=[ex=tx=lntdx=1tdt]=dt1+t=lnt+1=ln(1+ex).\begin{array}{l} \alpha_ {1} (x) = - \int \frac {e ^ {x}}{1 + e ^ {x}} d x = \left[ \begin{array}{c} e ^ {x} = t \\ x = \ln t \\ d x = \frac {1}{t} d t \end{array} \right] = - \int \frac {d t}{1 + t} = - \ln | t + 1 | \\ = - \ln (1 + e ^ {x}). \end{array}


Next,


α2(x)=ex1+exdx=dex1+ex=[ex=t]=dt1+1t=tdtt+1=(11t+1)dt=t+lnt+1=ex+lnex+1=ex+ln(1+ex)x.\alpha_2(x) = \int \frac{e^{-x}}{1 + e^x} dx = - \int \frac{de^{-x}}{1 + e^x} = \left[ e^{-x} = t \right] = - \int \frac{dt}{1 + \frac{1}{t}} = - \int \frac{tdt}{t + 1} = - \int \left(1 - \frac{1}{t + 1}\right) dt = - t + \ln |t + 1| = - e^{-x} + \ln |e^{-x} + 1| = - e^{-x} + \ln (1 + e^x) - x.


Substituting α1\alpha_1, α2\alpha_2 into (1) gives the partial solution of the non-homogenous equation


y=(exex)ln(1+ex)xex1.y_* = (e^x - e^{-x}) \ln(1 + e^x) - x e^x - 1.


Finally we have the general solution of the non-homogenous equation


y=C1ex+C2ex+(exex)ln(1+ex)xex1.y = C_1 e^{-x} + C_2 e^x + (e^x - e^{-x}) \ln(1 + e^x) - x e^x - 1.


Answer: y=C1ex+C2ex+(exex)ln(1+ex)xex1y = C_1 e^{-x} + C_2 e^x + (e^x - e^{-x}) \ln(1 + e^x) - x e^x - 1.

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