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

Master writing linear equations from graphs and tables: finding slope, y-intercept, and forming equations through these 3 detailed exercises.

Solution: Exercises 1 to 3
1 Writing equation from a graph
Exercise 1
Write the equation of the line shown in the graph.
Definition:

Linear equation in slope-intercept form: \(y = mx + b\) where \(m\) is the slope and \(b\) is the y-intercept.

Solution method:
  1. Identify the y-intercept (where the line crosses the y-axis)
  2. Select two points on the line to calculate the slope
  3. Use the slope formula: \(m = \frac{y_2 - y_1}{x_2 - x_1}\)
  4. Substitute the slope and y-intercept into \(y = mx + b\)
Identify y-intercept
\(b = 3\)
Select two points
(0, 3) and (2, 7)
Calculate slope
\(m = 2\)
Write equation
\(y = 2x + 3\)
Step 1: Find the y-intercept

Look for where the line crosses the y-axis (where x = 0).

The line crosses the y-axis at y = 3.

So, \(b = 3\).

Step 2: Select two points on the line

Choose two points that are easy to read from the graph.

We'll use (0, 3) and (2, 7).

Step 3: Calculate the slope

Using the slope formula: \(m = \frac{y_2 - y_1}{x_2 - x_1}\)

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

Step 4: Write the equation

Substitute \(m = 2\) and \(b = 3\) into \(y = mx + b\)

\(y = 2x + 3\)

Step 5: Verify the equation

Check with another point on the line, like (1, 5):

\(y = 2(1) + 3 = 5\) ✓

\(y = 2x + 3\)
Final answer:

The equation of the line is \(y = 2x + 3\).

Applied rules:

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

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

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

2 Writing equation from a table of values
Exercise 2
Write the equation of the linear function represented by the table:
xy
0-2
11
24
37
Definition:

Linear function: A function whose graph is a straight line, with a constant rate of change between x and y values.

Table analysis
Check for constant rate of change
Y-intercept
\(b = -2\)
Calculate slope
\(m = 3\)
Write equation
\(y = 3x - 2\)
Step 1: Verify linearity

Check if the rate of change is constant by calculating the change in y divided by change in x between consecutive points:

\(\frac{1-(-2)}{1-0} = \frac{3}{1} = 3\)

\(\frac{4-1}{2-1} = \frac{3}{1} = 3\)

\(\frac{7-4}{3-2} = \frac{3}{1} = 3\)

Since the rate of change is constant (3), this is a linear function.

Step 2: Find the y-intercept

The y-intercept occurs when x = 0.

Looking at the table, when x = 0, y = -2.

So, \(b = -2\).

Step 3: Calculate the slope

Since we verified the rate of change is constant at 3, the slope is 3.

Or using any two points, say (0, -2) and (1, 1):

\(m = \frac{1-(-2)}{1-0} = \frac{3}{1} = 3\)

Step 4: Write the equation

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

\(y = 3x - 2\)

Step 5: Verify the equation

Check with all points in the table:

When x = 2: \(y = 3(2) - 2 = 6 - 2 = 4\) ✓

When x = 3: \(y = 3(3) - 2 = 9 - 2 = 7\) ✓

\(y = 3x - 2\)
Final answer:

The equation of the linear function is \(y = 3x - 2\).

Applied rules:

• Constant rate of change: For linear functions, \(\frac{\Delta y}{\Delta x}\) is constant

• Y-intercept from table: Look for the y-value when x = 0

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

3 Writing equation from two points
Exercise 3
Write the equation of the line that passes through the points (-1, 5) and (2, -1).
Definition:

Two-point form: Any two distinct points determine a unique line, which can be expressed in slope-intercept form.

Given points
(-1, 5) and (2, -1)
Calculate slope
\(m = -2\)
Use point-slope form
\(y - y_1 = m(x - x_1)\)
Write equation
\(y = -2x + 3\)
Step 1: 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 2: Use point-slope form

Using the point (-1, 5) and slope \(m = -2\):

\(y - y_1 = m(x - x_1)\)

\(y - 5 = -2(x - (-1))\)

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

Step 3: Convert to slope-intercept form

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

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

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

\(y = -2x + 3\)

Step 4: Verify with both points

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

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

Step 5: Alternative method using other point

Using point (2, -1) and slope \(m = -2\):

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

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

\(y = -2x + 3\)

We get the same equation regardless of which point we use.

\(y = -2x + 3\)
Final answer:

The equation of the line is \(y = -2x + 3\).

Applied rules:

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

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

• Conversion: Rearrange to slope-intercept form \(y = mx + b\)

