Internal
problem
ID
[14703]
Book
:
DIFFERENTIAL
EQUATIONS
by
Paul
Blanchard,
Robert
L.
Devaney,
Glen
R.
Hall.
4th
edition.
Brooks/Cole.
Boston,
USA.
2012
Section
:
Chapter
1.
First-Order
Differential
Equations.
Review
Exercises
for
chapter
1.
page
136
Problem
number
:
31
Date
solved
:
Thursday, March 13, 2025 at 04:15:36 AM
CAS
classification
:
[[_linear, `class A`]]
With initial conditions
ode:=diff(y(t),t) = 2*y(t)+cos(4*t); ic:=y(0) = 1; dsolve([ode,ic],y(t), singsol=all);
ode=D[y[t],t]==2*y[t]+Cos[4*t]; ic={y[0]==1}; DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") y = Function("y") ode = Eq(-2*y(t) - cos(4*t) + Derivative(y(t), t),0) ics = {y(0): 1} dsolve(ode,func=y(t),ics=ics)