Writing Linear Equations from Graphs, Tables, and Contexts in Grade 8

Master writing linear equations from graphs, tables, and contextual problems through these 5 detailed exercises with comprehensive solutions covering slope calculation, y-intercept identification, and real-world applications.

Solution: Exercises 1 to 3
1 Writing from Graph
Exercise 1
Write the equation of the line shown in the graph. The line passes through points (0, 4) and (2, 7).
Definition:

Linear Equation in Slope-Intercept Form: An equation of the form y = mx + b, where m is the slope (rate of change) and b is the y-intercept (initial value when x = 0).

Writing linear equations from graph method:
  1. Identify two points on the line from the graph
  2. Calculate the slope using m = (y₂ - y₁)/(x₂ - x₁)
  3. Identify the y-intercept (where line crosses y-axis)
  4. Substitute m and b into y = mx + b
  5. Verify equation with another point on the line
Given Points
(0,4), (2,7)
Slope Calculation
m = (7-4)/(2-0) = 3/2
Final Equation
y = (3/2)x + 4
Step 1: Identify two points from graph

Point 1: (0, 4) - y-intercept

Point 2: (2, 7)

Step 2: Calculate slope

m = (y₂ - y₁)/(x₂ - x₁)

m = (7 - 4)/(2 - 0) = 3/2

Step 3: Identify y-intercept

The line crosses the y-axis at (0, 4), so b = 4

Step 4: Write equation in slope-intercept form

y = mx + b

y = (3/2)x + 4

Step 5: Verify with another point

Check with point (2, 7): y = (3/2)(2) + 4 = 3 + 4 = 7 ✓

y = (3/2)x + 4
Final answer:

The equation of the line is y = (3/2)x + 4. The slope is 3/2 and the y-intercept is 4.

Applied rules:

• Slope Formula: m = (y₂ - y₁)/(x₂ - x₁)

• Y-Intercept: Value of y when x = 0

• Slope-Intercept Form: y = mx + b

2 Writing from Table
Exercise 2
Write an equation for the linear relationship shown in the table below. What is the rate of change and initial value?
x y
0 -2
1 3
2 8
3 13
Definition:

Linear Relationship in Table: A relationship where the rate of change (slope) between any two points is constant. The y-intercept occurs when x = 0.

Rate of Change
m = 5
Initial Value
b = -2
Linear Equation
y = 5x - 2
Step 1: Find rate of change (slope)

Using any two points: (0, -2) and (1, 3)

m = (3 - (-2))/(1 - 0) = 5/1 = 5

Step 2: Verify constant rate

Check between (1,3) and (2,8): m = (8-3)/(2-1) = 5/1 = 5 ✓

Check between (2,8) and (3,13): m = (13-8)/(3-2) = 5/1 = 5 ✓

Step 3: Find initial value (y-intercept)

When x = 0, y = -2, so b = -2

Step 4: Write the equation

Using y = mx + b with m = 5 and b = -2

y = 5x - 2

Step 5: Verify with all table values

For x = 0: y = 5(0) - 2 = -2 ✓

For x = 1: y = 5(1) - 2 = 3 ✓

For x = 2: y = 5(2) - 2 = 8 ✓

For x = 3: y = 5(3) - 2 = 13 ✓

y = 5x - 2
Final answer:

The equation is y = 5x - 2. The rate of change (slope) is 5, and the initial value (y-intercept) is -2.

Applied rules:

• Constant Rate: For linear relationships, the slope is the same between any two points

• Y-Intercept: The value of y when x = 0

• Verification: All table points must satisfy the equation

3 Finding Slope from Two Points
Exercise 3
Find the equation of the line passing through points (-1, 5) and (3, -3). Express your answer in slope-intercept form.
Definition:

Point-Slope Method: When given two points, first calculate the slope, then use point-slope form y - y₁ = m(x - x₁), and finally convert to slope-intercept form y = mx + b.

Given Points
(-1, 5), (3, -3)
Calculated Slope
m = -2
Final Equation
y = -2x + 3
Step 1: Calculate the slope

Using m = (y₂ - y₁)/(x₂ - x₁)

m = (-3 - 5)/(3 - (-1)) = -8/4 = -2

Step 2: Use point-slope form with one point

Using point (-1, 5): y - 5 = -2(x - (-1))

y - 5 = -2(x + 1)

Step 3: Simplify to slope-intercept form

y - 5 = -2x - 2

