1.11 problem 4(c)

Internal problem ID [879]

Book: Elementary differential equations with boundary value problems. William F. Trench. Brooks/Cole 2001
Section: Chapter 1, Introduction. Section 1.2 Page 14
Problem number: 4(c).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_quadrature]

Solve \begin {gather*} \boxed {y^{\prime }-\tan \relax (x )=0} \end {gather*} With initial conditions \begin {align*} \left [y \left (\frac {\pi }{4}\right ) = 3\right ] \end {align*}

Solution by Maple

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

dsolve([diff(y(x),x) = tan(x),y(1/4*Pi) = 3],y(x), singsol=all)
 

\[ y \relax (x ) = -\ln \left (\cos \relax (x )\right )+3-\frac {\ln \relax (2)}{2} \]

Solution by Mathematica

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

DSolve[{y'[x] == Tan[x],y[Pi/4]==3},y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to -\log (\cos (x))+3-\frac {\log (2)}{2} \\ \end{align*}