36.4.2 problem 2

Internal problem ID [6340]
Book : Fundamentals of Differential Equations. By Nagle, Saff and Snider. 9th edition. Boston. Pearson 2018.
Section : Chapter 2, First order differential equations. Review problems. page 79
Problem number : 2
Date solved : Wednesday, March 05, 2025 at 12:36:09 AM
CAS classification : [[_linear, `class A`]]

\begin{align*} y^{\prime }-4 y&=32 x^{2} \end{align*}

Maple. Time used: 0.003 (sec). Leaf size: 20
ode:=diff(y(x),x)-4*y(x) = 32*x^2; 
dsolve(ode,y(x), singsol=all);
 
\[ y = -8 x^{2}-4 x -1+{\mathrm e}^{4 x} c_1 \]
Mathematica. Time used: 0.061 (sec). Leaf size: 23
ode=D[y[x],x]-4*y[x]==32*x^2; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to -8 x^2-4 x+c_1 e^{4 x}-1 \]
Sympy. Time used: 0.132 (sec). Leaf size: 19
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-32*x**2 - 4*y(x) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} e^{4 x} - 8 x^{2} - 4 x - 1 \]