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:
- Y-intercept — where the graph crosses the y-axis (set x = 0)
- X-intercept(s) — where the graph crosses the x-axis (set y = 0)
- Vertex — for quadratics, the highest or lowest point
- Domain restrictions — values that x cannot take
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:
- Zero or values near zero
- Values that make the equation simple
- Values that hit your intercepts
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:
- Linear → straight line
- Quadratic → smooth U-curve
- Polynomial → smooth curves through all points
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
- Set x = 0 → y = -2. Plot (0, -2)
- Set x = 2 → y = 4. Plot (2, 4)
- 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
- Find the vertex. For y = x² + c, the vertex is at (0, c). Here: (0, -4)
- Find intercepts. Set x = 0 → y = -4 (y-intercept). Set y = 0 → x² = 4 → x = ±2
- Plot additional points: x = ±1 gives y = -3
- Connect with a smooth U-curve opening upward
How to Graph a Rational Function
Rational functions have complications: asymptotes and holes.
- Find vertical asymptotes by setting the denominator equal to zero
- Find horizontal asymptotes by comparing degrees of numerator and denominator
- Plot points in each region between asymptotes
- Sketch the curve approaching but never touching asymptotes
Common Mistakes That Ruin Your Graph
- Forgetting scale — Your axes might need different scales. Check before plotting.
- Not checking domain — Dividing by zero? That's not on the graph.
- Connecting points incorrectly — Linear functions get straight lines. Polynomials get smooth curves. Don't zigzag.
- Missing intercepts — Always solve for x = 0 and y = 0 first.
- Plotting points wrong — (x, y) means x comes first. Horizontal axis, then vertical.
Getting Started: Your Action Plan
Want to graph a function right now?
- Open Desmos.com in your browser
- Click the empty equation field
- Type your function (e.g., y = x^2 - 5x + 6)
- Look at the graph
- 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.
- y = f(x) + k — shifts the graph up by k units
- y = f(x - h) — shifts the graph right by h units
- y = -f(x) — reflects across the x-axis
- y = f(ax) — horizontal compression by factor a
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.