I want to graph the Riemann sum (upper sum) of $y=x^2$ with $1\leq x\leq 4$ using 6 rectangles. I want the rectangles to be green.
On the Wolfram Mathworld website, I can render exactly what I want and I get the following:

Now, I am trying to render exactly the same thing in Mathematica itself, but I have absolutely no idea what to do.
I already tried using the following code:
Show[DiscretePlot[x^2, {x, 1, 4, 0.5}, ExtentSize -> Left], Plot[x^2, {x, 0, 4}]]
which renders the following:

How should I modify my code to get the picture that the Wolfram Alpha website renders? Thanks in advance.






DiscretePlot, you'll find lots and lots which change the styling. Have you looked at these? – Szabolcs Jan 18 '15 at 14:59BaseStyle-> EdgeForm[Black]inShow? Alternatively,BaseStyle-> EdgeForm[Black]orPlotStyle-> EdgeForm[Black]inDiscretePlot? – kglr Jan 18 '15 at 15:47