Solved Exercises on Writing Linear Equations from Tables and Graphs in Grade 8

Master writing linear equations from tables and graphs: identifying slope and y-intercept, creating equations from data sets, and solving real-world applications through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Writing equations from tables
Exercise 1
Write a linear equation for the function represented by the table:
xy
-2-5
03
211
419
Definition:

Linear equation from table: A linear equation in the form \(y = mx + b\) that fits all data points in a table. To find it, first calculate the slope (m) using any two points, then find the y-intercept (b) using one point and the slope.

Table-to-equation method:
  1. Verify the table represents a linear function by checking for constant rate of change (same slope between any two points)
  2. Calculate the slope (m) using the formula: \(m = \frac{y_2 - y_1}{x_2 - x_1}\)
  3. Find the y-intercept (b) by substituting the slope and one point into \(y = mx + b\) and solving for b
  4. Write the equation in the form \(y = mx + b\)
  5. Verify the equation works for all points in the table
Slope
m = 4
Y-intercept
b = 3
Equation
y = 4x + 3
Step 1: Verify constant rate of change

Calculate the slope between consecutive points:

Between (-2, -5) and (0, 3): \(\frac{3-(-5)}{0-(-2)} = \frac{8}{2} = 4\)

Between (0, 3) and (2, 11): \(\frac{11-3}{2-0} = \frac{8}{2} = 4\)

Between (2, 11) and (4, 19): \(\frac{19-11}{4-2} = \frac{8}{2} = 4\)

Since the slope is constant (m = 4), this is a linear function.

Step 2: Calculate the slope

Using any two points, for example (0, 3) and (2, 11):

\(m = \frac{11-3}{2-0} = \frac{8}{2} = 4\)

Step 3: Find the y-intercept

Using the point (0, 3) and slope m = 4 in \(y = mx + b\):

\(3 = 4(0) + b\)

\(b = 3\)

Alternatively, notice that when x = 0, y = 3, so the y-intercept is 3.

Step 4: Write the equation

Substituting m = 4 and b = 3 into \(y = mx + b\):

\(y = 4x + 3\)

Step 5: Verify the equation

Check with all points in the table:

When x = -2: \(y = 4(-2) + 3 = -8 + 3 = -5\) ✓

When x = 0: \(y = 4(0) + 3 = 0 + 3 = 3\) ✓

When x = 2: \(y = 4(2) + 3 = 8 + 3 = 11\) ✓

When x = 4: \(y = 4(4) + 3 = 16 + 3 = 19\) ✓

Linear equation: y = 4x + 3
Final answer:

The linear equation for the given table is \(y = 4x + 3\). The slope is 4 and the y-intercept is 3.

Applied rules:

• Constant rate of change: For linear functions, the slope between any two points is the same

• Slope formula: \(m = \frac{y_2 - y_1}{x_2 - x_1}\) calculates the rate of change

• Y-intercept identification: When x = 0, y-value is the y-intercept

Tip 1: Always verify that the same slope exists between all pairs of consecutive points.
Tip 2: If the table includes (0, b), then b is automatically the y-intercept.
Tip 3: Verify your equation by substituting all table values to ensure accuracy.
2 Writing equations from graphs
Exercise 2
Write the linear equation for the line shown on the graph that passes through the points (0, -2) and (3, 4).
Definition:

Linear equation from graph: A linear equation in the form \(y = mx + b\) determined by identifying two points on the line, calculating the slope, and finding the y-intercept.

Points
(0, -2), (3, 4)
Slope
m = 2
Y-intercept
b = -2
Step 1: Identify two points from the graph

From the graph, we can identify the points (0, -2) and (3, 4).

Step 2: Calculate the slope

Using the slope formula with points (0, -2) and (3, 4):

\(m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{4 - (-2)}{3 - 0} = \frac{6}{3} = 2\)

Step 3: Find the y-intercept

Notice that the line passes through (0, -2), which means when x = 0, y = -2.

Therefore, the y-intercept b = -2.

Step 4: Write the equation

Substituting m = 2 and b = -2 into \(y = mx + b\):

\(y = 2x + (-2) = 2x - 2\)

Step 5: Verify the equation

Check with both points:

For (0, -2): \(y = 2(0) - 2 = -2\) ✓

For (3, 4): \(y = 2(3) - 2 = 6 - 2 = 4\) ✓

