# How to print out line equations? (such as y=x^2)

1. Dec 15, 2004

### Gary King

If I have several graph equations like the following:

y = x
y = |x|
y = x^2
y = x^3
y = 2^x

How can I print these out when they are laid out on a graph? What program should I use?

2. Dec 15, 2004

### chroot

Staff Emeritus
You can use Excel, or gnuplot, or any of the other ten million graphing utilities available on the web. Use google.

- Warren

3. Dec 15, 2004

### Gary King

Could you show me a screenshot of how it would look (the values and the graph) completed for y = x in Excel?

the attached is what I have so far: http://img139.exs.cx/img139/9320/excel7rr.jpg

Last edited by a moderator: Dec 15, 2004
4. Dec 15, 2004

### chroot

Staff Emeritus
Put a range of x-values in column A, say rows 1 through 20. Insert x-values ranging from say -10 to 10.

Type "=ABS($A1)" into cell B1. Drag a box around cells B1 through B20, and hit Edit->Fill->Down. Type "=$A1^2" into cell C1. Drag a box around cells C1 through C20, and hit Edit->Fill->Down.

...Continue adding all the columns you need.

Select all the columns, and hit the Chart button. Create the chart as usual.

- Warren

5. Dec 15, 2004

### chroot

Staff Emeritus
Hint: Use an x-y scatter chart, not a plain line chart.

- Warren

6. Dec 15, 2004

### Gary King

7. Dec 16, 2004

### Staff: Mentor

And if you're plotting points generated from an equation, not experimental data points, choose the sub-type of scatter chart that gives you "data points connected by smoothed lines without markers".