Internal
problem
ID
[25107]
Book
:
Ordinary
Differential
Equations.
By
William
Adkins
and
Mark
G
Davidson.
Springer.
NY.
2010.
ISBN
978-1-4614-3617-1
Section
:
Chapter
1.
First
order
differential
equations.
Exercises
at
page
59
Problem
number
:
13
Date
solved
:
Thursday, October 02, 2025 at 11:50:22 PM
CAS
classification
:
[_separable]
With initial conditions
ode:=diff(y(t),t)+y(t)*cos(t) = cos(t); ic:=[y(0) = 0]; dsolve([ode,op(ic)],y(t), singsol=all);
ode=D[y[t],{t,1}] +y[t]*Cos[t]== Cos[t]; ic={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) - cos(t) + Derivative(y(t), t),0) ics = {y(0): 0} dsolve(ode,func=y(t),ics=ics)