Skip to ContentGo to accessibility page
Algebra 1

1.5.4 Writing, Graphing, and Solving a Linear Equation

Algebra 11.5.4 Writing, Graphing, and Solving a Linear Equation

1.5.4 Writing, Graphing, and Solving a Linear Equation

1.5.4 • Writing, Graphing, and Solving a Linear Equation

Activity

Access the Desmos guide PDF for tips on solving problems with the Desmos graphing calculator.

Use the following scenario for questions 1 – 5:
A student has a savings account with $475 in it. She deposits $125 of her paycheck into the account every week. Her goal is to save $7000 for college.

1.

How much will be in the account after 3 weeks?

2.

How many weeks will it take until she has $1350?

3.

Write an equation that represents the relationship between the dollar amount in her account and the number of weeks of saving.

4.

Graph your equation using graphing technology. Mark the points on the graph that represent the amount after 3 weeks and the week she has $1350. Write down the coordinates. Use the graphing tool or technology outside the course. Graph the equation that represents this scenario using the Desmos tool above.

5.

What is the x x -intercept?

6.

What other information does the x x -intercept identify in the function?

7.

What is the the y y -intercept?

8.

What is the slope?

Are you ready for more?

Extending Your Thinking
Use the following information to answer questions 1 – 5. A 450-gallon tank full of water is draining at a rate of 20 gallons per minute.
1.

Write an equation that represents the relationship between the gallons of water in the tank and hours the tank has been draining.

2.

Write an equation that represents the relationship between the gallons of water in the tank and seconds the tank has been draining.

3.

Graph each of your new equations. Use the graphing tool or technology outside the course. Graph the equation that represents this scenario using the Desmos tool above.

4.

In what way are all of the graphs the same? In what way are they all different?

5.

How would these graphs change if we used quarts of water instead of gallons? What would stay the same?

Self Check

Which of the following points is a solution to the graph below?



  1. ( − 2 , − 6 )
  2. ( 7 , 2 )
  3. ( 0 , 3 )
  4. ( 2 , 7 )

Additional Resources

Writing Equations Using Graphs in Situations

An equation that contains two unknown quantities or two quantities that vary is called an equation in two variables. A solution to such an equation is a pair of numbers that makes the equation true.

Suppose Tyler spends $40 on T-shirts and socks. A T-shirt costs $10 and a pair of socks costs $2.50. If t t represents the number of T-shirts and p p represents the number of pairs of socks that Tyler buys, what is an equation that represents the equation?

Example 1

Step 1 - Create a two-variable equation.
The cost is $10 per t-shirt ( 10 t ) ( 10 t ) plus $2.50 per pair of socks ( 2.50 p ) ( 2.50 p ) which equals $40.
10 t + 2.50 p = 40 10 t + 2.50 p = 40

Now, we have to graph the equation.  We will let t = x t = x and p = y p = y .

Step 2 - Find the x x -intercept.
To find the x x -intercept, let p = 0 p = 0 .

10 t + 2.50 p = 40 10 t + 2.50 p = 40
10 t + 2.50 ( 0 ) = 40 10 t + 2.50 ( 0 ) = 40
10 t + 0 = 40 10 t + 0 = 40
t = 4 t = 4

( 4 , 0 ) ( 4 , 0 ) is the x x -intercept.
The x x -intercept is also called a solution or zero.

In this scenario, 4 represents the number of T-shirts Tyler can buy if he doesn't purchase any socks with $40.

Step 3 - Find the y y -intercept.
To find the y y -intercept, let t = 0 t = 0 .

10 t + 2.50 p = 40 10 t + 2.50 p = 40
10 ( 0 ) + 2.50 p = 40 10 ( 0 ) + 2.50 p = 40
( 0 ) + 2.50 p = 40 ( 0 ) + 2.50 p = 40
2.50 p = 16 2.50 p = 16

( 0 , 16 ) ( 0 , 16 ) is the  y y -intercept.

In this scenario, 16 represents the number of socks Tyler can buy if he doesn't purchase any T-shirts with $40.

Step 4 - Graph the line by connecting the intercepts.

Let’s look at the graph of this equation:

Let’s reflect about the graph and what it means.

Example 2

What is the slope of the graph?

Solution

m = − 4 m = − 4

Example 3

What does the point ( 4 , 6 ) ( 4 , 6 ) mean on this graph?

Solution

Compare your answer:

If Tyler bought 4 T-shirts and 6 pairs of socks, it would cost more than $40.

Try it

Writing Equations Using Graphs in Situations 

Use Desmos or a graphing calculator to create a graph for 40 x + 20 y = 180 40 x + 20 y = 180 .

1.

If x x represents the number of pairs of shoes and y y represents the number of pairs of jeans, what is one combination that is a solution?

2.

What does the combination you identified mean on the graph?

Citation/Attribution
Reuse and redistribution of this content in digital or print format:
  • This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's prior written permission.
  • This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License, which means that you can reuse and modify the material only for noncommercial purposes, must attribute OpenStax, and must distribute any derivative works under the same license.
  • Any commercial printing of this textbook, including using a local or custom printer, must be approved by OpenStax, and proper citation provided.
  • OpenStax-copyrighted images, activities, assessments, and similar components of this book are subject to the same licensing – CC-BY-NC-SA. They can be used for noncommercial purposes with attribution. Commercial use requires permission.
  • Permission requests: Anyone who intends to incorporate this content (including text, images, and other components) into large language models, use it in AI offerings, use it commercially (including in print), and/or has questions about another use case is welcome to complete our reuse request form.
Attribution information
  • If you are redistributing all or part of this book in a noncommercial print format, then you must include on every physical page the following attribution:

    Access for free at https://openstax.org/books/algebra-1/pages/about-this-course

  • If you are redistributing all or part of this book in a noncommercial digital format, then for every page that includes OpenStax content, you must license the derivative work under the same CC-BY-NC-SA license as the original, and include on every digital page view the following attribution:

    Access for free at https://openstax.org/books/algebra-1/pages/about-this-course

Citation information

The information below includes the information needed to generate citations in most major styles (APA, MLA, etc.); you must reformat and organize the information as needed to fit the requirements of the style. Use the information below to generate a citation. We recommend using a citation tool such as this one.

© Apr 23, 2026 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License. The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo, and Rice University name, and Rice University logo trademarks, or wordmarks are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.