How do I fill the area under a curve between two $x$-values using sage plot?

For example, maybe I am using the following code:

plot(x*(x-1)*(x-2)+1,0,2,fill=True)

but I only want the area under the curve from x = 0.5 to x = 1.5 to be shaded in.

1 | initial version | asked Anonymous |

How do I fill the area under a curve between two $x$-values using sage plot?

For example, maybe I am using the following code:

plot(x*(x-1)*(x-2)+1,0,2,fill=True)

but I only want the area under the curve from x = 0.5 to x = 1.5 to be shaded in.

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.