Google Play badge

Use variables to represent two quantities in a real-world problem that change in relationship to one another; write an equation to express one quantity, thought of as the dependent variable, in terms of the other quantity, thought of as the independent variable. Analyze the relationship between the dependent and independent variables using graphs and tables, and relate these to the equation. For example, in a problem involving motion at constant speed, list and graph ordered pairs of distances and times, and write the equation d = 65t to represent the relationship between distance and time.


Using Variables to Show Relationships Between Quantities

Playing a racing video game. The longer you hold down the gas button, the farther your car goes. Time changes, and distance changes with it. These two quantities are connected. This kind of connection is what we study in algebra with independent and dependent variables.

In this lesson, you learn how to:

The cool part: Once you understand these ideas, you can describe many real-world situations—like earning money, moving at a steady speed, or filling a water bottle—using math.

1. Quantities That Change Together

A quantity is something you can measure or count, like time, distance, money, or number of items.

Sometimes, when one quantity changes, another changes in a predictable way. For example:

These are all situations where two quantities are related.

2. Independent and Dependent Variables

To describe these relationships, we use variables, usually letters like x and y.

A helpful way to think about it:

Common choices:

We often use:

But we can also use letters that match the meaning, like \(t\) for time or \(d\) for distance.

3. Example of a Relationship: Constant Speed

Suppose a car travels at a constant speed of 65 miles per hour on a highway.

We can represent the relationship between distance and time with the equation \(d = 65t\). Here:

This equation tells us: distance equals 65 times the time. If you know the time, you can find the distance.

The relationship between distance and time for this car is shown in [Figure 1].

A real-world scene of a car on a highway with arrows showing time increasing to the right and distance increasing forward, labeled with t for time and d for distance, and the equation d = 65t nearby
A real-world scene of a car on a highway with arrows showing time increasing to the right and distance increasing forward, labeled with t for time and d for distance, and the equation d = 65t nearby
4. Using Tables to Show the Relationship

A table is a clear way to list values of the independent and dependent variables. For the car traveling at 65 miles per hour, we can choose some times and calculate distances.

Use the equation \(d = 65t\).

We can organize this in a table:

Table: Time and Distance for \(d = 65t\)

Notice:

This repeated pattern shows the constant speed. The table of values is represented visually as a set of points on a coordinate grid in [Figure 2].

A coordinate plane with horizontal axis labeled time t (hours) and vertical axis labeled distance d (miles), plotted points (0,0), (1,65), (2,130), (3,195), (4,260), with a straight line through them and the equation d = 65t written beside the line
A coordinate plane with horizontal axis labeled time t (hours) and vertical axis labeled distance d (miles), plotted points (0,0), (1,65), (2,130), (3,195), (4,260), with a straight line through them and the equation d = 65t written beside the line
5. Graphing the Relationship on a Coordinate Plane

A graph lets you see the relationship between two variables as a picture.

For the car example:

We plot each pair \((t, d)\) as a point. For example, \((2, 130)\) means that after 2 hours, the car has traveled 130 miles.

When we plot all the points from the table, they form a straight line, as shown in [Figure 2]. This straight line shows a constant rate of change: the car travels the same number of miles every hour.

Important ideas from the graph:

6. Connecting Equation, Table, and Graph

The equation, table, and graph all describe the same relationship in different ways:

If you know any one of these (equation, table, or graph), you can usually find the others. That is one of the powerful things about algebra.

7. More Real-World Relationships

Many everyday situations can be modeled in a similar way.

7.1 Earning Money at a Constant Rate

Suppose you walk your neighbor’s dog and earn 8 dollars per hour.

Every hour you walk the dog, you earn 8 more dollars. The equation is:

\(M = 8h\)

Some values:

If you made a table and a graph, it would look similar in style to the car example, but with different numbers.

7.2 Filling a Water Bottle

Imagine you fill a water bottle from a tap that pours water at a constant rate: 50 milliliters per second.

Equation: \(w = 50t\).

Again, time is independent, the amount of water is dependent, and the graph is a straight line going through \((0, 0)\).

7.3 Buying Songs or Apps

Suppose each song you buy from an online store costs 2 dollars. The number of songs affects the total cost.

Equation: \(C = 2s\).

Here, the graph still shows a straight line, but the horizontal axis is “number of songs” instead of time. The relationship between how many items you buy and the total cost is very common in real life.

8. Solved Example 1: Bike Ride at Constant Speed

Situation: You ride your bike at a constant speed of 12 miles per hour.

Step 1: Choose variables.

Step 2: Write an equation.

Each hour, you travel 12 miles. So distance equals 12 times time.

Equation: \(d = 12t\)

Step 3: Make a table of values.

Step 4: Describe the graph.

This example has the same structure as the car problem, but a different speed.

9. Solved Example 2: Video Game Points

Situation: In a video game, you get 50 points for every level you complete. After a while, you notice the pattern and want to write an equation.

Step 1: Choose variables.

Step 2: Write an equation.

You get 50 points for each level. So the total points equal 50 times the number of levels.

Equation: \(P = 50L\)

Step 3: Make a table of values.

Step 4: Describe the graph.

The relationship between levels and points is visualized as a line of equally spaced points, as shown in [Figure 3].

A coordinate grid with horizontal axis labeled Levels L and vertical axis labeled Points P, points (0,0), (1,50), (2,100), (3,150), (4,200) connected by a straight line, and the equation P = 50L written nearby
A coordinate grid with horizontal axis labeled Levels L and vertical axis labeled Points P, points (0,0), (1,50), (2,100), (3,150), (4,200) connected by a straight line, and the equation P = 50L written nearby
10. Solved Example 3: Renting a Scooter

Situation: A scooter rental shop charges 5 dollars per hour. You want to model the total cost as a function of time.

Step 1: Choose variables.

Step 2: Write an equation.

You pay 5 dollars for each hour. So the total cost equals 5 times the number of hours.

Equation: \(C = 5h\)

Step 3: Make a table of values.

Step 4: Analyze the relationship.

11. How to Tell Which Variable Is Which

When you read a problem, use these questions to identify the independent and dependent variables:

  1. Which quantity is chosen or controlled? That is usually the independent variable.
  2. Which quantity changes as a result? That is the dependent variable.
  3. Can you say “_____ depends on _____”? The first blank is the dependent variable; the second is the independent variable.

Examples:

12. Real-World Applications

These relationships are everywhere in daily life and technology:

Whenever you see “for every” or “per” (like “miles per hour” or “dollars per song”), you are looking at a rate that can be modeled with an equation like \(y = kx\), where \(k\) is the constant rate.

13. Key Points to Remember

Independent and dependent variables help you describe how two quantities are related. The independent variable is the input you choose; the dependent variable is the output that changes in response. You can use equations, tables, and graphs to represent the same relationship in different but connected ways. For many real-world situations with a constant rate, the relationship can be written in the form \(y = kx\), such as \(d = 65t\) for distance and time at a constant speed. Tables list matching input-output pairs that follow the rule, and graphs show these pairs as points forming a straight line through the origin. Understanding these connections lets you analyze patterns, make predictions, and explain how one quantity changes when another changes.

Download Primer to continue