Internal
problem
ID
[10298]
Book
:
First
order
enumerated
odes
Section
:
section
1
Problem
number
:
28
Date
solved
:
Tuesday, September 30, 2025 at 07:18:28 PM
CAS
classification
:
[_linear]
ode:=diff(y(x),x) = cos(x)+y(x)/x; dsolve(ode,y(x), singsol=all);
ode=D[y[x],x]==Cos[x]+y[x]/x; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-cos(x) + Derivative(y(x), x) - y(x)/x,0) ics = {} dsolve(ode,func=y(x),ics=ics)