Internal
problem
ID
[16641]
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
:
17
Date
solved
:
Tuesday, January 28, 2025 at 09:14:00 AM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
With initial conditions
✓ Solution by Maple
Time used: 1.725 (sec). Leaf size: 56
dsolve([diff(x(t),t$2)+x(t)=piecewise(0<=t and t<1,t,t>=1 and t<2,2-t,t>=2,0),x(0) = 0, D(x)(0) = 0],x(t), singsol=all)
✓ Solution by Mathematica
Time used: 0.055 (sec). Leaf size: 63
DSolve[{D[x[t],{t,2}]+x[t]==Piecewise[{{t,0<=t<1},{2-t,1<=t<2},{0,t>=2}}],{x[0]==0,Derivative[1][x][0 ]==0}},x[t],t,IncludeSingularSolutions -> True]