1.1.1 problem 1

Internal problem ID [1]
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.2. Problems at page 17
Problem number : 1
Date solved : Tuesday, September 30, 2025 at 03:38:04 AM
CAS classification : [_quadrature]

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

With initial conditions

\begin{align*} y \left (0\right )&=3 \\ \end{align*}
Maple. Time used: 0.024 (sec). Leaf size: 10
ode:=diff(y(x),x) = 2*x+1; 
ic:=[y(0) = 3]; 
dsolve([ode,op(ic)],y(x), singsol=all);
 
\[ y = x^{2}+x +3 \]
Mathematica. Time used: 0.039 (sec). Leaf size: 11
ode=D[y[x],x]==2*x+1; 
ic={y[0]==3}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to x^2+x+3 \end{align*}
Sympy. Time used: 0.101 (sec). Leaf size: 8
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-2*x + Derivative(y(x), x) - 1,0) 
ics = {y(0): 3} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = x^{2} + x + 3 \]