Internal
problem
ID
[7929]
Book
:
Differential
Equations:
Theory,
Technique,
and
Practice
by
George
Simmons,
Steven
Krantz.
McGraw-Hill
NY.
2007.
1st
Edition.
Section
:
Chapter
1.
What
is
a
differential
equation.
Problems
for
Review
and
Discovery.
Page
53
Problem
number
:
2(e)
Date
solved
:
Sunday, March 30, 2025 at 12:37:52 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(1) = 1; dsolve([ode,ic],y(x), singsol=all);
ode=D[y[x],x]==(x+y[x])/(x-y[x]); ic={y[1]==1}; 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(1): 1} dsolve(ode,func=y(x),ics=ics)