Article Contents
- What is a Linear Function?
- Slope k
- Y-intercept q
- Drawing the Graph (Two-Point Method)
- SVG: Comparing Linear Functions
- Special Cases
- Parallel Lines
- Finding the Equation from Two Points
- Intersection with Axes
- Properties
- Common Mistakes
- Interactive Exercises
1. What is a Linear Function? {#what-is-linear}
A linear function is a function of the form:
f(x)=kx+q
where:
- k is the slope (gradient) -- how steep the line is
- q is the y-intercept -- where the line crosses the y-axis
The graph is always a straight line.
Relationship to Direct Proportion
When q=0, the linear function becomes f(x)=kx, which is a direct proportion. So direct proportion is a special case of the linear function.
2. Slope k {#slope-k}
The slope k tells us how much y changes when x increases by 1:
k=ΔxΔy=x2−x1y2−y1
| Value of k | Meaning | Graph |
| k>0 | Function is increasing | Line goes up to the right |
| k<0 | Function is decreasing | Line goes down to the right |
| k=0 | Function is constant | Horizontal line (y=q) |
| $ | k | $ large | Steep line | |
| $ | k | $ small | Gentle line | |
Example
For f(x)=3x+1: the slope is k=3.
This means: when x increases by 1, y increases by 3.
3. Y-intercept q {#y-intercept-q}
The y-intercept q is the value of f(0):
f(0)=k⋅0+q=q
So the graph crosses the y-axis at the point (0,q).
| Value of q | Where the line crosses the y-axis |
| q>0 | Above the origin |
| q=0 | At the origin (direct proportion) |
| q<0 | Below the origin |
4. Drawing the Graph (Two-Point Method) {#drawing-graph}
To draw a straight line, you only need two points. Here is the method:
Step 1: Find two points
Choose two easy values of x (often x=0 and x=1, or where f(x)=0).
Step 2: Calculate f(x)
Step 3: Plot and connect
Example: f(x)=2x+1
- Point 1: f(0)=2(0)+1=1 gives (0,1)
- Point 2: f(1)=2(1)+1=3 gives (1,3)
- Point 3 (check): f(−1)=2(−1)+1=−1 gives (−1,−1)
Plot these points and draw a straight line through them.
5. SVG: Comparing Linear Functions {#comparing-functions}
| Function | Slope k | Y-intercept q | Behaviour |
| y=2x+1 | 2 | 1 | Increasing, steep |
| y=−x+2 | −1 | 2 | Decreasing |
| y=0.5x−1 | 0.5 | −1 | Increasing, gentle |
Notice how:
- The blue and green lines both go upward (positive k), but blue is steeper
- The red line goes downward (negative k)
- Each line crosses the y-axis at its q value
6. Special Cases {#special-cases}
| Case | Equation | Graph |
| k=0 | f(x)=q | Horizontal line |
| q=0 | f(x)=kx | Direct proportion (through origin) |
| k=1,q=0 | f(x)=x | The identity line (45 degree angle) |
7. Parallel Lines {#parallel-lines}
Two linear functions are parallel if and only if they have the same slope k.
Example
f(x)=3x+1 and
g(x)=3x−4 are parallel (both have
k=3).
They never intersect -- the distance between them is constant.
Rule: Same slope = parallel. Different slope = the lines will intersect at exactly one point.
8. Finding the Equation from Two Points {#equation-from-points}
Given two points (x1,y1) and (x2,y2):
Step 1: Calculate the slope:
k=x2−x1y2−y1
Step 2: Use one point to find
q:
q=y1−k⋅x1
Example
Find the equation of the line through A(1,5) and B(3,11).
k=3−111−5=26=3
q=5−3⋅1=2
f(x)=3x+2
Check: f(3)=3(3)+2=11 -- correct.
9. Intersection with Axes {#intersection-axes}
Y-axis intersection
Set x=0:
f(0)=k⋅0+q=q
The line crosses the y-axis at (0,q).
X-axis intersection (zero of the function)
Set f(x)=0:
kx+q=0⟹x=−kq(k=0)
The line crosses the x-axis at (−kq,0).
Example: f(x)=2x−6
- Y-intercept: (0,−6)
- X-intercept: 2x−6=0⟹x=3, so (3,0)
10. Properties {#properties}
| Property | Value |
| Formula | f(x)=kx+q |
| Graph | Straight line |
| Domain | D(f)=R |
| Range | R(f)=R (if k=0) or R(f)={q} (if k=0) |
| Slope | k=ΔxΔy |
| Y-intercept | (0,q) |
| X-intercept | (−kq,0) for k=0 |
| Increasing | When k>0 |
| Decreasing | When k<0 |
| Parallel lines | Same slope k |
11. Common Mistakes {#common-mistakes}
| Mistake | Correction |
| Confusing slope and y-intercept | In y=kx+q, k is the slope (multiplies x), q is the y-intercept (constant) |
| Using only one point to draw | Use at least two points; three for verification |
| Thinking parallel lines have the same q | Parallel means same k, not same q |
| Writing k=y2−y1x2−x1 | The slope is ΔxΔy, not ΔyΔx |
| Confusing with direct proportion | Direct proportion: y=kx (no q). Linear: y=kx+q |
12. Interactive Exercises {#interactive-exercises}
Practice linear functions:
Summary
| Concept | Description |
| Linear function | f(x)=kx+q |
| Slope k | Rate of change; steepness and direction of the line |
| Y-intercept q | Where the line crosses the y-axis: (0,q) |
| Drawing | Find 2 points, plot them, draw a straight line |
| Parallel | Same slope k, different q |
| Special case | q=0 gives direct proportion y=kx |
Related Articles