2.20 problem 20

Internal problem ID [906]

Book: Elementary differential equations with boundary value problems. William F. Trench. Brooks/Cole 2001
Section: Chapter 2, First order equations. Linear first order. Section 2.1 Page 41
Problem number: 20.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

\[ \boxed {y^{\prime }+y \tan \left (x \right )-\cos \left (x \right )=0} \]

Solution by Maple

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

dsolve(diff(y(x),x) +tan(x)*y(x)=cos(x),y(x), singsol=all)
 

\[ y \left (x \right ) = \left (c_{1} +x \right ) \cos \left (x \right ) \]

Solution by Mathematica

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

DSolve[y'[x] +Tan[x]*y[x]==Cos[x],y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to (x+c_1) \cos (x) \\ \end{align*}