01 / 21

Two-Variable
Equations & Graphs

Learn to create equations in two variables that model real-world relationships, then graph them on labeled coordinate axes with proper scales.

Algebra 2

What Is a Two-Variable Equation?

A two-variable equation is any equation that contains exactly two different variables, most commonly \( x \) and \( y \). Each pair \( (x, y) \) that makes the equation true is called a solution, and the set of all solutions forms a curve or line on the coordinate plane.

\( x \) : Independent
The input you choose freely
\( y \) : Dependent
The output determined by the equation

Why Create Two-Variable Equations?

Two-variable equations let us model real relationships: distance vs. time, cost vs. quantity, height vs. seconds. Once we have an equation, we can predict values we haven't measured, identify trends, and make decisions.

Predict
Estimate unknown values by plugging into the equation
Visualize
A graph reveals the overall shape and behavior at a glance
Communicate
Labeled axes and scales make your model understandable to others

The Building Blocks

Every two-variable equation starts with identifying three things from the context: the quantities, the relationship between them, and any constants (fixed values like rates, initial amounts, or coefficients).

1
Identify the variables. What two quantities change? Assign letters (often \( x \) and \( y \)).
2
Determine the relationship. Is it linear, quadratic, exponential, or something else?
3
Find constants. Rates, starting values, and coefficients come from the problem's given data.

From Words to Equation

A word problem states a relationship in English. Your job is to translate it into algebra. Here is the standard process:

Identify variables Translate words → math Write equation

Graphing on Coordinate Axes

To graph a two-variable equation, plot ordered pairs \( (x, y) \) on a coordinate plane. Every graph needs labeled axes and a consistent scale.

\( x \)
\( y \)
1 2 3 4 1 2 3
\( y = 0.5x + 0.5 \)
★ Always label axes and scale

Linear vs. Non-Linear

Not all two-variable equations graph as straight lines. The degree and type of operations determine the shape. Recognizing the type early guides how you create a table, pick a scale, and sketch the graph.

Linear Quadratic Exponential
Form \( y = mx + b \) \( y = ax^2 + bx + c \) \( y = a \cdot b^x \)
Shape Straight line Parabola Curve (growth/decay)
Rate of change Constant Variable (symmetric) Variable (accelerating)
Example \( y = 3x - 1 \) \( y = x^2 - 4 \) \( y = 2 \cdot 3^x \)

Step-by-Step Method

1
Read the problem. Identify the two quantities that change and assign variables (\( x \), \( y \)).
2
Write the equation. Translate the relationship into an algebraic equation using rates, initial values, and operations.
3
Build a table. Choose at least 5 input values for \( x \), compute \( y \), and list the ordered pairs.
4
Set up axes. Draw and label both axes with variable names and units. Choose a scale that fits all points.
5
Plot and connect. Mark each ordered pair, then draw the line or curve through them. Add the equation as a label.

Example 1: Linear Relationship

Distance (miles) (x) Cost ($) (y) 1 2 3 4 5 5 10 (0, 3) (3, 9) (5, 13)
\( y = 2x + 3 \)

Example 2: Quadratic Relationship

Time (seconds) (x) Height (feet) (y) 0.5 1 1.5 2 2.5 3 10 20 30 40 vertex (1.5, 36) (0, 0) (3, 0)
\( y = -16x^2 + 48x \)

Example 3: Exponential Growth

Time (hours) (x) Population (count) (y) 1 2 3 4 5 800 1600 2400 3200 (0, 100) (3, 800) (4, 1600)

Labels, Scales, and Context

A graph without labels is just a picture. To communicate meaning, every graph must include these elements:

1
Axis labels: Write the variable name and its unit. Example: "Time (seconds)" on the \( x \)-axis.
2
Consistent scale: Equal spacing between tick marks. If each tick represents 5, keep it at 5 throughout.
3
Appropriate range: Choose a window that shows all important features: intercepts, vertex, or trend.
4
Equation label: Write the equation near the curve so the reader knows what is being graphed.

Equations from Data Tables

Sometimes you are given a table of values instead of a word problem. To find the equation, analyze how \( y \) changes as \( x \) changes.

Constant difference
If \( \Delta y \) is the same for equal \( \Delta x \), the relationship is linear: find slope \( m = \frac{\Delta y}{\Delta x} \) and y-intercept \( b \).
Constant ratio
If \( \frac{y_2}{y_1} \) is the same for equal \( \Delta x \), the relationship is exponential: find initial value \( a \) and base \( b \).

Domain and Range in Context

Real-world equations have practical limits. The domain is the set of allowable \( x \)-values and the range is the set of resulting \( y \)-values. Context tells you what makes sense.

Domain
You can't drive negative miles or have negative time: restrict \( x \ge 0 \) when the context demands it.
Range
Height can't be negative. Cost can't be below zero. The range is determined by the equation and the domain.

Common Mistakes

✕ Swapping Variables
Writing \( x = 2y + 3 \) when the problem says "\( y \) depends on \( x \)." Always place the dependent variable alone on one side.
✕ Unlabeled Axes
Plotting points without writing variable names or units on the axes. Your reader won't know what the graph represents.
✕ Uneven Scale
Using tick marks that jump from 1, 2, 5, 10. Inconsistent spacing distorts the curve and misleads the viewer.

Summary Comparison

Linear Quadratic Exponential
Standard form \( y = mx + b \) \( y = ax^2 + bx + c \) \( y = a \cdot b^x \)
Graph shape Straight line Parabola J-curve
Key features Slope, y-intercept Vertex, axis of symmetry Initial value, growth factor
Change pattern Constant \( \Delta y \) Constant \( \Delta(\Delta y) \) Constant ratio
Real-world cue "per," "each," "rate" "area," "height," "squared" "doubles," "halves," "percent"

Question 1 of 5

A gym membership costs $25 per month plus a one-time $50 sign-up fee. Which equation represents the total cost \( y \) after \( x \) months?

Question 2 of 5

A table shows the following values: \( (0, 5),\; (1, 10),\; (2, 20),\; (3, 40) \). What type of equation best models this data?

Question 3 of 5

When graphing the equation \( y = -2x + 8 \), what are the \( x \)-intercept and \( y \)-intercept?

Question 4 of 5

The height of a rocket is modeled by \( y = -5x^2 + 30x \). What is the maximum height and at what time does it occur?

Question 5 of 5

Which of the following is essential when graphing an equation on coordinate axes?