In the above question, I could easily plot the linear equations. But I don't know how to plot $y=xe^{\frac{-1}{|x|}}$. Can you please explain me, how to draw this exponential curve?
Thank you
In the above question, I could easily plot the linear equations. But I don't know how to plot $y=xe^{\frac{-1}{|x|}}$. Can you please explain me, how to draw this exponential curve?
Thank you
With MatLab :
The result is this (after adding legend and magnification of the lines) :
Maybe your problem is the absolute value $|x|$. Don't forget that $|x|=-x$ when $x<0$ and $|x|=x$ when $x>0$. To avoid any problem at $x=0$, you can just enter yourself the values for this point.