Internal
problem
ID
[8175]
Book
:
Differential
Equations:
Theory,
Technique,
and
Practice
by
George
Simmons,
Steven
Krantz.
McGraw-Hill
NY.
2007.
1st
Edition.
Section
:
Chapter
7.
Laplace
Transforms.
Section
7.5
Problesm
for
review
and
discovery.
Section
A,
Drill
exercises.
Page
309
Problem
number
:
3(c)
Date
solved
:
Sunday, March 30, 2025 at 12:47:23 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Using Laplace method With initial conditions
ode:=diff(diff(y(t),t),t)+2*diff(y(t),t)-y(t) = t*exp(-t); ic:=y(0) = 0, D(y)(0) = 1; dsolve([ode,ic],y(t),method='laplace');
ode=D[y[t],{t,2}]+2*D[y[t],t]-y[t]==t*Exp[-t]; ic={y[0]==0,Derivative[1][y][0] ==1}; DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") y = Function("y") ode = Eq(-t*exp(-t) - y(t) + 2*Derivative(y(t), t) + Derivative(y(t), (t, 2)),0) ics = {y(0): 0, Subs(Derivative(y(t), t), t, 0): 1} dsolve(ode,func=y(t),ics=ics)