Internal
problem
ID
[6313]
Book
:
Fundamentals
of
Differential
Equations.
By
Nagle,
Saff
and
Snider.
9th
edition.
Boston.
Pearson
2018.
Section
:
Chapter
2,
First
order
differential
equations.
Section
2.3,
Linear
equations.
Exercises.
page
54
Problem
number
:
20
Date
solved
:
Wednesday, March 05, 2025 at 12:33:49 AM
CAS
classification
:
[_linear]
With initial conditions
ode:=diff(y(x),x)+3*y(x)/x+2 = 3*x; ic:=y(1) = 1; dsolve([ode,ic],y(x), singsol=all);
ode=D[y[x],x]+3*y[x]/x+2==3*x; ic={y[1]==1}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-3*x + Derivative(y(x), x) + 2 + 3*y(x)/x,0) ics = {y(1): 1} dsolve(ode,func=y(x),ics=ics)