Internal
problem
ID
[17883]
Book
:
INTRODUCTORY
DIFFERENTIAL
EQUATIONS.
Martha
L.
Abell,
James
P.
Braselton.
Fourth
edition
2014.
ElScAe.
2014
Section
:
Chapter
4.
Higher
Order
Equations.
Chapter
4
review
exercises,
page
219
Problem
number
:
45
Date
solved
:
Thursday, October 02, 2025 at 02:29:12 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
With initial conditions
ode:=diff(diff(y(t),t),t)+y(t) = cos(t); ic:=[y(0) = 0, D(y)(0) = 0]; dsolve([ode,op(ic)],y(t), singsol=all);
ode=D[y[t],{t,2}]+y[t]==Cos[t]; ic={y[0]==0,Derivative[1][y][0] ==0}; DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") y = Function("y") ode = Eq(y(t) - cos(t) + Derivative(y(t), (t, 2)),0) ics = {y(0): 0, Subs(Derivative(y(t), t), t, 0): 0} dsolve(ode,func=y(t),ics=ics)