How to Graph a Function

A function assigns one output to each allowed input. The graph is the set of pairs . This lesson graphs two rules from scratch: a straight line, then a curve that turns. Each step shows the arithmetic, the point you plot, and the line you type.

The handbook page on pairs on a live board names domain, range, and graph, then goes on to increase, decrease, and the diagonal flip. Stay here until both figures below match the tables.

Graph a line

The first rule is .

Drag P along y=2x+1. The five fixed points are the table rows x=0,1,2,3,4. Every height on the curve is 2x+1.

Write the line

The graph starts as one line of text:

y = 2x + 1

2x means two times . 2*x is the same product. Spaces do not change the rule, so y=2x+1 is the same line. To choose the name yourself, type f(x) = 2x + 1. That is the same curve, and the name is the you wrote.

A bare 2x + 1 also draws, and the row comes out as . In this lesson every graph is typed with y =, so the algebra row reads f: y = 2x + 1.

That line is the same shape as a Desmos expression row. Sliders and the Desmos rows themselves are on how to use Desmos.

The intercept, then the slope

Put into the rule.

Plot . This point sits on the vertical axis. It is the intercept.

Put in next.

Plot . From you moved right and up . That rise over that run is the slope, . Two points already determine the line. The rest of the table checks that the same step keeps landing on it.

Three more rows

Keep the multiplication visible. Do not jump to the finished height.

Now the table is only a record of those five calculations.

Point
01
13
25
37
49

Plot and first. Then plot , , and . All five sit on the line through the first pair. Draw that line. On the board above, those five marks are fixed. They are the table, and they do not move.

Check a point that was not in the table

The line claims every input, not only the five you listed.

sits halfway in height between and , and halfway in input as well.

sits halfway between and . If either check misses the line, a row of the table was added wrong.

Type it, then add the points

Open the graphing workbench. No account is required. In Algebra, type

y = 2x + 1

and press Enter. The algebra row reads f: y = 2x + 1. The board shows the line. You do not plot the five rows before the line exists. The expression is the whole set of pairs. Zooming changes the window, not the rule.

On the next row type

A = (0, 1)

Press Enter. is the intercept, and it sits on the line. Then type

B = (2, 5)

sits on the line too, because the table already gave height at . Then type

C = (2, 4)

is not on the line. At the rule requires height , so a mark at height hangs below the graph. A point you type as a fixed pair does not follow the rule. It only lies on the graph when its two numbers match a row.

Drag the line

On the board at the top of this lesson, starts at . Drag it. It has to stay on , so the height you read is the value of the formula. Move right by and the height rises by . The five fixed marks stay where the table put them.

Graph a curve that turns

Two points determined the line. They do not determine the next rule. falls, reaches a low point, and rises. A straight stroke through two of its points misses the rest.

Write the square with a caret

Type

y = x^2 - 2x - 3

The square is x^2, with a caret. x2 is not that square. The row may be accepted, and still no curve appears, because that name has no height. Parentheses give the same curve under another writing:

f(x) = (x-1)^2 - 4

is the square of the distance from . Subtract and the low point is below the axis, at input . Either line is the graph. This lesson types the first one.

Five rows, with the square written out

Point
-10
0-3
1-4
2-3
30

Read the heights in order: . They fall, then rise. The low point in the table is . The heights match on either side of : and are both , and and are both . Those last two points sit on the horizontal axis. They are the cuts.

The vertex formula and the test that counts the cuts are on the handbook page for quadratic functions. Here the job is the picture: plot the five points, then draw a smooth curve through them. Do not join them with straight segments. The segment from to passes through . The table point is below that segment, so a straight stroke misses the curve.

Drag P along y=x^2-2x-3. The fixed marks are the axis cuts (-1, 0) and (3, 0), and the low point (1, -4). Left of x=1 the height falls as you move right. Right of x=1 it rises.

One input past the table

The right arm has only been checked up to .

is above the axis, to the right of . The curve keeps rising there. The same step on the left, , gives , so matches it. The symmetry you saw in the table continues past the five rows.

Type the curve, then the three marks

In Algebra on the graphing workbench, type

y = x^2 - 2x - 3

and press Enter. The row reads f: y = x^2 - 2x - 3, and the board shows the curve turning at a low point. Then type the three marks from the table, one row at a time:

V = (1, -4)

R = (-1, 0)

S = (3, 0)

sits at the bottom of the curve. and sit where the curve meets the horizontal axis. If a mark floats off the curve, the pair does not match the rule you just typed.

Drag the curve

On the board above, starts at the low point . Drag it. It stays on .

Move to the left of . As the input gets smaller, the height rises: from toward and then . Move to the right of and the height rises the other way, through toward . The three fixed marks stay put. They are the cuts and the low point, not passengers on .

Say it in the chat

The Algebra rows above are what you type when you already know the line. The other way is a sentence. Open chat with a live board. You can try it without an account.

The message box sits at the bottom of the chat. Its hint is “Ask anything…”. Write the rule in that box and press Send. The graph is the pane under the chat on a narrow window, and the pane beside the chat on a wide one. That graph is where the sentence is drawn. You do not also type the expression into Algebra for this path.

The line, as one message

Send this:

Graph . Mark and on the line, and put a point on the line I can drag.

The graph under the chat draws the line, those two marks, and a point that stays on the line when you drag it.

After the first message. Fixed marks at (0, 1) and (2, 5). Drag P; it stays on y=2x+1.

Move that point right by and its height rises by . To put the rest of the table on the same graph, send a second message in the same chat:

Also mark , , and .

Those three join the first two. The line is unchanged, because each pair is a row of .

After the second message. (1, 3), (3, 7), and (4, 9) are on the same line. Drag P.

One more message checks a point that misses:

Also mark .

At the rule requires height , so hangs below the line. The line does not bend down to meet it.

After the third message. (2, 4) is below the line. At x=2 the line is at height 5. Drag P; it stays on the line.

The curve, as one message

Press New chat, so the line is not still on the graph. Then send:

Graph . Mark the low point and the axis cuts and , and put a point on the curve I can drag.

The graph under the chat draws the turn, those three marks, and a point that stays on the curve. Drag it left of : as the input gets smaller, the height rises. Drag it right of : the height rises the other way. The three marks stay put.

If the message said and the curve did not appear, send the correction in that same chat:

Use with a caret, not , and draw the curve again.

The square is the caret. The graph follows that correction.

The same steps on the next rule

Write the rule as y = …. Build a short table that includes an intercept, and a turn when the rule has one. Plot those points. Compute one input that was not in the table. Then either type that y = … line into Algebra on the graphing workbench, or send it as a sentence in the message box and read the graph under the chat.

GoodMaith is the place those lines are objects on a board. The message box asks for the figure. The graph under the chat is where it shows up.

Spot a mistake in this post?