Internal
problem
ID
[15017]
Book
:
AN
INTRODUCTION
TO
ORDINARY
DIFFERENTIAL
EQUATIONS
by
JAMES
C.
ROBINSON.
Cambridge
University
Press
2004
Section
:
Chapter
9,
First
order
linear
equations
and
the
integrating
factor.
Exercises
page
86
Problem
number
:
9.1
(vi)
Date
solved
:
Thursday, October 02, 2025 at 10:01:11 AM
CAS
classification
:
[_linear]
With initial conditions
ode:=diff(y(x),x)+2*y(x)*cot(x) = 5; ic:=[y(1/2*Pi) = 1]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],x]+2*y[x]*Cot[x]==5; ic={y[Pi/2]==1}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(2*y(x)/tan(x) + Derivative(y(x), x) - 5,0) ics = {y(pi/2): 1} dsolve(ode,func=y(x),ics=ics)