3.15 problem Problem 15

Internal problem ID [2144]

Book: Differential equations and linear algebra, Stephen W. Goode and Scott A Annin. Fourth edition, 2015
Section: Chapter 1, First-Order Differential Equations. Section 1.6, First-Order Linear Differential Equations. page 59
Problem number: Problem 15.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

Time used: 0.003 (sec). Leaf size: 34

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

\[ y \relax (x ) = \frac {x \ln \relax (x )}{m +1}-\frac {x}{m^{2}+2 m +1}+x^{-m} c_{1} \]

Solution by Mathematica

Time used: 0.047 (sec). Leaf size: 29

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

\begin{align*} y(x)\to \frac {x ((m+1) \log (x)-1)}{(m+1)^2}+c_1 x^{-m} \\ \end{align*}