Internal
problem
ID
[17361]
Book
:
Differential
equations.
An
introduction
to
modern
methods
and
applications.
James
Brannan,
William
E.
Boyce.
Third
edition.
Wiley
2015
Section
:
Chapter
2.
First
order
differential
equations.
Section
2.7
(Substitution
Methods).
Problems
at
page
108
Problem
number
:
12
Date
solved
:
Monday, March 31, 2025 at 03:59:46 PM
CAS
classification
:
[[_homogeneous, `class A`], _rational, [_Abel, `2nd type`, `class A`]]
With initial conditions
ode:=diff(y(x),x) = (x+y(x))/(x-y(x)); ic:=y(5) = 8; dsolve([ode,ic],y(x), singsol=all);
ode=D[y[x],x]==(x+y[x])/(x-y[x]); ic={y[5]==8}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(Derivative(y(x), x) - (x + y(x))/(x - y(x)),0) ics = {y(5): 8} dsolve(ode,func=y(x),ics=ics)