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