74.7.17 problem 17

Internal problem ID [16023]
Book : INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton. Fourth edition 2014. ElScAe. 2014
Section : Chapter 2. First Order Equations. Exercises 2.5, page 64
Problem number : 17
Date solved : Monday, March 31, 2025 at 02:29:16 PM
CAS classification : [[_homogeneous, `class A`], _rational, [_Abel, `2nd type`, `class C`], _dAlembert]

\begin{align*} 2 t +\left (y-3 t \right ) y^{\prime }&=0 \end{align*}

Maple. Time used: 0.097 (sec). Leaf size: 47
ode:=2*t+(y(t)-3*t)*diff(y(t),t) = 0; 
dsolve(ode,y(t), singsol=all);
 
\begin{align*} y &= \frac {2 t c_1 -\sqrt {-4 t c_1 +1}+1}{2 c_1} \\ y &= \frac {2 t c_1 +1+\sqrt {-4 t c_1 +1}}{2 c_1} \\ \end{align*}
Mathematica. Time used: 0.042 (sec). Leaf size: 40
ode=( 2*t  )+( y[t]-3*t )*D[y[t],t]==0; 
ic={}; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
\[ \text {Solve}\left [\int _1^{\frac {y(t)}{t}}\frac {K[1]-3}{(K[1]-2) (K[1]-1)}dK[1]=-\log (t)+c_1,y(t)\right ] \]
Sympy. Time used: 1.640 (sec). Leaf size: 37
from sympy import * 
t = symbols("t") 
y = Function("y") 
ode = Eq(2*t + (-3*t + y(t))*Derivative(y(t), t),0) 
ics = {} 
dsolve(ode,func=y(t),ics=ics)
 
\[ \left [ y{\left (t \right )} = \frac {C_{1}}{2} + t - \frac {\sqrt {C_{1} \left (C_{1} - 4 t\right )}}{2}, \ y{\left (t \right )} = \frac {C_{1}}{2} + t + \frac {\sqrt {C_{1} \left (C_{1} - 4 t\right )}}{2}\right ] \]