82.10.3 problem Ex. 3

Internal problem ID [18758]
Book : Introductory Course On Differential Equations by Daniel A Murray. Longmans Green and Co. NY. 1924
Section : Chapter II. Equations of the first order and of the first degree. Exercises at page 27
Problem number : Ex. 3
Date solved : Tuesday, January 28, 2025 at 12:15:15 PM
CAS classification : [_linear]

\begin{align*} \cos \left (x \right )^{2} y^{\prime }+y&=\tan \left (x \right ) \end{align*}

Solution by Maple

Time used: 0.001 (sec). Leaf size: 15

dsolve(cos(x)^2*diff(y(x),x)+y(x)=tan(x),y(x), singsol=all)
 
\[ y \left (x \right ) = \tan \left (x \right )-1+{\mathrm e}^{-\tan \left (x \right )} c_{1} \]

Solution by Mathematica

Time used: 0.174 (sec). Leaf size: 18

DSolve[Cos[x]^2*D[y[x],x]+y[x]==Tan[x],y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to \tan (x)+c_1 e^{-\tan (x)}-1 \]