1.8 problem 8

Internal problem ID [7324]

Book: First order enumerated odes
Section: section 1
Problem number: 8.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [[_linear, `class A`]]

\[ \boxed {y^{\prime }-b y=x a} \]

Solution by Maple

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

dsolve(diff(y(x),x)=a*x+b*y(x),y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {{\mathrm e}^{b x} c_{1} b^{2}-a x b -a}{b^{2}} \]

Solution by Mathematica

Time used: 0.054 (sec). Leaf size: 25

DSolve[y'[x]==a*x+b*y[x],y[x],x,IncludeSingularSolutions -> True]
                                                                                    
                                                                                    
 

\[ y(x)\to -\frac {a b x+a}{b^2}+c_1 e^{b x} \]