Internal
problem
ID
[7745]
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
:
29
Date
solved
:
Tuesday, September 30, 2025 at 05:04:19 PM
CAS
classification
:
[_Bernoulli]
With initial conditions
ode:=diff(y(x),x)-y(x)*cot(x) = y(x)^2*sec(x)^2; ic:=[y(1/4*Pi) = -1]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],x]-y[x]*Cot[x]==y[x]^2*Sec[x]^2; ic={y[Pi/4]==-1}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-y(x)**2/cos(x)**2 - y(x)/tan(x) + Derivative(y(x), x),0) ics = {y(pi/4): -1} dsolve(ode,func=y(x),ics=ics)