Book
Advanced Engineering Mathematics
Author
Erwin Kreyszig
Edition
8th Edition
x = var('x') y=function('y',x) DE = diff(y,x,2)+y-2*x print "GS:", desolve(DE, [y,x], ics=[0,-1,8]) #check for particular solution yp = 2*x V = diff(yp,x,2)+yp-2*x if V == 0: print "yp = ", yp, "is a particular solution" else: print "yp = ", yp, "is not a particular solution"
Solution by:
- Zubin Mehta, Student, IIT Bombay