Plotting with Mathematica or Wolframalpha

  • Context: Mathematica 
  • Thread starter Thread starter tolove
  • Start date Start date
  • Tags Tags
    Mathematica Plotting
Click For Summary
SUMMARY

The discussion focuses on plotting multiple functions on the same graph using Mathematica, specifically version 7. Users can combine functions by utilizing the Plot function with the syntax Plot[{f1, f2}, {x, x_min, x_max}]. For example, to plot the functions f(x) = x² and g(x) = x³ over the interval -1 ≤ x ≤ 1, the correct command is Plot[{x^2, x^3}, {x, -1, 1}]. This method effectively prevents the functions from being separated into different graphs.

PREREQUISITES
  • Basic understanding of Mathematica 7 syntax
  • Familiarity with function notation in mathematics
  • Knowledge of plotting functions in a Cartesian coordinate system
  • Experience with defining intervals for function evaluation
NEXT STEPS
  • Explore advanced plotting techniques in Mathematica, such as 3D plots and contour plots.
  • Learn about customizing plot aesthetics in Mathematica, including colors and styles.
  • Investigate the use of WolframAlpha for plotting functions and comparing results with Mathematica.
  • Study the differences between Mathematica versions to understand new features in later releases.
USEFUL FOR

Mathematics students, educators, data analysts, and anyone interested in visualizing mathematical functions using Mathematica.

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!
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K