Using Excel To Graph Functions
Using Excel To Graph Functions
Example: Suppose a company has a cost function of C(x) = 2x2 + .5x + 150 and
a revenue function of R(x) = -x2 + 57x. Generate a table of values for 0 < x < 30.
I. Use EXCEL to generate function values.
1. Enter Headings in columns A, B, C, D. (X values, Revenue, Cost,)
2. In the first column enter the x values you want to find the revenue and cost for.
a. Enter 0 in A2 and 1 in A3.
b. Highlight A2 and A3.
c. Move the cursor to the bottom left until a plus sign appeals.
d. Hold down the left button and drag the mouse down until a 30 appears.
+
3. In B2 enter the formula + -1*A2^2+57*A2. ( NOTE: The + indicates that
you are going to type in a
4. In C2 enter the formula +2*A2^2 +.5*A2+150. formula, ^ is the symbol for
exponents and * is the
multiplication symbol. )
• Move the mouse to the lower right hand corner of cell C2 untill you
see a small plus sign.
• Then, holding down the left mouse button, drag your mouse down to
the last row.
6. Your table should look like the one below.
• Double click on the x-axis and experiment with Patterns and Scale.
1000
Revenue
800 Cost
600
$ 400
200
0
0 5 10 15 20
Quantity
IV. Review
1. Create a table of points. For a nonlinear function you will need a lot of points.
Always create more data then you need.
x 4.5 7 9 10 15 20 33 50
•
•
• Click on Chart
• Click on Trendline