Internal
problem
ID
[7481]
Book
:
Fundamentals
of
Differential
Equations.
By
Nagle,
Saff
and
Snider.
9th
edition.
Boston.
Pearson
2018.
Section
:
Chapter
2,
First
order
differential
equations.
Section
2.4,
Exact
equations.
Exercises.
page
64
Problem
number
:
26
Date
solved
:
Tuesday, September 30, 2025 at 04:38:17 PM
CAS
classification
:
[_exact, [_1st_order, `_with_symmetry_[F(x)*G(y),0]`]]
With initial conditions
ode:=tan(y(x))-2+(x*sec(y(x))^2+1/y(x))*diff(y(x),x) = 0; ic:=[y(0) = 1]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=( Tan[y[x]]-2 )+( x*Sec[y[x]]^2+1/y[x] )*D[y[x],x]==0; ic={y[0]==1}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq((x*sec(y(x))**2 + 1/y(x))*Derivative(y(x), x) + tan(y(x)) - 2,0) ics = {y(0): 1} dsolve(ode,func=y(x),ics=ics)