Book
Advanced Engineering Mathematics
Author
Erwin Kreyszig
Edition
8th Edition
x = var('x')
y = function('y',x)
DE = diff(y, x) + y - x^2+2
a=desolve(DE, y,x)
print a
print
# validating the output
s= e^(-x)+x^2-2*x
diff(s,x) + s - x^2+2Solution by:
- Ankur Khurana , Student, ITM Gurgaon
- Gaurav Luthra, Student, KIIT Gurgaon