Basic Plotting

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

Basic plotting functions.

This plots a graph of as a function of from 0 to .
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]=
New to Mathematica? Find your learning path »
Have a question? Ask support »