<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}
\newcommand{\ds}{\displaystyle}
\newcommand{\un}{\underline}
\parindent=0pt
\begin{document}

{\bf Question}

State the order and degree of the following differential
equations, identify their type and hence solve them.

\begin{description}
\item[(i)]
$\ds\frac{dy}{dx}=xy$, where $y=3$ when $x=0$;

\item[(ii)]
$\ds\frac{dy}{dx}-2xy=\ds\frac{e^{x^2}}{1+x}$, where $y=0$ when
$x=0$.
\end{description}
\medskip

{\bf Answer}

Both are first order first degree.

\begin{description}
\item[(i)]
This is V.S.

\begin{eqnarray*} &amp; &amp; \ds\frac{dy}{dx}=xy\\ &amp; \Rightarrow &amp;
\ds\int\ds\frac{dy}{y}=\ds\int x \,dx\\ &amp; \Rightarrow &amp; \ln
y=\ds\frac{x^2}{2}+C\\ &amp; \Rightarrow &amp; y=Ae^{\frac{x^2}{2}}\\ y=3\
\rm{when}\ x=0\\ &amp; \Rightarrow &amp; 3=Ae^0=A \end{eqnarray*}

Therefore \un{$y=3e^{\frac{x^2}{2}}$}

\item[(ii)]
This is \un{linear}

$$\ds\frac{dy}{dx}-2xy=\ds\frac{e^{x^2}}{1+x}$$

Integrating factor $=e^{\int -2x\, dx}=e^{-x^2}$

Therefore
$e^{-x^2}\ds\frac{dy}{dx}-2xe^{-x^2}y=e^{-x^2}\ds\frac{e^{-x^2}}{1+x}$

$\Rightarrow
\ds\frac{d}{dx}\left\{ye^{-x^2}\right\}=\ds\frac{1}{1+x}$

Therefore \begin{eqnarray*} ye^{-x^2}=\ds\int\ds\frac{dx}{1+x}\\ &amp;
= &amp; \log(1+x)+c \end{eqnarray*}

Therefore $y=e^{x^2}[\log(1+x)+c]$

$y=0$ when $x=0$

$\Rightarrow \begin{array}{rcl} 0 &amp; = &amp; e^0[\log 1+c]\\ 0 &amp; = &amp; c
\end{array}$

Therefore \un{$y=e^{x^2}\log(1+x)$}

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