<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[a4paper,12pt]{article}
\begin{document}


{\bf Question}

Solve the following differential equations, using the specified
boundary conditions.
\begin{description}
\item[(a)]
$\frac{d^2y}{dx^2}+3\frac{dy}{dx}+2y=0$, where $y = 2$ and
$\frac{dy}{dx} = -3$ when $x=0$
\item[(b)]
$\frac{d^2y}{dx^2}+6\frac{dy}{dx}+13y=0$, where $y = 1$ and
$\frac{dy}{dx} = 2$ when $x=0$
\item[(c)]
$\frac{d^2y}{dx^2}-6\frac{dy}{dx}+9y=0$, where $y = 2$ and
$\frac{dy}{dx} = 4$ when $x=0$
\end{description}


{\bf Answer}

\begin{description}
\item[(a)]

Auxiliary equation: $\lambda^2 + 3\lambda + 2  =  0$

Factorises to give: $(\lambda + 1)(\lambda +2)  =  0$

so two distinct real roots $\lambda_1 = -1$ and $\lambda_2 = -2$
\begin{eqnarray*}
{\rm General\  solution:\ } y &amp; = &amp; Ae_{-x} +B e^{-2x} \\
\frac{dy}{dx} &amp; = &amp; -Ae^{-x} -2e^{-2x} \\ {\rm Boundary\
conditions:\ } 2 &amp; = &amp; A + B \\ -3 &amp; = &amp; -A -2B \\ \Rightarrow B &amp;
 = &amp; 1 {\rm \ and\ } A=1 \\
{\rm Particular\  solution:\ } y &amp; = &amp; e^{-x} + Be^{-2x}
\end{eqnarray*}

\item[(b)]

Auxiliary equation: $\lambda^2 + 6\lambda + 13  =  0$

$\lambda_1,\lambda_2  =  \frac{-6 \pm \sqrt{36 - 52}}{2}$

(a pair of complex conjugate roots)
\begin{eqnarray*}
{\rm General\  solution:\ } y &amp; = &amp; e_{-3x}(A \cos(2x) +B
\sin(2x))
\\ \frac{dy}{dx} &amp; = &amp; e^{-3x}((2B-2A) \cos (2x) - (2A + 3B)\sin 2x) \\ {\rm Boundary\
conditions:\ } 1 &amp; = &amp; A  \\ 2 &amp; = &amp; 2B - 3A \\ \Rightarrow a &amp; =&amp;
1 {\rm \ and\ } B=\frac{5}{2} \\ {\rm Particular\  solution:\ } y
 &amp; = &amp; e^{-3x}(\cos 2x + \frac{5}{2} \sin 2x)
\end{eqnarray*}

\item[(c)]

Auxiliary equation: $\lambda^2 - 6\lambda + 9  =  0$

Factorises to give: $(\lambda + 3)^2 =  0$

so two repeated real roots $\lambda_1 = \lambda_2 = 3$
\begin{eqnarray*}
{\rm General\  solution:\ } y &amp; = &amp; (A + Bx)e^{3x} \\
\frac{dy}{dx} &amp; = &amp; 3Ae^{3x} + Be^{3x} + 3Bxe^{3x} \\ {\rm
Boundary\ conditions:\ } 2 &amp; = &amp; A  \\ 4 &amp; = &amp; 3A + B \\
\Rightarrow A &amp; = &amp; 2 {\rm \ and\ } B = -2 \\ {\rm Particular\
solution:\ } y &amp; = &amp; 2(1 - x)e^{3x}
\end{eqnarray*}
\end{description}


\end{document}
</pre></body></html>