Following prof's instruction, I changed how to define x.
I also added title "Envelope Theorem" and made other minor modifications to make the graph look tidier..