6.21 problem 21

Internal problem ID [1050]

Book: Elementary differential equations with boundary value problems. William F. Trench. Brooks/Cole 2001
Section: Chapter 2, First order equations. Exact equations. Section 2.5 Page 79
Problem number: 21.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {\sin \relax (x )-\sin \relax (x ) y-2 \cos \relax (x )+y^{\prime } \cos \relax (x )=0} \end {gather*} With initial conditions \begin {align*} [y \relax (0) = 1] \end {align*}

Solution by Maple

Time used: 0.013 (sec). Leaf size: 16

dsolve([(sin(x)-y(x)*sin(x)-2*cos(x))+(cos(x))*diff(y(x),x)=0,y(0) = 1],y(x), singsol=all)
 

\[ y \relax (x ) = \frac {2 \sin \relax (x )+\cos \relax (x )}{\cos \relax (x )} \]

Solution by Mathematica

Time used: 0.058 (sec). Leaf size: 11

DSolve[{(Sin[x]-y[x]*Sin[x]-2*Cos[x])+(Cos[x])*y'[x]==0,y[0]==1},y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to 2 \tan (x)+1 \\ \end{align*}