1. Meaning of a straight-line graph
A straight-line graph represents a linear relationship between two variables.
The equation of a non-vertical straight line can be written as:
Where:
- = gradient.
- = y-intercept.
- = independent variable.
- = dependent variable.
2. Meaning of gradient
The gradient measures the steepness and direction of a straight line.
For two points and :
The denominator must not be zero.
Gradient of a straight line
Gradient = Rise ÷ Run
3. Calculating gradient from two points
Worked example
Find the gradient of the line passing through and .
4. Finding the equation of a line from its gradient and one point
Use:
Example
A line has gradient 3 and passes through .
5. Finding the equation of a line through two points
Example
Find the equation of a line passing through and .
Step 1: Find the gradient.
Step 2: Use point-gradient form.
6. Intercepts of a straight line
The y-intercept is where a graph crosses the y-axis. At this point, .
The x-intercept is where a graph crosses the x-axis. At this point, .
Example
Find the intercepts of:
For the y-intercept, set :
Therefore, the y-intercept is .
For the x-intercept, set :
Therefore, the x-intercept is .
7. Applications of straight-line equations
Linear equations can represent:
- Taxi fares with a fixed starting charge and a cost per kilometre.
- Wages based on hours worked.
- Cost of purchasing identical items.
- Water charges with fixed and variable components.
- Constant-speed motion.
Example
A delivery service charges KSh 150 plus KSh 40 per kilometre.
For 8 km:
Exercise 2.2
- Find the gradient through and .
- Find the equation of a line with gradient 4 passing through .
- Find the equation through and .
- Find the x- and y-intercepts of .
- Interpret the gradient and intercept in .