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]

Solve \begin {gather*} \boxed {y^{\prime }+y \tan \relax (x )-\cos \relax (x )=0} \end {gather*}

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.055 (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*}