17.6.7 problem 1.2-1 (g)

Internal problem ID [3444]
Book : Ordinary Differential Equations, Robert H. Martin, 1983
Section : Problem 1.2-1, page 12
Problem number : 1.2-1 (g)
Date solved : Monday, January 27, 2025 at 07:36:54 AM
CAS classification : [_linear]

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

Solution by Maple

Time used: 0.002 (sec). Leaf size: 10

dsolve(diff(y(t),t)=y(t)*tan(t)+sec(t),y(t), singsol=all)
 
\[ y = \sec \left (t \right ) \left (t +c_{1} \right ) \]

Solution by Mathematica

Time used: 0.034 (sec). Leaf size: 12

DSolve[D[y[t],t]==y[t]*Tan[t]+Sec[t],y[t],t,IncludeSingularSolutions -> True]
 
\[ y(t)\to (t+c_1) \sec (t) \]