Internal
problem
ID
[7828]
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.
Section
1.4
First
Order
Linear
Equations.
Page
15
Problem
number
:
1(d)
Date
solved
:
Sunday, March 30, 2025 at 12:28:00 PM
CAS
classification
:
[[_linear, `class A`]]
ode:=diff(y(x),x)+y(x) = 2*x*exp(-x)+x^2; dsolve(ode,y(x), singsol=all);
ode=D[y[x],x]+y[x]==2*x*Exp[-x]+x^2; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x**2 - 2*x*exp(-x) + y(x) + Derivative(y(x), x),0) ics = {} dsolve(ode,func=y(x),ics=ics)