2.2.10.2 second order linear constant coeff

\[\begin {aligned} x^{\prime \prime }+2 x^{\prime }+x&=0\\ x \left (0\right ) &= 0\\ x^{\prime }\left (0\right ) &= 1\\ \end {aligned}\]

Entering second order linear constant coefficient ode solverThis is second order with constant coefficients homogeneous ODE. In standard form the ODE is

\[ A x''(t) + B x'(t) + C x(t) = 0 \]

Where in the above \(A=1, B=2, C=1\). Let the solution be \(x=e^{\lambda t}\). Substituting this into the ODE gives

\[ \lambda ^{2} {\mathrm e}^{\lambda t}+2 \lambda \,{\mathrm e}^{\lambda t}+{\mathrm e}^{\lambda t} = 0 \tag {1} \]

Since exponential function is never zero, then dividing Eq(2) throughout by \(e^{\lambda t}\) gives

\[ \lambda ^{2}+2 \lambda +1 = 0 \tag {2} \]

Equation (2) is the characteristic equation of the ODE. Its roots determine the general solution form. Using the quadratic formula the roots are

\[ \lambda _{1,2} = \frac {-B}{2 A} \pm \frac {1}{2 A} \sqrt {B^2 - 4 A C} \]

Substituting \(A=1, B=2, C=1\) into the above gives

\begin{align*} \lambda _{1,2} &= \frac {-2}{(2) \left (1\right )} \pm \frac {1}{(2) \left (1\right )} \sqrt {\left (2\right )^2 - (4) \left (1\right )\left (1\right )}\\ &= -1 \end{align*}

Hence this is the case of a double root \(\lambda _{1,2} = 1\). Therefore the solution is

\[ x= c_1 {\mathrm e}^{-t} + c_2 t \,{\mathrm e}^{-t} \tag {1} \]

Applying the initial conditions \([x \left (0\right ) = 0, x^{\prime }\left (0\right ) = 1]\), the solution becomes

\begin{align*} x &= t \,{\mathrm e}^{-t} \\ \end{align*}
\(x = t \,{\mathrm e}^{-t}\) Direction field