y = -2x - 2 + 5

y = -2x + 3

Step 4: Verify with both points

Point (-1, 5): y = -2(-1) + 3 = 2 + 3 = 5 ✓

Point (3, -3): y = -2(3) + 3 = -6 + 3 = -3 ✓

Step 5: State the final equation

The equation in slope-intercept form is y = -2x + 3

y = -2x + 3
Final answer:

The equation of the line passing through (-1, 5) and (3, -3) is y = -2x + 3. The slope is -2 and the y-intercept is 3.

Applied rules:

• Slope Formula: m = (y₂ - y₁)/(x₂ - x₁)

• Point-Slope Form: y - y₁ = m(x - x₁)

• Algebraic Simplification: Distribute and combine like terms

Rules and methods, laws,...
y = mx + b
Slope-Intercept Form
Slope Formula
m = (y₂-y₁)/(x₂-x₁)
Rate of change
Point-Slope Form
y - y₁ = m(x - x₁)
Using point and slope
Standard Form
Ax + By = C
Alternative representation
Key definitions:

Linear Equation: An equation that forms a straight line when graphed

Slope (m): The rate of change of y with respect to x, calculated as rise over run

Y-Intercept (b): The value of y when x = 0, the point where the line crosses the y-axis

Rate of Change: How much the dependent variable changes for a unit change in the independent variable

Initial Value: The value of the dependent variable when the independent variable is zero (y-intercept)

Point-Slope Form: A linear equation written as y - y₁ = m(x - x₁)

Standard Form: A linear equation written as Ax + By = C where A, B, C are integers

Linear Function: A function with a constant rate of change

Linear equation writing methodology:
  1. Identify available information: Determine if you have a graph, table, two points, or contextual information
  2. Find the slope: Use appropriate method based on available data
  3. Find the y-intercept: Identify where the line crosses the y-axis or solve for b
  4. Write the equation: Substitute m and b into y = mx + b
  5. Verify: Check that the equation fits the original data
Tip 1: In tables, if x-values increase by 1, the change in y-values equals the slope.
Tip 2: On graphs, always use lattice points (points with integer coordinates) for easier calculation.
Tip 3: The y-intercept is always the point (0, b).
Tip 4: Verify your equation by substituting points from the original data.
Common errors: Incorrectly calculating slope, confusing x and y coordinates, not simplifying to slope-intercept form, forgetting to verify the equation.
Key properties: Constant rate of change, straight line graph, slope remains the same between any two points on the line.
Formulas to know by heart:

• Slope formula: m = (y₂ - y₁)/(x₂ - x₁)

• Slope-intercept form: y = mx + b

• Point-slope form: y - y₁ = m(x - x₁)

• Y-intercept: (0, b)

• X-intercept: Solve 0 = mx + b for x

Solution: Exercises 4 to 5
4 Contextual Problem
Exercise 4
A company charges a $15 setup fee plus $8 per hour for a service. Write an equation that represents the total cost C in terms of hours h. Interpret the slope and y-intercept in the context.
Definition:

Linear Model: A linear equation that represents a real-world situation. Identify the initial value (y-intercept) and rate of change (slope) from the problem context.

Fixed Cost
$15
Rate
$8/hour
Linear Model
C = 8h + 15
Step 1: Identify variables

Independent variable: h (hours)

Dependent variable: C (total cost)

Step 2: Identify initial value

The setup fee is $15, paid even if h = 0

This is the y-intercept: b = 15

Step 3: Identify rate of change

The cost increases by $8 for each additional hour

This is the slope: m = 8

Step 4: Write the equation

Using y = mx + b with y = C, x = h, m = 8, b = 15

C = 8h + 15

Step 5: Interpret in context

Slope (m = 8): The cost increases by $8 for each additional hour

Y-intercept (b = 15): The initial cost is $15 before any hours are worked

C = 8h + 15
Final answer:

The equation is C = 8h + 15. The slope of 8 represents the hourly rate ($8 per hour), and the y-intercept of 15 represents the initial setup fee ($15).

Applied rules:

• Modeling: Identify initial value and rate of change from context

• Linear Relationships: y = mx + b where m is rate and b is starting value

• Contextual Interpretation: Explain slope and intercept in real-world terms

5 Mixed Representation Problem
Exercise 5
A linear function has a y-intercept of -4 and passes through the point (5, 11). Write the equation in slope-intercept form. Then create a table of values and sketch the graph.
Definition:

