Internal
problem
ID
[8181]
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
B,
Challenge
Problems.
Page
310
Problem
number
:
3
Date
solved
:
Sunday, March 30, 2025 at 12:47:31 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Using Laplace method With initial conditions
ode:=diff(diff(i(t),t),t)+2*diff(i(t),t)+3*i(t) = piecewise(0 < t and t < 2*Pi,30,2*Pi <= t and t <= 5*Pi,0,5*Pi < t and t < infinity,10); ic:=i(0) = 8, D(i)(0) = 0; dsolve([ode,ic],i(t),method='laplace');
ode=D[i[t],{t,2}]+2*D[i[t],t]+3*i[t]==Piecewise[{{30,0<t<2*Pi},{0,2*Pi<= t <= 5*Pi},{10,5*Pi<t<Infinity}}]; ic={i[0]==8,Derivative[1][i][0]==0}; DSolve[{ode,ic},i[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") i = Function("i") ode = Eq(-Piecewise((30, (t > 0) & (t < 2*pi)), (0, (t >= 2*pi) & (t <= 5*pi)), (10, (t < oo) & (t > 5*pi))) + 3*i(t) + 2*Derivative(i(t), t) + Derivative(i(t), (t, 2)),0) ics = {i(0): 8, Subs(Derivative(i(t), t), t, 0): 0} dsolve(ode,func=i(t),ics=ics)