How to Graph a Function- Complete Tutorial

What Is a Function Graph?

A function graph is a visual representation of all the points that satisfy an equation. If you have y = f(x), the graph shows every (x, y) pair that makes that equation true.

That's it. No philosophy. Just coordinates on a plane that tell you where the function "lives."

Types of Functions You'll Graph

Different equations produce different shapes. Know what you're working with before you start plotting.

Linear Functions

These produce straight lines. The general form is y = mx + b, where m is the slope and b is the y-intercept.

Example: y = 2x + 3

Quadratic Functions

These produce parabolas (U-shaped curves). The general form is y = ax² + bx + c.

Example: y = x² - 4x + 3

Polynomial Functions

Higher-degree equations with curves that can have multiple bends. The degree tells you the maximum number of turns.

Rational Functions

Functions with fractions containing variables. These often have asymptotes — lines the graph approaches but never touches.

Trigonometric Functions

Sine, cosine, and tangent curves. These repeat in patterns and are bounded by specific values.

The Basic Process: Step by Step

Here's how to graph any function by hand:

Step 1: Identify the Function Type

Look at the equation. Is it linear? Quadratic? This tells you what shape to expect.

Step 2: Find Key Points

Every function graph needs these critical points:

Step 3: Create a Table of Values

Pick x-values and calculate the corresponding y-values. Don't pick random numbers — pick values that reveal the function's behavior.

For most graphs, include:

Step 4: Plot the Points

Mark each (x, y) pair on the coordinate plane. Use a straight edge for lines.

Step 5: Connect the Dots

Join points based on the function type:

Graphing Tools: Use Them

Hand-plotting is fine for learning. For anything real, use software.

Tool Best For Cost
Desmos Quick graphs, interactive exploration Free
GeoGebra Advanced math, geometry work Free
TI-84 Calculator Standardized tests, classroom use $100-150
Wolfram Alpha Exact solutions, analysis Free/Premium
Python (Matplotlib) Data science, custom visualizations Free

Desmos is the fastest way to check your work. Type the equation, see the graph instantly. No excuses.

How to Graph Specific Function Types

How to Graph a Linear Function

Linear functions are the easiest. You only need two points.

Example: Graph y = 3x - 2

  1. Set x = 0 → y = -2. Plot (0, -2)
  2. Set x = 2 → y = 4. Plot (2, 4)
  3. Draw a line through both points

The slope is 3, meaning the line rises 3 units for every 1 unit it runs to the right.

How to Graph a Quadratic Function

Quadratics need more points because the curve isn't straight.

Example: Graph y = x² - 4

  1. Find the vertex. For y = x² + c, the vertex is at (0, c). Here: (0, -4)
  2. Find intercepts. Set x = 0 → y = -4 (y-intercept). Set y = 0 → x² = 4 → x = ±2
  3. Plot additional points: x = ±1 gives y = -3
  4. Connect with a smooth U-curve opening upward

How to Graph a Rational Function

Rational functions have complications: asymptotes and holes.

  1. Find vertical asymptotes by setting the denominator equal to zero
  2. Find horizontal asymptotes by comparing degrees of numerator and denominator
  3. Plot points in each region between asymptotes
  4. Sketch the curve approaching but never touching asymptotes

Common Mistakes That Ruin Your Graph

Getting Started: Your Action Plan

Want to graph a function right now?

  1. Open Desmos.com in your browser
  2. Click the empty equation field
  3. Type your function (e.g., y = x^2 - 5x + 6)
  4. Look at the graph
  5. Click on points to see exact coordinates

That's the fastest way to understand any function. The visual feedback helps more than any textbook explanation.

Transformations: Shifting and Scaling

Once you know the basic shape of a function, you can graph transformations without plotting individual points.

If you know what y = x² looks like, you know what y = (x-3)² + 2 looks like: the same parabola, just moved 3 right and 2 up.

Final Word

Graphing functions is a skill. You learn it by doing it. Plot by hand when you're learning the basics. Use tools when you're working with real functions.

Don't memorize shapes. Understand why the graph looks the way it does. That understanding transfers to every function you'll ever encounter.