74.4.8 problem 8

Internal problem ID [15830]
Book : INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton. Fourth edition 2014. ElScAe. 2014
Section : Chapter 2. First Order Equations. Exercises 2.2, page 39
Problem number : 8
Date solved : Monday, March 31, 2025 at 01:57:21 PM
CAS classification : [_separable]

\begin{align*} y^{\prime }&=\frac {y+1}{t +1} \end{align*}

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