Internal
problem
ID
[7455]
Book
:
Fundamentals
of
Differential
Equations.
By
Nagle,
Saff
and
Snider.
9th
edition.
Boston.
Pearson
2018.
Section
:
Chapter
2,
First
order
differential
equations.
Section
2.3,
Linear
equations.
Exercises.
page
54
Problem
number
:
37
Date
solved
:
Tuesday, September 30, 2025 at 04:36:18 PM
CAS
classification
:
[[_linear, `class A`]]
With initial conditions
ode:=diff(x(t),t) = alpha-beta*cos(1/12*Pi*t)-k*x(t); ic:=[x(0) = x__0]; dsolve([ode,op(ic)],x(t), singsol=all);
ode=D[x[t],t]==\[Alpha]-\[Beta]*Cos[Pi*t/12]-k*x[t]; ic={x[0]==x0}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") Alpha = symbols("Alpha") BETA = symbols("BETA") k = symbols("k") x = Function("x") ode = Eq(-Alpha + BETA*cos(pi*t/12) + k*x(t) + Derivative(x(t), t),0) ics = {x(0): x__0} dsolve(ode,func=x(t),ics=ics)