7.4 problem 1.2-2 (d)

Internal problem ID [1970]

Book: Ordinary Differential Equations, Robert H. Martin, 1983
Section: Problem 1.2-2, page 12
Problem number: 1.2-2 (d).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {y^{\prime }+\tan \relax (t ) y-\sec \relax (t )=0} \end {gather*} With initial conditions \begin {align*} [y \relax (0) = 0] \end {align*}

Solution by Maple

Time used: 0.007 (sec). Leaf size: 6

dsolve([diff(y(t),t)=-tan(t)*y(t)+sec(t),y(0) = 0],y(t), singsol=all)
 

\[ y \relax (t ) = \sin \relax (t ) \]

Solution by Mathematica

Time used: 0.052 (sec). Leaf size: 7

DSolve[{y'[t]==-Tan[t]*y[t]+Sec[t],y[0]==0},y[t],t,IncludeSingularSolutions -> True]
 

\begin{align*} y(t)\to \sin (t) \\ \end{align*}