69.33.13 problem 842

Internal problem ID [18582]
Book : A book of problems in ordinary differential equations. M.L. KRASNOV, A.L. KISELYOV, G.I. MARKARENKO. MIR, MOSCOW. 1983
Section : Chapter 3. Section 24.2. Solving the Cauchy problem for linear differential equation with constant coefficients. Exercises page 249
Problem number : 842
Date solved : Thursday, October 02, 2025 at 03:15:05 PM
CAS classification : [[_2nd_order, _missing_y]]

\begin{align*} x^{\prime \prime }+6 x^{\prime }&=12 t +2 \end{align*}

Using Laplace method With initial conditions

\begin{align*} x \left (0\right )&=0 \\ x^{\prime }\left (0\right )&=0 \\ \end{align*}
Maple. Time used: 0.085 (sec). Leaf size: 7
ode:=diff(diff(x(t),t),t)+6*diff(x(t),t) = 12*t+2; 
ic:=[x(0) = 0, D(x)(0) = 0]; 
dsolve([ode,op(ic)],x(t),method='laplace');
 
\[ x = t^{2} \]
Mathematica. Time used: 0.046 (sec). Leaf size: 8
ode=D[x[t],{t,2}]+6*D[x[t],t]==12*t+2; 
ic={x[0]==0,Derivative[1][x][0 ]==0}; 
DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
 
\begin{align*} x(t)&\to t^2 \end{align*}
Sympy. Time used: 0.098 (sec). Leaf size: 5
from sympy import * 
t = symbols("t") 
x = Function("x") 
ode = Eq(-12*t + 6*Derivative(x(t), t) + Derivative(x(t), (t, 2)) - 2,0) 
ics = {x(0): 0, Subs(Derivative(x(t), t), t, 0): 0} 
dsolve(ode,func=x(t),ics=ics)
 
\[ x{\left (t \right )} = t^{2} \]