\documentclass[a4paper,12pt]{article}
\begin{document}


{\bf Question}

Find the solutions of the differential equation:

$$\frac{d^2y}{dx^2}+2\frac{dy}{dx}+(1-a)y=0$$

which satify the conditions $y=0$ and $\frac{dy}{dx} = 1$ when
$x=0$ for three cases:
\begin{description}
\item[(i)]
$a$ is a positive real number, so we can put $a=k^2$ with $k>0$;
\item[(ii)]
$a$ is a negative real number, so we can put $a=-p^2$ with $p>0$;
\item[(iii)]
$a=0$
\end{description}


{\bf Answer}

Auxiliary equation: $\lambda^2 + 2\lambda + (1-a) = 0 $

Roots: $\lambda_1, \lambda_2 = \frac{-2 \pm \sqrt{4 - 4(1 -
a)}}{2} = -1 \pm \sqrt{a}$
\begin{description}
\item[case (i)]
\begin{eqnarray*}
0 < a & = & k^2 {\rm \  this\ gives\ two\ distinict\ real\ roots}
\\ \lambda_1, \lambda_2 & = & -1 \pm k \\ {\rm General\ Solution:\
} y & = & Ae^{(k-1)x} + Be^{-(k+1)x} \\ \frac{dy}{dx} & = &
(k-1)Ae^{(k-1)x} - (k+1)Be^{-(k+1)x} \\ {\rm Boundary\
conditions:\ } 0 & = & A + B
\\ 1 & = & (k-1)A - (k+1)B \\ \Rightarrow A & = & \frac{1}{2k} {\rm \ and\ } B = -\frac{1}[{2k} \\
{\rm Particular\ solution:\ } y & = & \frac{e^{-x}}{k}
 \left \{ \frac{e^{kx}-e^{-kx}}{2} \right\}  \\ & = & \frac {e^{-x}}{k} \sinh (kx)
\end{eqnarray*}
\item[case (ii)]
\begin{eqnarray*}
0 > a & = & -p^2 {\rm this\ gives\ a\ pair\ of\ complex\
conjugate\ roots}\\ \lambda_1, \lambda_2 & = & -1 \pm \sqrt{-p^2}
\\ {\rm General\ Solution:\ } y & = & e_{-x}(A \cos(px) + B \sin(px))
\\ \frac{dy}{dx} & = & e^{-x}((pB-A) \cos (px) - (pA + B)\sin px
) \\ {\rm Boundary\ conditions:\ } 0 & = & A \\ 1 & = & pB - A\\
\Rightarrow A & = & 0 {\rm \ and\ } B = -\frac{1}{p}
\\ {\rm Particular\ solution:\ } y & = & \frac{e^{-x}}{p}
\sin(px)
\end{eqnarray*}
\item[case (iii)]
\begin{eqnarray*}
a & = & 0 {\rm \  this\ gives\ two\ repeated\ real\ roots}
\\ \lambda_1, \lambda_2 & = & -1 \\ {\rm General\ Solution:\
} y & = & (A + Bx) e^{-x} \\ \frac{dy}{dx} & = & (-A + B
-Bx)e^{-x}
 \\ {\rm Boundary\ conditions:\ } 0 & = & A
\\ 1 & = & -A + B \\ \Rightarrow A & = & 0 {\rm \ and\ } B = 1 \\
{\rm Particular\ solution:\ } y & = & xe^{-x}
\end{eqnarray*}
\end{description}


\end{document}
