Internal
problem
ID
[17328]
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.6
(Exact
equations
and
integrating
factors).
Problems
at
page
100
Problem
number
:
13
Date
solved
:
Thursday, March 13, 2025 at 09:27:24 AM
CAS
classification
:
[[_homogeneous, `class A`], _exact, _rational, [_Abel, `2nd type`, `class A`]]
With initial conditions
ode:=2*x-y(x)+(2*y(x)-x)*diff(y(x),x) = 0; ic:=y(1) = 3; dsolve([ode,ic],y(x), singsol=all);
ode=(2*x-y[x])+(2*y[x]-x)*D[y[x],x]==0; ic={y[1]==3}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(2*x + (-x + 2*y(x))*Derivative(y(x), x) - y(x),0) ics = {y(1): 3} dsolve(ode,func=y(x),ics=ics)