Internal
problem
ID
[6992]
Book
:
A
First
Course
in
Differential
Equations
with
Modeling
Applications
by
Dennis
G.
Zill.
12
ed.
Metric
version.
2024.
Cengage
learning.
Section
:
Chapter
1.
Introduction
to
differential
equations.
Review
problems
at
page
34
Problem
number
:
19
Date
solved
:
Wednesday, March 05, 2025 at 04:01:32 AM
CAS
classification
:
[_linear]
With initial conditions
ode:=x*diff(y(x),x)+y(x) = 2*x; ic:=y(x__0) = 1; dsolve([ode,ic],y(x), singsol=all);
ode=x*D[y[x],x]+y[x]==2*x; ic={y[x0]==1}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(x*Derivative(y(x), x) - 2*x + y(x),0) ics = {y(x__0): 1} dsolve(ode,func=y(x),ics=ics)