Solving Differential Equations Let \(\frac{d y}{d x}=x-\frac{1}{x^{2}}\)
(a) Find a solution to the differential equation in the interval
\((0,)\) that satisties \(y(1)=2\)
(b) Find a solution to the differential equation in the interval
\((-\infty, 0)\) that satisfies \(y(-1)=1\)
(c) Show that the following piecewise function is a solution to
the differential equation for any values of \(C_{1}\) and \(C_{2}\) .
\(y=\left\\{\begin{array}{l}{\frac{1}{x}+\frac{x^{2}}{2}+C_{1}} \\\
{\frac{1}{x}+\frac{x^{2}}{2}+C_{2}}\end{array}\right.$$x<0\) \(x>0\)
(d) Choose values for \(C_{1}\) and \(C_{2}\) so that the solution in
part (c) agrees with the solutions in parts (a) and (b).
(e) Choose values for \(C_{1}\) and \(C_{2}\) so that the solution in
part (c) satisfies \(y(2)=-1\) and \(y(-2)=2\)