63.1.103 problem 150

Internal problem ID [15543]
Book : DIFFERENTIAL and INTEGRAL CALCULUS. VOL I. by N. PISKUNOV. MIR PUBLISHERS, Moscow 1969.
Section : Chapter 8. Differential equations. Exercises page 595
Problem number : 150
Date solved : Thursday, October 02, 2025 at 10:19:43 AM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

\begin{align*} y^{\prime \prime }+y^{\prime }-2 y&=8 \sin \left (2 x \right ) \end{align*}
Maple. Time used: 0.003 (sec). Leaf size: 27
ode:=diff(diff(y(x),x),x)+diff(y(x),x)-2*y(x) = 8*sin(2*x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = {\mathrm e}^{x} c_2 +{\mathrm e}^{-2 x} c_1 -\frac {2 \cos \left (2 x \right )}{5}-\frac {6 \sin \left (2 x \right )}{5} \]
Mathematica. Time used: 0.011 (sec). Leaf size: 35
ode=D[y[x],{x,2}]+D[y[x],x]-2*y[x]==8*Sin[2*x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to c_1 e^{-2 x}+c_2 e^x-\frac {2}{5} (3 \sin (2 x)+\cos (2 x)) \end{align*}
Sympy. Time used: 0.101 (sec). Leaf size: 31
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-2*y(x) - 8*sin(2*x) + Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} e^{- 2 x} + C_{2} e^{x} - \frac {6 \sin {\left (2 x \right )}}{5} - \frac {2 \cos {\left (2 x \right )}}{5} \]