Plot multiple functions on same graph in Mathematica

  • Context: Mathematica 
  • Thread starter Thread starter tolove
  • Start date Start date
  • Tags Tags
    Mathematica Plotting
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
tolove
Messages
164
Reaction score
1
Apologies if this is readily available, but I can't seem to find an example of it.

How do I go about plotting multiple functions on the same graph? It keeps splitting my functions up into separate graphs. Nothing complicated, just something like two planes intersecting.
 
Physics news on Phys.org
If you want to plot something like ##f(x)=x^{2}## and ##g(x)=x^{3}## on the same graph with ##x## interval ##-1 \leq x \leq 1##, using Mathematica, you write Plot[{x^2, x^3},{x,-1,1}]. At least this works in Mathematica 7.
 
  • Like
Likes   Reactions: 1 person
hilbert2 said:
If you want to plot something like ##f(x)=x^{2}## and ##g(x)=x^{3}## on the same graph with ##x## interval ##-1 \leq x \leq 1##, using Mathematica, you write Plot[{x^2, x^3},{x,-1,1}]. At least this works in Mathematica 7.

Thanks! Works!