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

  • Thread starter Thread starter flyingpig
  • Start date Start date
  • Tags Tags
    Mathematica
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 7K views
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

 
Physics news on Phys.org
Try using 'Exp[-x]' for the exponential rather than 'e^(-x)'.