Internal
problem
ID
[9162]
Book
:
Second
order
enumerated
odes
Section
:
section
2
Problem
number
:
39
Date
solved
:
Sunday, March 30, 2025 at 02:24:27 PM
CAS
classification
:
[_linear]
ode:=diff(y(x),x)+y(x)*cot(x) = 2*cos(x); dsolve(ode,y(x), singsol=all);
ode=D[y[x],x]+y[x]*Cot[x]==2*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) - 2*cos(x) + Derivative(y(x), x),0) ics = {} dsolve(ode,func=y(x),ics=ics)