Skip to ContentGo to accessibility pageKeyboard shortcuts menu
OpenStax Logo
Algebra 1

2.1.2 Writing and Graphing Equations

Algebra 12.1.2 Writing and Graphing Equations

Search for key terms or text.

Activity

Use the situation you saw earlier to answer 1 - 3.

Diego bought some raisins and walnuts to make trail mix. Raisins cost $4 a pound and walnuts cost $8 a pound. Diego spent $15 on both ingredients..
1.

Write an equation to represent this constraint. Let xx be the pounds of raisins and yy be the pounds of walnuts.

2.

Use the graphing tool or technology outside the course. Graph your equation from question 2 that represents this scenario using the Desmos tool below.

3.

Complete the table with the amount of one ingredient Diego could have bought given the other. Be prepared to show your reasoning.

Raisins (lbs) Walnuts (lbs)
0
0.25
1.375
1.25
1.75
3

Use the following new piece of information to answer questions 4 - 6.

Diego bought a total of 2 pounds of raisins and walnuts combined.

4.

Write an equation to represent this constraint. Let xx be the pounds of raisins and yy be the pounds of walnuts.

5.

Use the graphing tool or technology outside the course. Graph your equation from question 5 that represents this scenario using the Desmos tool below.

6.

On your own paper, complete the table with the amount of one ingredient Diego could have bought given the other. Be prepared to show your reasoning.

Raisins (lbs) Walnuts (lbs)
0
0.25
1.375
1.25
1.75
3

Use the following information to answer 7 - 9.

Diego spent $15 and bought exactly 2 pounds of raisins and walnuts.

7.

How many pounds of raisins did he buy?

8.

How many pounds of walnuts did he buy?

9.

Explain or show how you know how many pounds he purchased of each type.

Self Check

A school group bought 12 tickets to visit a history museum.

  • Adult tickets are $5 each.
  • Student tickets are $8 each.

The school paid a total of $90. How many adult tickets, x , and student tickets, y , did the school buy?

  1. 11 student tickets and 1 adult ticket
  2. 10 student tickets and 2 adult tickets
  3. 9 student tickets and 3 adult tickets
  4. 5 student tickets and 10 adult tickets

Additional Resources

Solve Systems of Linear Equations

In Unit 1, you learned how to solve linear equations with one variable. Now we will work with two or more linear equations grouped together, which is known as a system of linear equations.

An example of a system of two linear equations is shown below. We use a brace to show the two equations are grouped together to form a system of equations.

{2x+y=7x2y=6{2x+y=7x2y=6

A linear equation in two variables, such as 2x+y=72x+y=7, has an infinite number of solutions. Its graph is a line. Remember, every point on the line is a solution to the equation, and every solution to the equation is a point on the line.

To determine if an ordered pair is a solution to a system of two equations, we substitute the values of the variables into each equation. If the ordered pair makes both equations true, it is a solution to the system.

To solve a system of two linear equations, we want to find the values of the variables that are solutions to both equations. In other words, we are looking for the ordered pairs (x,y)(x,y) that make both equations true. These are called the solutions to a system of equations.

Determining if Ordered Pairs Solve a System

Step 1 - Substitute the values of both variables into the first equation and simplify. Verify if the equation is true.

Step 2 - Substitute the values of both variables into the second equation and simplify. Verify if the equation is true.

Step 3 - If the ordered pair makes both equations true, then it is a solution to the system.

Example 1

Determine whether the ordered pair (2,1)(2,1) is a solution to the system{xy=12xy=5{xy=12xy=5.

Here is how to do this:

{xy=12xy=5{xy=12xy=5

We substitute x=2x=2 and y=1y=1 into both equations.

xy=12xy=52(1) = ? 12(2)(1) = ? 51=135xy=12xy=52(1) = ? 12(2)(1) = ? 51=135

(2,1)(2,1) does not make both equations true.

(2,1)(2,1) is not a solution.

Example 2

Determine whether the ordered pair (4,3)(4,3) is a solution to the system{xy=12xy=5{xy=12xy=5.

Here is how to do this:

We substitute x=4x=4 and y=3y=3 into both equations.

xy=12xy=54(3) = ? 12(4)(3) = ? 51=15=5xy=12xy=54(3) = ? 12(4)(3) = ? 51=15=5

(4,3)(4,3) is true for both equations. It is a solution.

Try it

Try It: Solve Systems of Linear Equations

Determine whether the ordered pair is a solution to the system

3x+y=03x+y=0

x+2y=5x+2y=5

1.

Is (1,3)(1,3) a solution to the system of equations?

2.

Explain how you know if it is or is not a solution of the system.

3.

Is (0,0)(0,0) a solution to the system of equations?

4.

Explain how you know if it is or is not a solution of the system.

Solve a System of Linear Equations by Graphing

The graph of a linear equation is a line. Each point on the line is a solution to the equation. For a system of two equations, we will graph two lines. Then we can see all the points that are solutions to each equation. And by finding what the lines have in common, we’ll find the solution to the system.

Example

Solve the system by graphing {2x+y=7x2y=6{2x+y=7x2y=6

Step 1 - Graph the first equation.

To graph the first line, write the equation in slope-intercept form. 2x+y=72x+y=7 y=2x+7y=2x+7 So, the slope is -2 and the yy-intercept is 7.

A graph on a grid with x and y axes shows a red downward diagonal line indicating a negative slope.

Step 2 - Graph the second equation on the same rectangular coordinate system.

This line may be easier to graph using the intercepts. To find the xx-intercept, substitute y=0y=0 into the equation. x2y=6x2y=6 x2(0)=6x2(0)=6 x=6x=6 To find the yy-intercept, substitute x=0x=0 into the equation. x2y=6x2y=6 02y=602y=6 2y=62y=6 y=3y=3 So, the intercepts are (6,0)(6,0) and (0,3)(0,3).

A graph on a grid with x and y axes shows two lines intersecting.

Step 3 - Determine whether the lines intersect, are parallel, or are the same line.

Look at the graph of the lines. In this case, the lines intersect.

Step 4- Estimate the solution to the system.

  • If the lines intersect, identify the point of intersection. Check to make sure it is a solution to both equations. This is the solution to the system.
  • If the lines are parallel, the system has no solution.
  • If the lines are the same, the system has an infinite number of solutions.

The lines intersect at (4,1)(4,1).

Step 5 - Check the solution in both equations.

2x+y=72(4)+(1)=?781=?77=72x+y=72(4)+(1)=?781=?77=7

x2y=642(1)=?66=6x2y=642(1)=?66=6

The steps to use to solve a system of linear equations by graphing are shown here.

Using a Graph to Solve a System

Step 1 - Graph the first equation.

Step 2 - Graph the second equation on the same rectangular coordinate system.

Step 3 - Determine whether the lines intersect.

Step 4 - Estimate the solution to the system.

If the lines intersect, identify the point of intersection. This is the solution to the system.

Step 5 - Check the solution in both equations.

Try it

Try It: Solve a System of Linear Equations by Graphing

Solve the system by graphing{x3y=3x+y=5{x3y=3x+y=5

Citation/Attribution

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 permission.

Want to cite, share, or modify this book? This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License and you must attribute OpenStax.

Attribution information
  • If you are redistributing all or part of this book in a 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 digital format, then you must 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

© May 21, 2025 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 are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.