Writing Equations for Linear Relationships: Complete Guide

Master writing equations for linear relationships: definitions, rules, methods, and 5 detailed exercises with step-by-step solutions.

Writing Equations for Linear Relationships Summary
\(y = mx + b\)
Slope-Intercept Form
Key Definitions:

Linear Relationship: A relationship between two variables that forms a straight line when graphed

Slope (m): The rate of change of the dependent variable with respect to the independent variable

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

Independent Variable: The variable that can be changed freely (usually x)

Dependent Variable: The variable that depends on the independent variable (usually y)

Rate of Change: How much y changes when x increases by 1 unit

Writing Linear Equations:
  1. Identify Variables: Determine which variable is independent (x) and dependent (y)
  2. Find the Rate of Change (Slope): Calculate how much y changes when x increases by 1
  3. Find the Y-Intercept: Determine the value of y when x = 0
  4. Write the Equation: Use the form y = mx + b where m is slope and b is y-intercept
  5. Verify: Check that your equation works for the given data points
Tip 1: Slope = rise/run = change in y/change in x
Tip 2: If x increases by 1 and y increases by 3, the slope is 3
Tip 3: Y-intercept is the starting value when x = 0
Tip 4: Always check your equation with multiple data points
Common Errors: Mixing up x and y variables, calculating slope incorrectly, misidentifying y-intercept, not verifying the equation with data points.
Key Insight: Linear equations reveal the exact mathematical relationship between two variables.
Essential Rules:

• Slope-Intercept Form: y = mx + b where m is slope and b is y-intercept

• Slope Calculation: m = (y₂ - y₁)/(x₂ - x₁) for any two points on the line

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

• Verification: Every data point should satisfy the equation

Solution: Exercises 1 to 3
1 Basic Addition Relationship
Exercise 1
Write an equation for the linear relationship shown in this table: (0,2), (1,3), (2,4), (3,5), (4,6).
Problem Analysis:

We need to find the equation y = mx + b that fits the given data points. We'll identify the slope (rate of change) and y-intercept.

Solution Method:

Find the slope by calculating the change in y when x increases by 1, then find the y-intercept.

Data Points
(0,2), (1,3), (2,4), (3,5), (4,6)
Slope (m)
m = 1
Y-Intercept (b)
b = 2
Equation
y = x + 2
Step 1: Identify the variables

X is independent variable, Y is dependent variable

Step 2: Find the slope (rate of change)

When x increases by 1, y increases by 1

Slope m = 1

Step 3: Find the y-intercept

When x = 0, y = 2

Y-intercept b = 2

Step 4: Write the equation

y = mx + b

y = 1x + 2

y = x + 2

Step 5: Verify the equation

Check with point (3,5): y = 3 + 2 = 5 ✓

Check with point (4,6): y = 4 + 2 = 6 ✓

y = x + 2
Final answer:

The equation for the linear relationship is y = x + 2.

Applied rules:

• Slope-Intercept Form: y = mx + b where m is slope and b is y-intercept

• Rate of Change: Calculated as change in y divided by change in x

• Verification: Check that the equation works for all data points

2 Multiplicative Relationship
Exercise 2
Write an equation for the linear relationship shown in this table: (0,0), (1,3), (2,6), (3,9), (4,12).
Problem Analysis:

We need to find the equation y = mx + b that fits the given data points. We'll identify the slope (rate of change) and y-intercept.

Data Points
(0,0), (1,3), (2,6), (3,9), (4,12)
Slope (m)
m = 3
Y-Intercept (b)
b = 0
Equation
y = 3x
Step 1: Identify the variables

X is independent variable, Y is dependent variable

Step 2: Find the slope (rate of change)

When x increases by 1, y increases by 3

Slope m = 3

Step 3: Find the y-intercept

When x = 0, y = 0

Y-intercept b = 0

Step 4: Write the equation

y = mx + b

y = 3x + 0

y = 3x

Step 5: Verify the equation

Check with point (2,6): y = 3(2) = 6 ✓

Check with point (4,12): y = 3(4) = 12 ✓

y = 3x
Final answer:

The equation for the linear relationship is y = 3x.

Applied rules:

• Slope-Intercept Form: y = mx + b where m is slope and b is y-intercept

• Rate of Change: Calculated as change in y divided by change in x

• Verification: Check that the equation works for all data points

3 Complex Linear Relationship
Exercise 3
Write an equation for the linear relationship shown in this table: (0,1), (1,3), (2,5), (3,7), (4,9).
Problem Analysis:

We need to find the equation y = mx + b that fits the given data points. We'll identify the slope (rate of change) and y-intercept.

Data Points
(0,1), (1,3), (2,5), (3,7), (4,9)
Slope (m)
m = 2
Y-Intercept (b)
b = 1
Equation
y = 2x + 1
Step 1: Identify the variables

X is independent variable, Y is dependent variable

Step 2: Find the slope (rate of change)

When x increases by 1, y increases by 2

Slope m = 2

Step 3: Find the y-intercept

When x = 0, y = 1

Y-intercept b = 1

