π Example 35.
Find the particular solution to the initial-value problem:
\begin{equation}
\frac{dy}{dx} = 2xy - 6x, \quad y(0) = 2\tag{3.1}
\end{equation}
given that the general solution is:
\begin{equation*}
y = ce^{x^2} + 3.
\end{equation*}
Solution.
The initial condition \(y(0) = 2\) tells us that \(y\) must equal 2 when \(x = 0\text{.}\) Substituting into the general solution:
\begin{align*}
y = ce^{x^2} + 3 \quad \overset{y\ =\ 2,\ x\ =\ 0}{\Rightarrow} \quad 2 \amp = ce^{0^2} + 3 \\
2 \amp = c + 3 \\
c \amp = -1
\end{align*}
Thus, the particular solution is:
\begin{equation*}
y = -e^{x^2} + 3.
\end{equation*}
