Skip to main content
Mathovia

Algebra / Graphing and Functions

Graphing Functions: From a Rule to a Picture

Graphing a function is the same work as graphing an equation, with one useful extra: because a function returns exactly one output per input, you never have to worry about the curve doubling back on itself vertically. This lesson covers the table method that works for anything, the handful of shapes worth recognising on sight so you can skip most of the table, the key features to mark on every sketch, and how to handle a piecewise rule.

M
Written by
Mathovia Team
Editorial Team

Graphing turns a rule into something you can see. It is the fastest way to answer questions about a function that would otherwise take real algebra — where it is zero, how high it goes, whether it ever levels off.

Graphing a function by plotting the points x and f of x
Each point on the graph is an input paired with its output

What a Graph Actually Is

The graph of is the set of all points — every input paired with the output it produces.

So each point carries two facts: how far across (the input) and how far up (the output). Reading a graph is nothing more than reading those two numbers back off. See Function Notation for that skill in detail.

Because is a function, the graph automatically passes the vertical line test. That is a guarantee, not a coincidence.

The Table Method

This works for absolutely anything, and it is what to fall back on when the shape is unfamiliar.

  1. Choose inputs. Small integers around zero unless the function suggests otherwise.
  2. Evaluate the function at each.
  3. Plot the resulting points.
  4. Join them with a smooth curve, extending as far as the domain allows.

For :

A parabola with five plotted points from the table at x = -2, -1, 0, 1 and 2
Plot the table, then join the points smoothly.

Choose inputs deliberately. If the function has a square root, start where the inside is zero. If it has a denominator, avoid the value that breaks it and take points either side. If it is a parabola, centre your inputs on the vertex rather than on zero — a table from to tells you almost nothing about .

Join smoothly, not with straight segments, unless the function really is piecewise linear. And never join across a break in the domain.

Shapes Worth Knowing on Sight

Most functions you meet are one of a few basic shapes, moved around. Recognising the family lets you sketch from two or three points instead of eight.

Three curves on one plane: the line y = x, the parabola y = x squared, and the V-shaped y = absolute value of x
Three parent functions on one set of axes.
Parent functionShapeDomainRange
straight line through the originall realsall reals
parabola, opening upall reals
S-curve through the originall realsall reals
V with the point at the originall reals
half-parabola on its side
two branches, axes as asymptotes

Every other member of a family is the parent shifted, stretched or reflected. is the standard parabola moved 3 right and 1 up. A minus sign in front flips it vertically. Getting the family right first means the sketch only needs adjusting, not rebuilding.

Features Worth Marking

A good sketch is not a hundred plotted points — it is a handful of correct ones, in the right places.

A parabola with both x-intercepts, the y-intercept and the vertex each labelled
Intercepts and the turning point carry most of the information.
  • -intercept — evaluate . One substitution, always available unless 0 is outside the domain.
  • -intercepts — solve . Also called the zeros or roots. See x- and y-Intercepts.
  • Turning points — the vertex of a parabola, or any peak or trough.
  • Asymptotes — lines the curve approaches without touching, usually where the domain has a gap.
  • Endpoints — where a restricted domain stops, drawn filled or open.

Mark those and the shape between them is nearly forced.

Increasing, Decreasing, and Turning

Read a graph left to right, the way you read text.

  • Increasing where the curve rises as you move right.
  • Decreasing where it falls.
  • Constant where it is flat.

A turning point is where the behaviour switches. decreases on and increases on , turning at the origin.

These intervals are always stated in terms of , not — a common slip. The parabola above is decreasing on the interval , not on ””.

Graphing a Piecewise Function

A piecewise function uses different rules on different stretches of the domain. Graph each rule only where it applies. Piecewise Functions goes through evaluating, the domain and the boundary conventions in detail.

A piecewise graph with a falling segment ending in a filled dot and a horizontal ray beginning with an open circle
Filled dot means included; open circle means excluded.

The boundary is where care is needed:

  • Filled dot — that endpoint belongs to the graph ( or ).
  • Open circle — it does not ( or ).
  • Never join across the break. The pieces are separate.

Exactly one dot should be filled at any boundary value in the domain — two filled dots would mean two outputs for one input, breaking the function rule.

Using Domain and Range as a Check

Before you commit to a sketch, compare it against what you already know.

If you worked out the domain is , your curve should start at and go right, with nothing to the left. If the range is , the lowest point should sit at . A sketch that contradicts either one has an error in it.

This works in both directions: the graph is also the most reliable way to find the range in the first place.

Worked Example A: A Line

Graph .

The -intercept is . Slope 2 means up 2, right 1, giving . Two points is enough for a line; confirms it.

