71.1.13 problem 27

Internal problem ID [14251]
Book : Ordinary Differential Equations by Charles E. Roberts, Jr. CRC Press. 2010
Section : Chapter 1. Introduction. Exercises page 14
Problem number : 27
Date solved : Monday, March 31, 2025 at 12:14:17 PM
CAS classification : [_quadrature]

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

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