1.2.2 problem 2

Internal problem ID [20]
Book : Elementary Differential Equations. By C. Henry Edwards, David E. Penney and David Calvis. 6th edition. 2008
Section : Chapter 1. First order differential equations. Section 1.3. Problems at page 27
Problem number : 2
Date solved : Tuesday, September 30, 2025 at 03:38:27 AM
CAS classification : [[_linear, `class A`]]

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