Worked Example B: A Parabola

Graph .

  • -intercept: .
  • -intercepts: , so and .
  • Vertex: halfway between the roots at , where .

Plot , , , and the mirror point , then join. Range: .

Worked Example C: A Square Root

Graph .

The domain starts where the inside is zero, at . Table:

12510
0123

Perfect squares plus one make the arithmetic clean. The curve starts at and rises, flattening as it goes. Range: .

Worked Example D: An Absolute Value

Graph .

The V has its point where the inside is zero, at , giving . One unit either side gives and ; two units gives and . Draw two straight arms from the point.

Worked Example E: A Reciprocal

Graph .

Domain excludes 0, so there is a vertical asymptote there and a horizontal one at . Take points either side:

Two separate branches. Do not join them across the asymptote.

Common Mistakes to Avoid

  • Too few points on a curve. Two points only ever determine a line.
  • Joining across a break. A gap in the domain means separate pieces.
  • Plotting points as . The input goes across.
  • Centring the table on zero regardless. Put the points where the action is.
  • Straight segments between points. Most functions curve.
  • Filling both dots at a piecewise boundary. That would give one input two outputs.
  • Extending a restricted domain. has nothing to the left of the origin.
  • Ignoring a negative sign in front. opens downward.

Where Graphing Leads Next

  • Transformations — shifting, stretching and reflecting a parent shape instead of tabulating.
  • Solving equations graphically, by reading where two curves cross.
  • Systems and inequalities, where solutions are regions rather than points.
  • Domain and range, both easiest to read off a picture.
  • Calculus, where the derivative formalises increasing, decreasing and turning points.
  • Data and modelling, where a fitted curve is judged largely by eye.

Practice Problems

Work each one before opening the answer.

Problem 1. Give three points on the graph of .

Show answer

, , .

Problem 2. What is the -intercept of ?

Show answer

, so .

Problem 3. Find the -intercepts of .

Show answer

, so and .

Problem 4. Where is the vertex of ?

Show answer

, and it opens upward.

Problem 5. Where does the graph of begin?

Show answer

At , where the inside of the root is zero.

Problem 6. Where is the point of the V for ?

Show answer

At .

Problem 7. Which parent function does belong to, and what has changed?

Show answer

The cubic , shifted 1 right and reflected vertically by the minus sign.

Problem 8. On what interval is decreasing?

Show answer

— it falls until the vertex, then rises.

Problem 9. Complete a table for at .

Show answer

.

Problem 10. For a piecewise function with for and for , what happens at ?

Show answer

The first piece is included, so there is a filled dot at and an open circle at .

Problem 11. Why does the graph of come in two pieces?

Show answer

The domain excludes , so there is a vertical asymptote there and the branches never join.

Problem 12. A graph runs from a filled dot at up to a filled dot at . State its domain and range.

Show answer

Domain ; range .

Quick Reference

StepWhat to do
1. DomainFind it first — it says how far to draw
2. RecogniseIdentify the parent shape if you can
3. Intercepts for ; solve for
4. Turning pointVertex or any peak/trough
5. TableExtra points around the interesting part
6. JoinSmoothly, never across a domain break
7. CheckCompare against the range
PiecewiseGraph each rule only on its own interval
Filled vs open dotIncluded vs excluded endpoint

Graphing rests on function notation for evaluating and on functions for the guarantee that the picture passes the vertical line test. Read the extent horizontally as the domain and vertically as the range; the general table technique is in Graphing Equations. More Algebra lessons are available.

Frequently Asked Questions

How do you graph a function?+

Pick several input values, evaluate the function at each to get output values, plot the resulting points, and join them with a smooth curve. Choosing inputs on both sides of any turning point or intercept gives the most useful picture.

How many points do you need to graph a function?+

A line needs two, though three is a sensible check. A parabola needs about five, spread either side of the vertex. Anything unfamiliar deserves seven or more until the shape is clear.

What is a parent function?+

A parent function is the simplest form of a family of functions, such as for quadratics or for absolute value. Every other member of the family is that shape shifted, stretched or reflected.

What features should you mark when graphing a function?+

The -intercepts where the graph crosses the horizontal axis, the -intercept where it crosses the vertical axis, any turning point such as a vertex, and any asymptote the curve approaches but never reaches.

How do you graph a piecewise function?+

Graph each piece only over the interval where its rule applies, then mark the boundaries: a filled dot where the endpoint is included and an open circle where it is not. The pieces do not have to join up.

Why does a function graph never fail the vertical line test?+

Because a function returns exactly one output for each input. If a vertical line met the graph twice, that single input would have two outputs, which contradicts the definition of a function.

Related lessons