Rules and methods, laws,...
y = mx + b
Slope-Intercept Form
Method
From Graph
Identify y-intercept and slope
Method
From Table
Find constant rate of change
Method
From Two Points
Calculate slope and use point-slope form
Key Concept: The slope-intercept form \(y = mx + b\) requires finding the slope (m) and y-intercept (b).
Slope Calculation: \(m = \frac{y_2 - y_1}{x_2 - x_1}\) for any two points on the line.
Verification: Always check that your equation works for all given points or values.
Detailed Summary: Writing Linear Equations from Graphs/Tables
y = mx + b
General Form
Key definitions:

Linear Equation: An equation that forms a straight line when graphed, with the highest exponent of the variable being 1.

Slope-Intercept Form: The form \(y = mx + b\) where \(m\) represents the slope and \(b\) represents the y-intercept.

Slope (m): The measure of steepness of a line, calculated as the ratio of the vertical change (rise) to the horizontal change (run).

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

Constant Rate of Change: In linear functions, the ratio of change in y to change in x remains the same between any two points.

Complete methodology:
  1. Identify the required information: Determine what you're given (graph, table, points, etc.)
  2. Find the y-intercept: Look for the point where x = 0 or where the line crosses the y-axis
  3. Calculate the slope: Use two points to find the rate of change
  4. Substitute into the formula: Put values into \(y = mx + b\)
  5. Verify your equation: Check that it works for all given points or values
Tip 1: When reading from a graph, choose points that lie exactly on grid intersections for accuracy.
Tip 2: In tables, look for the row where x = 0 to find the y-intercept directly.
Tip 3: Always verify your equation by substituting known points to ensure accuracy.
Tip 4: For fractional slopes, find points that result in integer coordinates when possible.
Common errors: Misreading intercepts from graphs, miscalculating slope, inconsistent sign usage, failing to verify the equation.
Exam preparation: Practice identifying slope and y-intercept quickly from various representations, master the slope formula.
Properties to know by heart:

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

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

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

• Linear characteristic: Constant rate of change between x and y

• Y-intercept identification: Point where x = 0 or line crosses y-axis

• Verification: Substitute points back into equation to check accuracy

Questions & Answers

Question: When I'm given a table, how do I know if the relationship is linear or not?

Answer: To determine if a table represents a linear relationship, calculate the rate of change between consecutive points:

For each pair of consecutive points, compute: \(\frac{\text{change in } y}{\text{change in } x} = \frac{y_2 - y_1}{x_2 - x_1}\)

If this ratio is the same for all pairs of consecutive points, then the relationship is linear.

Example: If your table has points (1,3), (2,5), (3,7):
\(\frac{5-3}{2-1} = \frac{2}{1} = 2\)
\(\frac{7-5}{3-2} = \frac{2}{1} = 2\)
Since the rate of change is constant (2), this is a linear relationship.

If the rates of change differ, the relationship is not linear.

Question: Sometimes I can't easily see the y-intercept on a graph. What should I do?

Answer: If the y-intercept isn't visible on the graph, you can still find it using the slope and any point on the line:

1. Choose any two points on the line to calculate the slope: \(m = \frac{y_2 - y_1}{x_2 - x_1}\)

2. Use the point-slope form with one of your points: \(y - y_1 = m(x - x_1)\)

3. Rearrange to slope-intercept form: \(y = mx + b\), where \(b\) is the y-intercept

Example: If you have points (2, 4) and (5, 10) on the line:
Slope: \(m = \frac{10-4}{5-2} = \frac{6}{3} = 2\)
Using point (2, 4): \(y - 4 = 2(x - 2)\)
\(y - 4 = 2x - 4\)
\(y = 2x\)
So the y-intercept is 0, even though it might not be visible on the graph.

Alternatively, you can extend the line visually until it intersects the y-axis.

Question: When I have two points, does it matter which point I use in the point-slope form?

Answer: No, it does not matter which point you use in the point-slope form. You will always get the same final equation in slope-intercept form.

Let's demonstrate with points (1, 3) and (4, 9):
Slope: \(m = \frac{9-3}{4-1} = \frac{6}{3} = 2\)

Using point (1, 3):
\(y - 3 = 2(x - 1)\)
\(y - 3 = 2x - 2\)
\(y = 2x + 1\)

Using point (4, 9):
\(y - 9 = 2(x - 4)\)
\(y - 9 = 2x - 8\)
\(y = 2x + 1\)

Both methods yield the same equation. The choice of point is purely a matter of convenience - pick the one that makes the arithmetic easier.

However, make sure you're consistent: use the same point for both the x₁ and y₁ coordinates in the formula.