Ordinary differential equations: Second-order linear ODEs with constant coefficients
Positive discriminant
Characteristic equation with positive discriminant We consider the homogeneous second-order linear differential equation with constant coefficients, written in the form \[a\,\frac{\dd^2y}{\dd t^2}+b\,\frac{\dd y}{\dd t}+c\,y(t)=0\] The corresponding characteristic equation is \[a\,\lambda^2+b\,\lambda+c=0\]
We restrict ourselves to the case where the discriminant \(D=b^2-4ac\) is positive. Then there are, according to the abc-formula, two real roots, say \[\lambda_1=\frac{-b+\sqrt{D}}{2a}\qquad\text{and}\qquad \lambda_2=\frac{-b-\sqrt{D}}{2a}\] The following two functions are solutions of the differential equation \[y_1(t)=e^{\lambda_1t}\qquad\text{and}\qquad y_2(t)=e^{\lambda_2t}\]In fact, any solution can be written as a linear combination of these two "basic solutions". In other words, the general solution of the differential equation can be written as \[y(t)=c_1\,y_1(t)+c_2\,y_2(t)=c_1\,e^{\lambda_1t}+c_2\,e^{\lambda_2t}\] with constants \(c_1\) and \(c_2\). These constants are determined by boundary conditions.
The discriminant \(D\) of the characteristic polynomial \[\lambda^2-2\lambda-3=0\] is equal to \[D=(-2\times -2)-(4\times -3) = 16 = 4^2\] Thus, the roots of the characteristic polynomial are: \[\lambda_{1,2}= \frac{-(-2)\pm 4}{2}\text{,}\] that is, \[\lambda_1=3 \qquad\text{and}\qquad\lambda_2=-1\] If you had found the equality \[\lambda^2-2\lambda-3=(\lambda-3)(\lambda+1)\] through factorization of a quadratic equation by inspection, this conclusion would have been obvious.
Thus, the differential equation has the following general solution: \[y(t)=A\,e^{3t}+B\,e^{-t}\] where \(A\) and \(B\) are constants.
Using the initial values \[y(0)=2, \qquad \frac{\dd y}{\dd t}(0)=-2\] we can define equations that \(A\) and \(B\) must satisfy. Substitution of \(t=0\) and \(y(0)=2\) in the general solution \(y(t)=A\,e^{3t}+B\,e^{-t}\) gives \[A+B=2\] For the usage of the second initial value we need the derivative of the general solution; this can be computed with the calculation rules for differentiating and the derivative of the exponential function: \[y'(t)=3A\,e^{3t}-B\,e^{-t}\] Substitution of \(t=0\) and \(y'(0)=-2\) gives the equation \[3A-B=-2\] So we must solve the following system of equations in the unknowns \(A\) and \(B\): \[\left\{\begin{aligned}A+\phantom{2}B&= 2\\ 3A-B&= -2\end{aligned}\right.\] The solution of this system of equations is \[A=0 \qquad\text{and}\qquad B=2\] So the solution of the initial value problem is \[y(t)=2\,\e^ {- t }\]