Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Notes on this paper
National Exams — December 2015 — 04-BS-1 Mathematics. Three-hour, closed-book exam (one double-sided aid sheet permitted, approved calculator allowed). Format: eight questions offered; any five constitute a complete paper and only the first five appearing in the answer book are marked. All eight are solved below for completeness.
Reference texts: Kreyszig, Advanced Engineering Mathematics (10th ed., Wiley) — ODEs, systems of ODEs, line/surface integrals, Stokes'/divergence theorems; Stewart, Calculus: Early Transcendentals (9th ed., Cengage) — Lagrange multipliers, planes and lines in space, surface/flux integrals, volumes.
Question 1: Two First- and Second-Order ODEs (a) 10, (b) 10 marks
Given. (a) A first-order linear ODE with variable coefficient $x$ and forcing $2xe^{-x^2}$. (b) A homogeneous, constant-coefficient second-order ODE.
Find. The general solution $y(x)$ in each case.
Approach. (a) Solve by an integrating factor $\mu(x)=e^{\int x\,dx}$. (b) Solve the characteristic (auxiliary) equation and combine the two real exponential modes.
(a) Integrating factor. The equation $y'+xy=2xe^{-x^2}$ has integrating factor
$$\mu(x)=e^{\int x\,dx}=e^{x^2/2}.$$
(a) Multiply through and integrate. Multiplying both sides by $\mu$,
$$\left(e^{x^2/2}y\right)'=2xe^{-x^2}\cdot e^{x^2/2}=2xe^{-x^2/2}.$$
The right side integrates directly, since $\dfrac{d}{dx}e^{-x^2/2}=-xe^{-x^2/2}$:
$$\int 2xe^{-x^2/2}\,dx=-2e^{-x^2/2}+C.$$
So $e^{x^2/2}y=-2e^{-x^2/2}+C$.
(a) Solve for $y$. Dividing by $e^{x^2/2}$,
$$y(x)=\boxed{Ce^{-x^2/2}-2e^{-x^2}}$$
(Check: $y'=-Cxe^{-x^2/2}+4xe^{-x^2}$, and $y'+xy=-Cxe^{-x^2/2}+4xe^{-x^2}+Cxe^{-x^2/2}-2xe^{-x^2}=2xe^{-x^2}$ ✓.)