63.15.4 problem 6(d)

Internal problem ID [13116]
Book : A First Course in Differential Equations by J. David Logan. Third Edition. Springer-Verlag, NY. 2015.
Section : Chapter 3, Laplace transform. Section 3.2.1 Initial value problems. Exercises page 156
Problem number : 6(d)
Date solved : Monday, March 31, 2025 at 07:34:40 AM
CAS classification : [[_2nd_order, _missing_x]]

\begin{align*} x^{\prime \prime }-2 x^{\prime }+2 x&=0 \end{align*}

Using Laplace method With initial conditions

\begin{align*} x \left (0\right )&=0\\ x^{\prime }\left (0\right )&=1 \end{align*}

Maple. Time used: 0.101 (sec). Leaf size: 9
ode:=diff(diff(x(t),t),t)-2*diff(x(t),t)+2*x(t) = 0; 
ic:=x(0) = 0, D(x)(0) = 1; 
dsolve([ode,ic],x(t),method='laplace');
 
\[ x = {\mathrm e}^{t} \sin \left (t \right ) \]
Mathematica. Time used: 0.013 (sec). Leaf size: 11
ode=D[x[t],{t,2}]-2*D[x[t],t]+2*x[t]==0; 
ic={x[0]==0,Derivative[1][x][0 ]==1}; 
DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
 
\[ x(t)\to e^t \sin (t) \]
Sympy. Time used: 0.181 (sec). Leaf size: 8
from sympy import * 
t = symbols("t") 
x = Function("x") 
ode = Eq(2*x(t) - 2*Derivative(x(t), t) + Derivative(x(t), (t, 2)),0) 
ics = {x(0): 0, Subs(Derivative(x(t), t), t, 0): 1} 
dsolve(ode,func=x(t),ics=ics)
 
\[ x{\left (t \right )} = e^{t} \sin {\left (t \right )} \]