Internal
problem
ID
[91]
Book
:
Elementary
Differential
Equations.
By
C.
Henry
Edwards,
David
E.
Penney
and
David
Calvis.
6th
edition.
2008
Section
:
Chapter
1.
First
order
differential
equations.
Section
1.5
(linear
equations).
Problems
at
page
54
Problem
number
:
19
Date
solved
:
Tuesday, March 04, 2025 at 10:42:52 AM
CAS
classification
:
[_linear]
ode:=diff(y(x),x)+y(x)*cot(x) = cos(x); dsolve(ode,y(x), singsol=all);
ode=D[y[x],x]+y[x]*Cot[x]==Cos[x]; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(y(x)/tan(x) - cos(x) + Derivative(y(x), x),0) ics = {} dsolve(ode,func=y(x),ics=ics)