Why is Mathematica giving an error when trying to plot xe^{-x}?

  • Thread starter flyingpig
  • Start date
  • Tags Tags
    Mathematica
1 reply · 7K views · last reply
flyingpig
Messages
2,574
Reaction score
1

Homework Statement



I am trying to plot [tex]xe^{-x}[/tex] by using Plot[x*e^(-x), {x, 0, 5}] and it keeps telling me that

Plot::exclul: must be a list of equalities or real-valued functions.

So I tried

Plot[x*e^(-x), {x, 0, 5}, PlotRange -> {-10, 10}]

Still not working



The Attempt at a Solution

 
Try using 'Exp[-x]' for the exponential rather than 'e^(-x)'.