33.4.8 problem Problem 12.16

Internal problem ID [7829]
Book : Schaums Outline Differential Equations, 4th edition. Bronson and Costa. McGraw Hill 2014
Section : Chapter 12. VARIATION OF PARAMETERS. Supplementary Problems. page 109
Problem number : Problem 12.16
Date solved : Tuesday, September 30, 2025 at 05:06:05 PM
CAS classification : [_linear]

\begin{align*} y^{\prime }-\frac {y}{x}&=x^{2} \end{align*}
Maple. Time used: 0.001 (sec). Leaf size: 14
ode:=diff(y(x),x)-y(x)/x = x^2; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {\left (x^{2}+2 c_1 \right ) x}{2} \]
Mathematica. Time used: 0.016 (sec). Leaf size: 17
ode=D[y[x],x]-1/x*y[x]==x^2; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to \frac {x^3}{2}+c_1 x \end{align*}
Sympy. Time used: 0.147 (sec). Leaf size: 10
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x**2 + Derivative(y(x), x) - y(x)/x,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = x \left (C_{1} + \frac {x^{2}}{2}\right ) \]