Internal
problem
ID
[8977]
Book
:
Own
collection
of
miscellaneous
problems
Section
:
section
5.0
Problem
number
:
17
Date
solved
:
Friday, April 25, 2025 at 05:32:35 PM
CAS
classification
:
[[_2nd_order, _with_linear_symmetries]]
Solve
With initial conditions
Since both initial conditions are not at zero, then let
Solving using the Laplace transform method. Let
Taking the Laplace transform of the ode and using the relations that
The given ode now becomes an algebraic equation in the Laplace domain.
Substituting the initial conditions in above in Eq (1) gives
Solving the above equation for
Applying partial fractions decomposition results in
The inverse Laplace of each term above is now found, which gives
Adding the above results and simplifying gives
Solving for
Simplifying the solution gives
ode:=diff(diff(y(t),t),t)+3*diff(y(t),t)-4*y(t) = 6*exp(2*t-2); ic:=y(1) = 4, D(y)(1) = 5; dsolve([ode,ic],y(t),method='laplace');
Maple trace
Methods for second order ODEs: --- Trying classification methods --- trying a quadrature trying high order exact linear fully integrable trying differential order: 2; linear nonhomogeneous with symmetry [0,1] trying a double symmetry of the form [xi=0, eta=F(x)] -> Try solving first the homogeneous part of the ODE checking if the LODE has constant coefficients <- constant coefficients successful <- solving first the homogeneous part of the ODE successful
Maple step by step
ode=D[y[t],{t,2}]+3*D[y[t],t]-4*y[t]==6*Exp[2*t-2]; ic={y[1]==4,Derivative[1][y][1]==5}; DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") y = Function("y") ode = Eq(-4*y(t) - 6*exp(2*t - 2) + 3*Derivative(y(t), t) + Derivative(y(t), (t, 2)),0) ics = {y(1): 4, Subs(Derivative(y(t), t), t, 1): 5} dsolve(ode,func=y(t),ics=ics)