Internal problem ID [4256]
Book: Mathematical Methods in the Physical Sciences. third edition. Mary L. Boas. John Wiley.
2006
Section: Chapter 8, Ordinary differential equations. Section 3. Linear First-Order Equations. page
403
Problem number: 5.
ODE order: 1.
ODE degree: 1.
CAS Maple gives this as type [_linear]
\[ \boxed {y^{\prime } \cos \left (x \right )+y-\cos \left (x \right )^{2}=0} \]
✓ Solution by Maple
Time used: 0.016 (sec). Leaf size: 19
dsolve(diff(y(x),x)*cos(x)+y(x)=cos(x)^2,y(x), singsol=all)
\[ y \left (x \right ) = \frac {x -\cos \left (x \right )+c_{1}}{\sec \left (x \right )+\tan \left (x \right )} \]
✓ Solution by Mathematica
Time used: 0.08 (sec). Leaf size: 25
DSolve[y'[x]*Cos[x]+y[x]==Cos[x]^2,y[x],x,IncludeSingularSolutions -> True]
\begin{align*} y(x)\to e^{-2 \text {arctanh}\left (\tan \left (\frac {x}{2}\right )\right )} (x-\cos (x)+c_1) \\ \end{align*}