Given that $y=x$ and $y=1-x^2$ satisfy the differential equation
$$
\frac{\mathrm d^2 {y}}{\mathrm d x^2} + \mathrm p(x) \frac{\mathrm d {y}}{\mathrm d x} + \mathrm q(x) {y}=0\;,
\tag{*}
$$
show that $\mathrm p(x)= -2x(1+x^2)^{-1}$ and $\mathrm q(x) = 2(1+x^2)^{-1}$. Show also that $ax+b(1-x^2)$ satisfies the differential equation for any constants $a$ and $b$. Given instead that $y=\cos^2(\frac{1}{2}x^2)$ and $y=\sin^2(\frac{1}{2}x^2)$ satisfy the equation $(*)$, find $\mathrm p(x)$ and $\mathrm q(x)$.