Linear equation: y = 2x - 2
Final answer:

The linear equation for the line passing through points (0, -2) and (3, 4) is \(y = 2x - 2\). The slope is 2 and the y-intercept is -2.

Applied rules:

• Point selection: Choose points with integer coordinates for easier calculations

• Slope formula: \(m = \frac{y_2 - y_1}{x_2 - x_1}\) calculates the rate of change

• Y-intercept identification: Where the line crosses the y-axis (x = 0)

Tip 1: Always select points that are clearly marked on the graph for accuracy.
Tip 2: If the y-intercept is visible on the graph, use it directly.
Tip 3: Verify your equation by checking that both selected points satisfy it.
3 Writing equations from graphs with negative slope
Exercise 3
Write the linear equation for the line shown on the graph that passes through the points (-1, 5) and (2, -1).
Definition:

Linear equation with negative slope: A linear equation where the slope (m) is negative, indicating that the line decreases as x increases. The process is the same as with positive slopes, but the result will have a negative coefficient for x.

Points
(-1, 5), (2, -1)
Slope
m = -2
Y-intercept
b = 3
Step 1: Identify two points from the graph

From the graph, we can identify the points (-1, 5) and (2, -1).

Step 2: Calculate the slope

Using the slope formula with points (-1, 5) and (2, -1):

\(m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{-1 - 5}{2 - (-1)} = \frac{-6}{3} = -2\)

Step 3: Find the y-intercept

Using the point (-1, 5) and slope m = -2 in \(y = mx + b\):

\(5 = -2(-1) + b\)

\(5 = 2 + b\)

\(b = 3\)

Step 4: Write the equation

Substituting m = -2 and b = 3 into \(y = mx + b\):

\(y = -2x + 3\)

Step 5: Verify the equation

Check with both points:

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

For (2, -1): \(y = -2(2) + 3 = -4 + 3 = -1\) ✓

Linear equation: y = -2x + 3
Final answer:

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

Applied rules:

• Negative slope: When the line falls from left to right, the slope is negative

• Slope formula: The formula works the same regardless of positive or negative results

• Order matters: Keep the order consistent in numerator and denominator

Tip 1: A negative slope means the line goes downward as you move from left to right.
Tip 2: Be careful with negative signs when calculating slope with negative coordinates.
Tip 3: Verify your negative slope makes sense by checking the direction of the line on the graph.
Rules and methods, laws,...
\(y = mx + b\)
Slope-Intercept Form
Slope Formula
\(m = \frac{y_2 - y_1}{x_2 - x_1}\)
Slope calculation
Point-Slope Form
\(y - y_1 = m(x - x_1)\)
Given point and slope
Standard Form
\(Ax + By = C\)
General form
Key definitions:

Linear equation: An equation that forms a straight line when graphed. It has variables with exponents of 1.

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

Y-intercept (b): The point where the line crosses the y-axis (when x = 0).

Constant rate of change: For linear functions, the slope between any two points is the same.

Complete methodology:
  1. From table: Calculate slope between any two points, find y-intercept, write y = mx + b
  2. From graph: Identify two points, calculate slope, find y-intercept, write y = mx + b
  3. Verify: Check that all given points satisfy the equation
  4. Interpret: Understand what slope and y-intercept represent in context
Tip 1: A positive slope means the line rises from left to right.
Tip 2: A negative slope means the line falls from left to right.
Tip 3: Zero slope indicates a horizontal line (y = constant).
Tip 4: The y-intercept is always at the point (0, b).
Common errors: Miscalculating slope with negative coordinates, not maintaining order in slope formula, misreading coordinates from graphs.
Exam preparation: Practice identifying slopes from graphs, calculating with negative numbers, verifying equations.
Formulas to know by heart:

• Slope-intercept form: \(y = mx + b\)

• Slope formula: \(m = \frac{y_2 - y_1}{x_2 - x_1}\)

• Point-slope form: \(y - y_1 = m(x - x_1)\)

• Standard form: \(Ax + By = C\)

Solution: Exercises 4 to 5
4 Writing equations from incomplete tables
Exercise 4
A linear function has the following partial table. Find the missing values and write the equation of the function.
xy
-12
16
3?
?12
Definition:

Completing tables for linear functions: Using the constant rate of change property of linear functions to find missing x or y values in a table. Once the equation is found, it can be used to calculate any missing values.