Mixed Information: When given one point and the y-intercept, find the slope using the slope formula, then write the equation using the known y-intercept.

Y-Intercept
(0, -4)
Known Point
(5, 11)
Final Equation
y = 3x - 4
Step 1: Identify known values

Y-intercept: b = -4, so one point is (0, -4)

Other point: (5, 11)

Step 2: Calculate slope using both points

m = (11 - (-4))/(5 - 0) = 15/5 = 3

Step 3: Write equation in slope-intercept form

Using y = mx + b with m = 3 and b = -4

y = 3x - 4

Step 4: Create table of values
x y = 3x - 4 y
-1 3(-1) - 4 -7
0 3(0) - 4 -4
1 3(1) - 4 -1
2 3(2) - 4 2
3 3(3) - 4 5
Step 5: Verify with given point

Check (5, 11): y = 3(5) - 4 = 15 - 4 = 11 ✓

y = 3x - 4
Final answer:

The equation is y = 3x - 4. The slope is 3 and the y-intercept is -4. The table of values demonstrates the linear relationship.

Applied rules:

• Two-Point Method: Use y-intercept as one point and given point as second

• Algebraic Substitution: Insert known values to find unknowns

• Verification: Check equation with original data

Linear Function Properties and Modeling
m = (y₂ - y₁)/(x₂ - x₁)
Slope Formula
Key definitions:

Linear Function: A function of the form f(x) = mx + b, where m and b are constants

Slope: The measure of steepness of a line, calculated as rise over run

Y-Intercept: The point where the graph crosses the y-axis (x = 0)

X-Intercept: The point where the graph crosses the x-axis (y = 0)

Rate of Change: How one quantity changes in relation to another quantity

Direct Variation: A linear function where b = 0 (passes through origin)

Constant Function: A linear function where m = 0 (horizontal line)

Linear function analysis methodology:
  1. Identify the form: Determine if equation is in slope-intercept form
  2. Extract parameters: Identify slope (m) and y-intercept (b)
  3. Interpret meaning: Understand what m and b represent in context
  4. Graph systematically: Use y-intercept and slope to plot points
  5. Verify solution: Check that points satisfy the original equation
Tip 1: Positive slope means increasing function, negative slope means decreasing function.
Tip 2: Larger absolute value of slope means steeper line.
Tip 3: Parallel lines have identical slopes.
Tip 4: Perpendicular lines have slopes that are negative reciprocals of each other.
Properties preserved by linear functions: Constant rate of change, straight line graph, slope remains consistent between any two points on the line.
Common errors: Mixing up x and y coordinates when calculating slope, incorrect sign for negative slopes, misidentifying intercepts.
Formulas to know by heart:

• Slope formula: m = (y₂ - y₁)/(x₂ - x₁)

• Slope-intercept form: y = mx + b

• Point-slope form: y - y₁ = m(x - x₁)

• Standard form: Ax + By = C

• X-intercept: Solve y = 0

• Y-intercept: Solve x = 0

Comprehensive Summary: Writing Linear Equations

Key Concepts and Definitions
  • Linear Equation: An equation that forms a straight line when graphed, typically in the form y = mx + b.
  • Slope (m): The rate of change of y with respect to x, calculated as rise over run (vertical change divided by horizontal change).
  • Y-Intercept (b): The value of y when x = 0, representing the point (0, b) where the line crosses the y-axis.
  • Rate of Change: How much the dependent variable (y) changes for a unit change in the independent variable (x).
  • Initial Value: The starting value of a function when the independent variable is zero (the y-intercept).
  • Point-Slope Form: A linear equation written as y - y₁ = m(x - x₁), useful when given a point and slope.
  • Standard Form: A linear equation written as Ax + By = C where A, B, and C are integers.
  • Linear Function: A function with a constant rate of change, graphed as a straight line.
  • Direct Variation: A special linear function where y = mx (no constant term, passes through origin).
  • Constant Function: A linear function where y = b (slope is zero, horizontal line).
Core Rules and Principles
  • Slope Formula: m = (y₂ - y₁)/(x₂ - x₁) for any two points on the line
  • Slope-Intercept Form: y = mx + b directly shows slope and y-intercept
  • Point-Slope Form: y - y₁ = m(x - x₁) uses one point and the slope
  • Y-Intercept Identification: Found by setting x = 0 in the equation
  • X-Intercept Identification: Found by setting y = 0 in the equation
  • Parallel Lines: Have equal slopes (m₁ = m₂)
  • Perpendicular Lines: Have slopes that are negative reciprocals (m₁ × m₂ = -1)
  • Linear Growth: Positive slope indicates increasing relationship
  • Linear Decay: Negative slope indicates decreasing relationship
