44.6.55 problem 60

Internal problem ID [7199]
Book : A First Course in Differential Equations with Modeling Applications by Dennis G. Zill. 12 ed. Metric version. 2024. Cengage learning.
Section : Chapter 2. First order differential equations. Section 2.3 Linear equations. Exercises 2.3 at page 63
Problem number : 60
Date solved : Wednesday, March 05, 2025 at 04:20:53 AM
CAS classification : [_quadrature]

\begin{align*} e^{\prime }&=-\frac {e}{r c} \end{align*}

With initial conditions

\begin{align*} e \left (4\right )&=e_{0} \end{align*}

Maple. Time used: 0.021 (sec). Leaf size: 19
ode:=diff(e(t),t) = -1/r/c*e(t); 
ic:=e(4) = e__0; 
dsolve([ode,ic],e(t), singsol=all);
 
\[ e = e_{0} {\mathrm e}^{\frac {-t +4}{r c}} \]
Mathematica. Time used: 0.027 (sec). Leaf size: 21
ode=D[e[t],t]==-1/(r*c)*e[t]; 
ic={e[4]==e0}; 
DSolve[{ode,ic},e[t],t,IncludeSingularSolutions->True]
 
\[ e(t)\to \text {e0} e^{\frac {4-t}{c r}} \]
Sympy. Time used: 0.156 (sec). Leaf size: 17
from sympy import * 
t = symbols("t") 
c = symbols("c") 
r = symbols("r") 
e = Function("e") 
ode = Eq(Derivative(e(t), t) + e(t)/(c*r),0) 
ics = {e(4): e__0} 
dsolve(ode,func=e(t),ics=ics)
 
\[ e{\left (t \right )} = e^{0} e^{\frac {4}{c r}} e^{- \frac {t}{c r}} \]