Internal
problem
ID
[7764]
Book
:
Engineering
Mathematics.
By
K.
A.
Stroud.
5th
edition.
Industrial
press
Inc.
NY.
2001
Section
:
Program
24.
First
order
differential
equations.
Further
problems
24.
page
1068
Problem
number
:
48
Date
solved
:
Tuesday, September 30, 2025 at 05:05:10 PM
CAS
classification
:
[_linear]
With initial conditions
ode:=diff(y(x),x)+y(x)*cot(x) = cos(x); ic:=[y(0) = 0]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],x]+y[x]*Cot[x]==Cos[x]; ic={y[0]==0}; 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 = {y(0): 0} dsolve(ode,func=y(x),ics=ics)