Internal
problem
ID
[3474]
Book
:
Mathematical
methods
for
physics
and
engineering,
Riley,
Hobson,
Bence,
second
edition,
2002
Section
:
Chapter
14,
First
order
ordinary
differential
equations.
14.4
Exercises,
page
490
Problem
number
:
Problem
14.24
(a)
Date
solved
:
Tuesday, March 04, 2025 at 04:41:31 PM
CAS
classification
:
[_linear]
With initial conditions
ode:=diff(y(x),x)-y(x)/x = 1; ic:=y(1) = -1; dsolve([ode,ic],y(x), singsol=all);
ode=D[y[x],x]-y[x]/x==1; 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) - 1 - y(x)/x,0) ics = {y(1): -1} dsolve(ode,func=y(x),ics=ics)