10.10.4 problem 4

Internal problem ID [1336]
Book : Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section : Chapter 3, Second order linear equations, section 3.6, Variation of Parameters. page 190
Problem number : 4
Date solved : Saturday, March 29, 2025 at 10:52:32 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} 4 y^{\prime \prime }-4 y^{\prime }+y&=16 \,{\mathrm e}^{\frac {t}{2}} \end{align*}

Maple. Time used: 0.003 (sec). Leaf size: 19
ode:=4*diff(diff(y(t),t),t)-4*diff(y(t),t)+y(t) = 16*exp(1/2*t); 
dsolve(ode,y(t), singsol=all);
 
\[ y = {\mathrm e}^{\frac {t}{2}} \left (t c_1 +2 t^{2}+c_2 \right ) \]
Mathematica. Time used: 0.019 (sec). Leaf size: 25
ode=4*D[y[t],{t,2}]-4*D[y[t],t]+y[t]== 16*Exp[t/2]; 
ic={}; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
\[ y(t)\to e^{t/2} \left (2 t^2+c_2 t+c_1\right ) \]
Sympy. Time used: 0.186 (sec). Leaf size: 15
from sympy import * 
t = symbols("t") 
y = Function("y") 
ode = Eq(y(t) - 16*exp(t/2) - 4*Derivative(y(t), t) + 4*Derivative(y(t), (t, 2)),0) 
ics = {} 
dsolve(ode,func=y(t),ics=ics)
 
\[ y{\left (t \right )} = \left (C_{1} + t \left (C_{2} + 2 t\right )\right ) e^{\frac {t}{2}} \]