1.11 problem 11

Internal problem ID [6301]

Book: Own collection of miscellaneous problems
Section: section 1.0
Problem number: 11.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

\[ \boxed {y^{\prime }-x -\frac {\sec \left (x \right ) y}{x}=0} \]

Solution by Maple

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

dsolve(diff(y(x),x) = x+sec(x)*y(x)/x,y(x), singsol=all)
 

\[ y \left (x \right ) = \left (\int x \,{\mathrm e}^{-\left (\int \frac {\sec \left (x \right )}{x}d x \right )}d x +c_{1} \right ) {\mathrm e}^{\int \frac {\sec \left (x \right )}{x}d x} \]

Solution by Mathematica

Time used: 0.438 (sec). Leaf size: 56

DSolve[y'[x] == x+Sec[x]*y[x]/x,y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to \exp \left (\int _1^x\frac {\sec (K[1])}{K[1]}dK[1]\right ) \left (\int _1^x\exp \left (-\int _1^{K[2]}\frac {\sec (K[1])}{K[1]}dK[1]\right ) K[2]dK[2]+c_1\right ) \\ \end{align*}