Internal
problem
ID
[17929]
Book
:
INTRODUCTORY
DIFFERENTIAL
EQUATIONS.
Martha
L.
Abell,
James
P.
Braselton.
Fourth
edition
2014.
ElScAe.
2014
Section
:
Chapter
5.
Applications
of
Higher
Order
Equations.
Exercises
5.3,
page
249
Problem
number
:
18
Date
solved
:
Thursday, October 02, 2025 at 02:29:58 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
With initial conditions
ode:=diff(diff(x(t),t),t)+4*diff(x(t),t)+13*x(t) = piecewise(0 <= t and t < Pi,1,Pi <= t and t < 2*Pi,1-t,2*Pi <= t,0); ic:=[x(0) = 0, D(x)(0) = 0]; dsolve([ode,op(ic)],x(t), singsol=all);
ode=D[x[t],{t,2}]+x[t]==Piecewise[{{1,0<=t<Pi},{1-t,Pi<=t<2*Pi},{0,t>=2*Pi}}]; ic={x[0]==0,Derivative[1][x][0 ]==0}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") ode = Eq(-Piecewise((1, (t >= 0) & (t < pi)), (1 - t, (t >= pi) & (t <= 2*pi)), (0, t >= 2*pi)) + x(t) + Derivative(x(t), (t, 2)),0) ics = {x(0): 0, Subs(Derivative(x(t), t), t, 0): 0} dsolve(ode,func=x(t),ics=ics)