Internal
problem
ID
[7926]
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(b)
Date
solved
:
Sunday, March 30, 2025 at 12:37:42 PM
CAS
classification
:
[_linear]
With initial conditions
ode:=x^2*diff(y(x),x)-2*y(x) = 3*x^2; ic:=y(1) = 2; dsolve([ode,ic],y(x), singsol=all);
ode=x^2*D[y[x],x]-2*y[x]==3*x^2; ic={y[1]==2}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(x**2*Derivative(y(x), x) - 3*x**2 - 2*y(x),0) ics = {y(1): 2} dsolve(ode,func=y(x),ics=ics)