Step 4: Write the equation

y = mx + b

y = 2x + 1

Step 5: Verify the equation

Check with point (2,5): y = 2(2) + 1 = 5 ✓

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

y = 2x + 1
Final answer:

The equation for the linear relationship is y = 2x + 1.

Applied rules:

• Slope-Intercept Form: y = mx + b where m is slope and b is y-intercept

• Rate of Change: Calculated as change in y divided by change in x

• Verification: Check that the equation works for all data points

Solution: Exercises 4 to 5
4 Real-World Application
Exercise 4
A bakery charges $2 per cupcake plus a $5 delivery fee. Write an equation for the total cost (y) based on the number of cupcakes (x).
Problem Analysis:

We need to model a real-world situation. Let x = number of cupcakes and y = total cost. The cost increases by $2 per cupcake plus a $5 delivery fee.

Variables
x = cupcakes, y = total cost
Slope (m)
m = 2 (cost per cupcake)
Y-Intercept (b)
b = 5 (delivery fee)
Equation
y = 2x + 5
Step 1: Identify the variables

Let x = number of cupcakes (independent variable)

Let y = total cost (dependent variable)

Step 2: Determine the rate of change

Each cupcake costs $2, so the slope is 2

Step 3: Find the y-intercept

Even with 0 cupcakes, there's a $5 delivery fee

Y-intercept b = 5

Step 4: Write the equation

y = mx + b

y = 2x + 5

Step 5: Verify the equation

Check with 3 cupcakes: y = 2(3) + 5 = 11 ✓

Check with 0 cupcakes: y = 2(0) + 5 = 5 ✓

y = 2x + 5
Final answer:

The equation for the total cost is y = 2x + 5.

Applied rules:

• Real-World Modeling: Translate word problems into mathematical relationships

• Slope-Intercept Form: y = mx + b where m is slope and b is y-intercept

• Verification: Check that the equation makes sense in context

5 Distance-Speed-Time Relationship
Exercise 5
A car travels at a constant speed of 60 miles per hour. Write an equation for the distance (y) traveled based on the time (x) in hours.
Problem Analysis:

We need to model distance-time relationship. Using the formula distance = rate × time, with rate = 60 mph, the relationship is linear.

Variables
x = time in hours, y = distance in miles
Slope (m)
m = 60 (miles per hour)
Y-Intercept (b)
b = 0 (starts at 0 miles)
Equation
y = 60x
Step 1: Identify the variables

Let x = time in hours (independent variable)

Let y = distance in miles (dependent variable)

Step 2: Determine the rate of change

Car travels 60 miles per hour, so the slope is 60

Step 3: Find the y-intercept

At time 0 hours, distance is 0 miles

Y-intercept b = 0

Step 4: Write the equation

y = mx + b

y = 60x + 0

y = 60x

Step 5: Verify the equation

Check with 2 hours: y = 60(2) = 120 miles ✓

Check with 0.5 hours: y = 60(0.5) = 30 miles ✓

y = 60x
Final answer:

The equation for the distance traveled is y = 60x.

Applied rules:

• Formula Application: Use relevant formulas (distance = rate × time)

• Slope-Intercept Form: y = mx + b where m is slope and b is y-intercept

• Verification: Check that the equation makes sense in context

Questions & Answers

Question: I have trouble finding the slope when I'm given a table of values. How do I calculate it?

Answer: Here's how to find the slope from a table of values:

  • Find the rate of change: See how much y changes when x increases by 1
  • Use the formula: Slope = (change in y) ÷ (change in x)
  • Look for the pattern: If x increases by the same amount each time, see how y changes

For example, if x: 0, 1, 2 and y: 2, 5, 8:

  • When x increases by 1, y increases by 3
  • So the slope is 3
  • Or use the formula: (5-2)÷(1-0) = 3÷1 = 3

Check with multiple pairs to make sure the slope is consistent!

Question: My child doesn't understand what the y-intercept means. How can I explain it?

Answer: Here are ways to explain the y-intercept:

  • Starting point: It's the value of y when x = 0 (where the line starts)
  • Initial value: It's the value you start with before anything else happens
  • Where it crosses: It's where the line crosses the y-axis

In the examples we did:

  • y = x + 2: y-intercept is 2 (start at 2)
  • y = 2x + 5: y-intercept is 5 (delivery fee even with 0 cupcakes)
  • y = 60x: y-intercept is 0 (start at 0 miles at time 0)

Think of it as the "baseline" or "starting amount"!

Question: How do I know if my equation is correct? What should I do to check it?

Answer: Always verify your equation by substituting data points back into it:

  • Test with original data: Use the points from your table to check if they satisfy your equation
  • Try multiple points: Check at least 2-3 points to ensure consistency
  • Calculate expected values: Use your equation to calculate y for given x values

For example, if your equation is y = 2x + 3 and you have the point (1, 5):

  • Substitute x = 1: y = 2(1) + 3 = 5
  • Compare: Expected y = 5, actual y = 5 ✓

If your equation works for all the original data points, it's likely correct!