Graphing mathematical functions

Why Graphs Matter

Graphs are visual representations of mathematical relationships. They transform abstract equations into shapes you can see, interpret, and understand intuitively. A graph tells you at a glance how two quantities relate—whether one increases as the other decreases, where they balance, and what the overall behavior looks like over a range of values.

In science, business, and engineering, graphs are essential for analyzing data, identifying trends, and making predictions. In mathematics, graphing is a powerful tool for understanding the behavior of functions and for solving equations visually. Developing graphing fluency is one of the most valuable skills you can build in high school mathematics.

The Cartesian Coordinate System

Before graphing anything, you need to understand the coordinate plane. The Cartesian plane (named for mathematician René Descartes) consists of two perpendicular number lines: the x-axis (horizontal) and the y-axis (vertical). Their intersection is the origin (0, 0). Points are written as ordered pairs (x, y), where x is the horizontal distance from the origin and y is the vertical distance.

The plane is divided into four quadrants. Quadrant I has both x and y positive. Quadrant II has x negative, y positive. Quadrant III has both negative. Quadrant IV has x positive, y negative.

Graphing Linear Functions

Linear functions have the form y = mx + b, where m is the slope and b is the y-intercept. The slope m = rise/run = (change in y)/(change in x). It tells you how steep the line is and whether it goes up or down as you move right. The y-intercept b is where the line crosses the y-axis.

Example 1: Graphing y = 2x + 3

Step 1: Identify slope m = 2 and y-intercept b = 3.

Step 2: Plot the y-intercept (0, 3).

Step 3: Use the slope to find another point. From (0, 3), move up 2 and right 1 to get (1, 5).

Step 4: Draw a line through these points, extending in both directions.

A slope of 2 means for every 1 unit you move right, y increases by 2. A slope of -1/2 means for every 2 units right, y decreases by 1. Horizontal lines have slope 0. Vertical lines have undefined slope (their equation is x = constant).

Finding Intercepts

Intercepts are points where a graph crosses the axes. The y-intercept is found by setting x = 0 and solving for y. The x-intercept(s) are found by setting y = 0 and solving for x. Intercepts are useful for graphing because they're easy to find and give you points that anchor your graph.

Example 2: Finding Intercepts

Find intercepts of 2x + 3y = 12

Y-intercept: set x = 0 → 3y = 12 → y = 4. Point: (0, 4)

X-intercept: set y = 0 → 2x = 12 → x = 6. Point: (6, 0)

Graphing Quadratic Functions

Quadratic functions have the form y = ax² + bx + c, where a ≠ 0. Their graphs are parabolas—U-shaped curves that open upward (a > 0) or downward (a < 0). The vertex is the turning point of the parabola, and the axis of symmetry is the vertical line that divides the parabola into two mirror images.

The vertex is at x = -b/(2a). For y = x² - 4x + 3, the vertex is at x = -(-4)/(2×1) = 2. Plugging in: y = 4 - 8 + 3 = -1, so the vertex is (2, -1).

Example 3: Graphing y = x² - 4x + 3

Find vertex: x = -b/(2a) = 2. Vertex: (2, -1)

Y-intercept: set x = 0 → y = 3. Point: (0, 3)

X-intercepts: set y = 0 → x² - 4x + 3 = 0 → (x-1)(x-3) = 0 → x = 1 or 3. Points: (1, 0) and (3, 0)

Plot these points and draw a smooth U-shaped curve opening upward.

Function Transformations

Understanding how changes to a function's equation affect its graph is one of the most powerful graphing skills. Vertical shifts: y = f(x) + k moves the graph up by k units (down if k is negative). Horizontal shifts: y = f(x - h) moves the graph right by h units (left if h is negative).

Reflections: y = -f(x) reflects across the x-axis. y = f(-x) reflects across the y-axis. Vertical stretches and compressions: y = af(x) stretches by factor |a| if |a| > 1, compresses if 0 < |a| < 1, and reflects if a < 0.

Example 4: Transforming y = x²

y = x² + 3: shift up 3 units

y = (x - 2)²: shift right 2 units

y = -(x²): reflect across x-axis

y = 2(x²): stretch vertically by factor 2

Graphing Other Function Types

Exponential functions y = a · b^x have a distinctive shape—rapid growth or decay, always positive, with a horizontal asymptote. When b > 1, the graph rises; when 0 < b < 1, it falls.

Absolute value functions y = |x| form a V-shape with vertex at the origin. The general form y = a|x - h| + k shifts the vertex to (h, k) and scales by |a|.

Square root functions y = √x have domain x ≥ 0 and increase more slowly as x grows. The transformed form y = a√(x - h) + k shifts and scales accordingly.

Reading Graphs for Information

A graph can tell you many things at a glance: the sign of a function (above or below the x-axis), where it increases or decreases, maximum and minimum values, symmetry, and the behavior at extremes. Learning to extract this information visually is a skill that pays dividends in calculus, statistics, and data analysis.

Related Articles