Step-by-Step Method for Writing Linear Equations
  1. Identify given information: Determine if you have a graph, table, two points, or contextual information
  2. Find the slope: Use appropriate method (slope formula, table pattern, or graph rise/run)
  3. Find the y-intercept: Identify where line crosses y-axis or solve for b using known point
  4. Write the equation: Substitute m and b into y = mx + b
  5. Verify the equation: Check that it satisfies all given points or conditions
  6. Interpret in context: Understand what slope and intercept mean in real-world problems
Concrete Examples
  • From Two Points: Points (2,5) and (4,9) → m=(9-5)/(4-2)=2, using (2,5): 5=2(2)+b → b=1 → y=2x+1
  • From Graph: Y-intercept (0,3), slope from (0,3) to (2,7): m=(7-3)/(2-0)=2 → y=2x+3
  • From Table: If x increases by 1 and y increases by 4 consistently, slope=4, y-intercept from x=0 column
  • From Context: $10 initial fee + $3 per item → y=3x+10 where slope=3 (rate) and y-int=10 (initial)
  • From Point and Intercept: Point (3,8) and y-intercept -1 → m=(8-(-1))/(3-0)=3 → y=3x-1
  • Advanced Example: Line through (1,4) perpendicular to y=2x+5 → New slope = -1/2 → y-4=(-1/2)(x-1) → y=(-1/2)x+4.5
Tips, Tricks, and Common Pitfalls
  • Tip 1: Always start by identifying what information you have (two points, graph, table, context).
  • Tip 2: In tables, if x-values increase by 1, the change in y-values equals the slope.
  • Tip 3: On graphs, pick lattice points (integer coordinates) for easier calculations.
  • Tip 4: The y-intercept is always the point (0, b).
  • Tip 5: Verify your equation by substituting original points back into it.
  • Pitfall 1: Mixing up x and y coordinates when calculating slope.
  • Pitfall 2: Forgetting to simplify to slope-intercept form.
  • Pitfall 3: Not considering the sign of the slope (positive vs negative).
  • Pitfall 4: Confusing rate of change with initial value.
Key Notes for Memorization
  • Memory Aid: "Y equals MX plus B" - Y-intercept is B, Slope is M
  • Slope Direction: Positive = uphill, Negative = downhill, Zero = flat, Undefined = vertical
  • Steepness: Larger |m| = steeper line
  • Intercepts: X-intercept found by setting y=0, Y-intercept found by setting x=0
  • Parallel/Perpendicular: Parallel = same slope, Perpendicular = negative reciprocal
  • Real-World Meaning: Slope = rate of change, Y-intercept = starting value
  • Verification: Always check that your equation works for the given data points

Questions & Answers

Question: How do I know if I calculated the slope correctly? What should I check?

Answer: Here are ways to verify your slope calculation:

  • Direction Check: Does the sign match the graph? Positive slope should rise from left to right.
  • Steepness Check: Does the magnitude match the visual steepness?
  • Alternative Pair: Use a different pair of points from the same line to calculate slope - should get the same result.
  • Equation Check: Substitute the slope and a point into y = mx + b to see if it holds true.

If all checks pass, your slope is likely correct.

Question: How do I identify the rate of change and initial value from a word problem?

Answer: Look for these clues:

  • Rate of Change (Slope): Words like "per", "each", "every", "for each", "at a rate of"
  • Initial Value (Y-Intercept): Words like "starting", "initial", "beginning", "fixed", "setup", "base", "flat fee"

Example: "$5 per hour plus $20 setup fee" → Rate = 5, Initial = 20 → y = 5x + 20

Question: What if the table doesn't start with x = 0? How do I find the y-intercept?

Answer: You can still find the y-intercept using the point-slope method:

  • First, calculate the slope using any two points from the table
  • Then use the point-slope form with one point: y - y₁ = m(x - x₁)
  • Finally, rearrange to slope-intercept form to identify b

Example: If table shows (2, 7) and (4, 11), slope = (11-7)/(4-2) = 2. Using point (2,7): y - 7 = 2(x - 2), so y = 2x + 3. Y-intercept is 3.