7.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, March 04, 2025 at 10:38:45 AM
CAS classification : [[_linear, `class A`]]

\begin{align*} y^{\prime }&=x +y \end{align*}

Maple. Time used: 0.002 (sec). Leaf size: 13
ode:=diff(y(x),x) = x+y(x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = c_1 \,{\mathrm e}^{x}-x -1 \]
Mathematica. Time used: 0.031 (sec). Leaf size: 16
ode=D[y[x],x]==x+y[x]; 
DSolve[ode,y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to -x+c_1 e^x-1 \]
Sympy. Time used: 0.134 (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 \]