Welcome to the World of Straight Lines!
In this chapter, we are going to explore Linear Functions and Graphs. Don't let the name intimidate you! A "linear" function is simply a mathematical rule that creates a perfectly straight line when you draw it on a graph. These functions are everywhere in real life—from calculating how much you earn at a part-time job to predicting how much fuel a car uses on a road trip. By the end of these notes, you’ll be a pro at reading, drawing, and creating these lines!
1. The Basics: What is a Linear Function?
A function is like a machine: you put a number in (the input, usually \(x\)), and a number comes out (the output, usually \(y\)). In a linear function, the output changes at a constant rate. This means every time \(x\) goes up by 1, \(y\) always goes up or down by the same amount.
The Magic Formula
The most common way we write a linear function is:
\(y = mx + c\)
Let’s break that down:
- \(y\): The dependent variable (the result).
- \(x\): The independent variable (the number you choose).
- \(m\): The Gradient (how steep the line is).
- \(c\): The Y-intercept (where the line crosses the vertical y-axis).
Quick Review: Think of a taxi ride. The "start fee" is your \(c\), and the "price per kilometer" is your \(m\). Even if the car doesn't move, you pay the start fee!
2. Understanding the Gradient (\(m\))
The gradient tells us two things: how steep the line is and which direction it’s going.
How to calculate Gradient:
We often use the phrase "Rise over Run".
\(m = \frac{Rise}{Run}\)
If you have two points on a graph, \((x_1, y_1)\) and \((x_2, y_2)\), you can find the gradient using:
\(m = \frac{y_2 - y_1}{x_2 - x_1}\)
Direction of the Line:
- Positive Gradient: The line goes up from left to right (like climbing a hill).
- Negative Gradient: The line goes down from left to right (like skiing down a hill).
- Zero Gradient: The line is perfectly horizontal (like walking on flat ground). The equation looks like \(y = c\).
- Undefined Gradient: The line is perfectly vertical (like a cliff). The equation looks like \(x = h\).
Did you know? Civil engineers use gradients to design roads. If a road is too steep (the gradient is too high), it could be dangerous for heavy trucks!
Key Takeaway: The gradient (\(m\)) is the "steepness." A bigger number means a steeper line!
3. The Y-Intercept (\(c\))
The y-intercept is the point where the line crosses the y-axis (the vertical line). At this exact point, the value of \(x\) is always 0.
Example: In the equation \(y = 2x + 5\), the y-intercept is \(5\). This means the line passes through the point \((0, 5)\).
Common Mistake to Avoid: Don't mix up the x-axis and y-axis! The y-intercept is always on the vertical line. Always check that your \(x\) value is zero when looking for the y-intercept.
4. How to Graph a Linear Function
Don't worry if this seems tricky at first; there are two easy ways to do it!
Method A: Using a Table of Values
1. Pick three simple numbers for \(x\) (usually \(-1\), \(0\), and \(1\)).
2. Plug these into your equation to find \(y\).
3. Plot the three points on your graph.
4. Draw a straight line through them using a ruler.
Method B: Using the Gradient and Y-intercept
1. Plot the y-intercept (\(c\)) on the y-axis. This is your starting point.
2. From that point, use the gradient (\(\frac{Rise}{Run}\)) to find the next point.
Example: If \(m = \frac{2}{3}\), move up 2 and right 3.
3. Connect the dots!
Key Takeaway: You only need two points to draw a straight line, but a third point helps you make sure you haven't made a mistake!
5. Finding the Equation of a Line
Sometimes, you are given a graph and asked to find the equation. Just follow these steps:
Step 1: Find the y-intercept (\(c\)) by looking at where the line crosses the vertical axis.
Step 2: Pick two clear "grid points" and calculate the gradient (\(m\)) using \(\frac{Rise}{Run}\).
Step 3: Put them together into the \(y = mx + c\) format.
Example:
If a line crosses the y-axis at \(3\) and goes up \(1\) unit for every \(2\) units it goes right:
- \(c = 3\)
- \(m = \frac{1}{2}\)
- The equation is \(y = \frac{1}{2}x + 3\).
6. Parallel and Perpendicular Lines
This is a handy trick to identify relationships between lines without even looking at a graph!
- Parallel Lines: These lines never touch because they have the exact same gradient. If line A has \(m = 4\), and line B has \(m = 4\), they are parallel.
- Perpendicular Lines: These lines cross at a 90-degree angle. Their gradients are "negative reciprocals." This is a fancy way of saying: flip the fraction and change the plus/minus sign.
Example: If a line has a gradient of \(3\), a line perpendicular to it will have a gradient of \(-\frac{1}{3}\).
Quick Summary Checklist
Before you move on, make sure you can:
- Identify \(m\) and \(c\) in an equation.
- Calculate the gradient using Rise / Run.
- Plot a line starting from the y-intercept.
- Recognize that parallel lines have the same gradient.
- Use \(y = mx + c\) to describe a straight-line pattern.
Remember: Math is a skill like playing a video game or a sport—the more you practice drawing these lines, the easier it becomes! You've got this!