Skip to main content
\( \newcommand{\lt}{ < } \newcommand{\gt}{ > } \newcommand{\amp}{ & } \)

Section2.1Plot Functions

The simplest plot is the graph of a function. This will first demonstrate how to plot a single function. Then it will show how to combine the plots for multiple functions on a single figure. We will need to define the formula and the window of interest.

Start with the plot of the parabola \(y=x^2-3x-4\).

The default for showing a graph is to show everything that is possible. However, you might want to only show a particular window. We do this by setting the minimum and maximum values. In addition, we might want to add labels to our axes.

Now, suppose that we wanted to see a figure with two different graphs. For example, we might want to visualize where \(y=x^2-3x-4\) and \(y=2x+2\) intersect by plotting both equations and finding the intersection.