## How to graph an equation

*Article updated on February 05, 2018*

The picture above shows the following equation

x^3+3*x^2-3

plotted on an x y scatter chart. Here are the instructions on how I built this chart:

- Type -10 and -9 in cell A2:A3
- Select cell A2:A3 and click and hold on the black dot.
- Drag down until you see the number 10.

- Release the mouse button
- Select cell B2 and type: =A2^3+3*A2^2-3
- Press Enter
- Double click on dot in the lower right corner. This copies the formula to cells below as far as there are cells containing values in column A.

### Insert x y scatter chart

- Go to tab "Insert" on the ribbon
- Click on scatter chart icon
- Click on the scatter chart you prefer, I chose Scatter with straight lines.

### Change the x and y axis minimum and maximum value

- Right-click on x axis
- Click on "Format axis..."
- Change minimum and maximum value
- Change major units

Repeat with y axis.

### Format x and y axis

- Select x axis again
- Click on Fill and Line icon

- Select "Solid Line" and pick a color.

- Repeat with y axis

### Download Excel *.xlsx file

Excelxor is such a great website for inspiration, I am really impressed by this post Which numbers add up to […]

Mr.Excel had a "challenge of the month" June/July 2008 about Wildcard VLOOKUP: "The data in column A contains a series […]

The MEDIAN function lets you count overlapping dates between two date ranges. If you have more than two date ranges […]

In this article I will demonstrate two techniques for counting per row. The first example is simple and straightforward. The second example is a […]

The POWER function calculates a number raised to a power. Excel Function Syntax POWER(number, power) Arguments number Required. The number […]

This post describes how to add a map (background picture) to a chart. The following animated picture shows a scatter […]

This picture below shows you a column chart with pictures (flags) below each column. Watch this video to learn how […]

I demonstrated in a post from March 2013 how to create Custom data labels in a chart. Unfortunately, that technique worked only […]

My fascination for charts and vba continues (see previous posts). This post demonstrates how to highlight a group of values […]

This tutorial shows you how to add a line to a chart, it combines two types of charts, column and scatter […]

### Leave a Reply

**How to add a formula to your comment:**

<code>your formula</code>

Remember to convert less than and larger than signs to html character entities before you post your comment.

**How to add VBA code to your comment:**

[vb 1="vbnet" language=","]

VBA code

[/vb]

**How to add a picture to your comment:**

Upload picture to postimage.org

Add picture link to comment.

**Contact Oscar**

You can contact me through this webpage

## Share this article