Internal
problem
ID
[17676]
Book
:
Differential
equations.
An
introduction
to
modern
methods
and
applications.
James
Brannan,
William
E.
Boyce.
Third
edition.
Wiley
2015
Section
:
Chapter
4.
Second
order
linear
equations.
Section
4.5
(Nonhomogeneous
Equations,
Method
of
Undetermined
Coefficients).
Problems
at
page
260
Problem
number
:
37
Date
solved
:
Tuesday, January 28, 2025 at 10:53:53 AM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
With initial conditions
✓ Solution by Maple
Time used: 1.556 (sec). Leaf size: 41
dsolve([diff(y(t),t$2)+y(t)=piecewise(0<=t and t<=Pi,t,t>Pi,Pi*exp(Pi-t)),y(0) = 0, D(y)(0) = 1],y(t), singsol=all)
✓ Solution by Mathematica
Time used: 0.096 (sec). Leaf size: 47
DSolve[{D[y[t],{t,2}]+y[t]==Piecewise[{ {t,0<=t<=Pi}, {Pi*Exp[Pi-t],t>Pi} }],{y[0]==0,Derivative[1][y][0] == 1}},y[t],t,IncludeSingularSolutions -> True]