Slope
m = 2
Y-intercept
b = 4
Equation
y = 2x + 4
Step 1: Calculate the slope

Using the known points (-1, 2) and (1, 6):

\(m = \frac{6 - 2}{1 - (-1)} = \frac{4}{2} = 2\)

Step 2: Find the y-intercept

Using point (1, 6) and slope m = 2 in \(y = mx + b\):

\(6 = 2(1) + b\)

\(6 = 2 + b\)

\(b = 4\)

Step 3: Write the equation

Substituting m = 2 and b = 4 into \(y = mx + b\):

\(y = 2x + 4\)

Step 4: Find missing y-value when x = 3

Substitute x = 3 into the equation:

\(y = 2(3) + 4 = 6 + 4 = 10\)

Step 5: Find missing x-value when y = 12

Substitute y = 12 into the equation and solve for x:

\(12 = 2x + 4\)

\(12 - 4 = 2x\)

\(8 = 2x\)

\(x = 4\)

Step 6: Verify all points

Complete table: (-1, 2), (1, 6), (3, 10), (4, 12)

Check each point in y = 2x + 4: All satisfy the equation ✓

Equation: y = 2x + 4, Missing y = 10, Missing x = 4
Final answer:

The linear equation is \(y = 2x + 4\). The missing y-value when x = 3 is 10, and the missing x-value when y = 12 is 4.

Applied rules:

• Constant rate of change: Linear functions have the same slope between any two points

• Equation utility: Once found, the equation can be used to calculate any missing value

• Verification: Always check that completed points satisfy the equation

Tip 1: Always start by finding the slope using two complete points.
Tip 2: Use the equation to find missing values rather than trying to continue the pattern.
Tip 3: When solving for x, use inverse operations to isolate the variable.
5 Real-world application
Exercise 5
A plant grows at a constant rate. The table below shows its height over time. Write an equation that represents the height h of the plant after d days. Then predict the height after 15 days and determine when the plant will reach 25 cm.
Days (d)Height (h) in cm
27
513
819
1125
Definition:

Real-world linear models: Linear equations that represent situations where one quantity changes at a constant rate with respect to another. The slope often represents a rate (growth per day), and the y-intercept often represents an initial value (starting height).

Slope
m = 2
Y-intercept
b = 3
Equation
h = 2d + 3
Step 1: Calculate the slope (growth rate)

Using points (2, 7) and (5, 13):

\(m = \frac{13 - 7}{5 - 2} = \frac{6}{3} = 2\)

The plant grows 2 cm per day.

Step 2: Find the y-intercept (initial height)

Using point (2, 7) and slope m = 2 in \(h = md + b\):

\(7 = 2(2) + b\)

\(7 = 4 + b\)

\(b = 3\)

The initial height was 3 cm.

Step 3: Write the equation

Substituting m = 2 and b = 3 into \(h = md + b\):

\(h = 2d + 3\)

Step 4: Predict height after 15 days

Substitute d = 15 into the equation:

\(h = 2(15) + 3 = 30 + 3 = 33\)

After 15 days, the plant will be 33 cm tall.

Step 5: Find when plant reaches 25 cm

Substitute h = 25 into the equation and solve for d:

\(25 = 2d + 3\)

\(25 - 3 = 2d\)

\(22 = 2d\)

\(d = 11\)

The plant will reach 25 cm after 11 days.

Step 6: Verify with original data

Check: When d = 11, h = 2(11) + 3 = 22 + 3 = 25 ✓

h = 2d + 3, Day 15 = 33cm, 25cm at day 11
Final answer:

The equation representing the plant's height is \(h = 2d + 3\). After 15 days, the plant will be 33 cm tall. The plant will reach 25 cm after 11 days.

Applied rules:

• Modeling real-world problems: Identify independent variable (days) and dependent variable (height)

• Rate interpretation: The slope represents the growth rate in this context

• Initial value: The y-intercept represents the starting value

Tip 1: In real-world problems, the slope often represents a rate of change.
Tip 2: The y-intercept often represents an initial value or starting point.
Tip 3: Always check that your answers make sense in the context of the problem.
Detailed Summary of Writing Linear Equations from Tables and Graphs
Comprehensive Concepts:

What is a Linear Function? A linear function is a mathematical relationship between two variables (usually x and y) where the highest exponent of the variable is 1. When graphed, it forms a straight line. The general form is \(y = mx + b\), where m is the slope and b is the y-intercept.

Key Properties of Linear Functions:

  • Constant rate of change: The slope between any two points on the line is the same
  • Straight line graph: The function always produces a straight line when plotted
  • First-degree equation: Variables have exponents of 1 (no x², x³, etc.)
Core Methods:

Writing Equations from Tables:

  1. Verify constant rate of change by calculating slope between consecutive points
  2. Calculate slope using any two points: \(m = \frac{y_2 - y_1}{x_2 - x_1}\)
  3. Find y-intercept using one point and the slope: \(b = y - mx\)
  4. Write equation in form \(y = mx + b\)
  5. Verify by checking all table points satisfy the equation

Writing Equations from Graphs:

  1. Identify two clear points on the line (preferably with integer coordinates)
  2. Calculate slope using the slope formula
  3. Identify the y-intercept (where line crosses y-axis)
  4. Write equation in form \(y = mx + b\)
  5. Verify by checking that both points satisfy the equation

Completing Tables:

  1. Find the equation using available data points
  2. Use the equation to calculate missing values
  3. For missing y-values: substitute x into the equation
  4. For missing x-values: substitute y and solve for x
Examples:

Simple: Points (0,2) and (1,5) → slope = 3, y-int = 2 → y = 3x + 2

With negative slope: Points (0,4) and (2,0) → slope = -2, y-int = 4 → y = -2x + 4

Real-world: Distance vs time at constant speed follows linear pattern

Common Pitfalls:

• Calculating slope incorrectly with negative coordinates

• Not maintaining order in slope formula (numerator and denominator)

• Assuming a relationship is linear when it's not

• Reading coordinates inaccurately from graphs

Memory Tip: "Y am M X-tra B right" - helps remember the order in y = mx + b
Visual Tip: Positive slope = uphill, Negative slope = downhill, Zero slope = flat road
Checking Work: Always substitute points back into the equation to verify

Questions & Answers

Question: How can I tell if a table represents a linear function or not?

Answer: To determine if a table represents a linear function, check for a constant rate of change:

  • Calculate the slope between consecutive points using the formula: \(m = \frac{y_2 - y_1}{x_2 - x_1}\)
  • If the slope is the same between all pairs of consecutive points, the function is linear
  • If the slope changes between different pairs, the function is not linear

For example, if you have points (1, 2), (2, 4), (3, 6):

  • Slope from (1,2) to (2,4): (4-2)/(2-1) = 2/1 = 2
  • Slope from (2,4) to (3,6): (6-4)/(3-2) = 2/1 = 2
Since both slopes equal 2, this is a linear function.

If even one pair of points has a different slope, the relationship is not linear.

Question: What should I do if the y-intercept is not clearly shown on the graph?

Answer: If the y-intercept is not visible on the graph, you can still find it:

Method 1: Calculate using slope and any point

  • Identify any two points on the line from the graph
  • Calculate the slope using these points
  • Use the point-slope form: \(y - y_1 = m(x - x_1)\)
  • Rearrange to slope-intercept form to find b (the y-intercept)

Method 2: Extend the line

  • Use the slope to extend the line until it intersects the y-axis
  • Read the y-coordinate of this intersection point

For example, if you have a point (3, 5) and slope m = 2:

  • Using y = mx + b: 5 = 2(3) + b
  • 5 = 6 + b, so b = -1
  • The y-intercept is (0, -1)

Question: How do I handle fractional slopes when writing equations from tables or graphs?

Answer: Fractional slopes are handled the same way as integer slopes:

When calculating slope from two points:

  • Use the slope formula: \(m = \frac{y_2 - y_1}{x_2 - x_1}\)
  • It's okay if the result is a fraction
  • Simplify the fraction if possible

When writing the equation:

  • Simply use the fractional slope in y = mx + b
  • For example: if m = 3/4 and b = 2, the equation is y = (3/4)x + 2

When graphing or using the equation:

  • A slope of 3/4 means "rise 3, run 4" - move up 3 units for every 4 units right
  • You can also think of it as moving up 3 units when x increases by 4 units

Fractional slopes are common and perfectly valid in linear equations. The process remains the same regardless of whether the slope is a whole number, fraction, or decimal.