I want to make with Mathematica the following plot:
(I.e., an instructive figure that shows what happens to the function after derivative.)
Let’s say that we have
p1 = Plot[x^2, {x, -1, 1}];
p2 = Plot[2 x, {x, -1, 1}];
I am familiar with the Show function, but it just shows one plot over the other.
I came across Overlay and its Alignment option, but I didn’t understand how it can help me.
And most Important - I need to export to composite figure to a pdf file in the end, so Grid[{[p1,p2}}] doesn’t seem to help either.
Any idea?
