ODE
\[ y'(x)=y(x)+x+\sin (x) \] ODE Classification
[[_linear, `class A`]]
Book solution method
Linear ODE
Mathematica ✓
cpu = 0.228335 (sec), leaf count = 28
\[\left \{\left \{y(x)\to -x-\frac {\sin (x)}{2}-\frac {\cos (x)}{2}+c_1 e^x-1\right \}\right \}\]
Maple ✓
cpu = 0.059 (sec), leaf count = 21
\[\left [y \left (x \right ) = -x -1-\frac {\cos \left (x \right )}{2}-\frac {\sin \left (x \right )}{2}+{\mathrm e}^{x} \textit {\_C1}\right ]\] Mathematica raw input
DSolve[y'[x] == x + Sin[x] + y[x],y[x],x]
Mathematica raw output
{{y[x] -> -1 - x + E^x*C[1] - Cos[x]/2 - Sin[x]/2}}
Maple raw input
dsolve(diff(y(x),x) = x+sin(x)+y(x), y(x))
Maple raw output
[y(x) = -x-1-1/2*cos(x)-1/2*sin(x)+exp(x)*_C1]