I had a mathematica assignment the other day that was fairly simple. I thought I did it correctly, but I guess not.
Question: Write a single Mathematica Command which will display (plot) both $y = x\sin(2x + \pi)$ and $y = e^x$ on a single set of axes with $x$ in the interval $-7 \le x \le 5$
I had put:
Plot[{xsin[2x + Pi], e^x}, {-7, x, 5}]
Could anyone explain what's wrong? Thanks.