This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Basic Plotting

Plot[f,{x,xmin,xmax}]plot f as a function of x from xmin to xmax
Plot[f,{x,x0,x1,...,xk}]plot f over a series of segments, potentially breaking the curve at each of the xi
Plot[{f1,f2,...},{x,xmin,xmax}]plot several functions together

Basic plotting functions.

This plots a graph of sin (x) as a function of x from 0 to 2.
In[1]:=
Click for copyable input
Out[1]=
You can plot functions that have singularities. Mathematica will try to choose appropriate scales.
In[2]:=
Click for copyable input
Out[2]=
The singularities can be omitted from the plot by specifying them in the plot's range.
In[3]:=
Click for copyable input
Out[3]=
You can give a list of functions to plot. A different color will automatically be used for each function.
In[4]:=
Click for copyable input
Out[4]=
This finds the numerical solution to a differential equation, as discussed in "Numerical Differential Equations".
In[5]:=
Click for copyable input
Out[5]=
Here is a plot of the solution.
In[6]:=
Click for copyable input
Out[6]=