74.6.4 problem 4

Internal problem ID [15956]
Book : INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton. Fourth edition 2014. ElScAe. 2014
Section : Chapter 2. First Order Equations. Exercises 2.4, page 57
Problem number : 4
Date solved : Monday, March 31, 2025 at 02:16:11 PM
CAS classification : [_linear]

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

Maple. Time used: 0.002 (sec). Leaf size: 14
ode:=y(t)*sec(t)^2+2*t+tan(t)*diff(y(t),t) = 0; 
dsolve(ode,y(t), singsol=all);
 
\[ y = \left (-t^{2}+c_1 \right ) \cot \left (t \right ) \]
Mathematica. Time used: 0.053 (sec). Leaf size: 16
ode=(y[t]*Sec[t]^2+2*t)+Tan[t]*D[y[t],t]==0; 
ic={}; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
\[ y(t)\to \left (-t^2+c_1\right ) \cot (t) \]
Sympy
from sympy import * 
t = symbols("t") 
y = Function("y") 
ode = Eq(2*t + y(t)/cos(t)**2 + tan(t)*Derivative(y(t), t),0) 
ics = {} 
dsolve(ode,func=y(t),ics=ics)
 
Timed Out