Functions & graphs
A skill in Algebra, part of NUET Mathematics. Here is the idea, the method step by step and the formulas you need.
On the exam
Counted in the official NUET 2022 specimen paper. One paper is a small sample: a topic with few questions there can still come up more often.
The idea
y = mx + c: gradient m, crosses the y-axis at c. Parallel: same m; perpendicular: m₁m₂ = −1.
Where two graphs cross solves both equations.
A graph shows every pair (x, y) that fits an equation. The most common graph on NUET is the straight line y = mx + c. The number m is the gradient: it tells you how steep the line is and whether it goes up or down from left to right. The number c is where the line crosses the y-axis.
The gradient is the rise divided by the run. Take two points on the line, find how much y changes and how much x changes, and divide. A positive gradient goes up to the right, a negative one goes down, and a gradient of 0 is a flat line. Lines with the same gradient are parallel.
Curves appear too. The graph of y = x² is a U shape with its lowest point at the origin. Moving it changes the equation in a regular way: y = x² + 4 is the same U moved 4 units up. To find where any graph meets an axis, put x = 0 for the y-axis or y = 0 for the x-axis.
Step by step
- gradientm = y₂ − y₁x₂ − x₁
- liney − y₁ = m(x − x₁)
- axesx = 0 for the y-axis, y = 0 for the x-axis
- turning pointy = (x − p)² + q → (p, q)
The full lesson in SAVVY takes about 5 minutes: worked examples, things to remember and common traps.
Worked examples
Example 1
Find the gradient of the line through (2, 1) and (6, 9).
- rise9 − 1 = 8
- run6 − 2 = 4
- gradient84 = 2
- answer2
Example 2
Where does the line y = 3x − 6 cross the two axes?
- y-axisx = 0 gives y = −6
- x-axisy = 0 gives 3x = 6, so x = 2
- answer(0, −6) and (2, 0)
Common mistakes
- Dividing the run by the rise. The gradient is the change in y divided by the change in x.
- Mixing up the points. Take both coordinates in the same order: if the rise starts from the second point, the run must start from the second point too.
- Reading c from the wrong form. 2y = 4x + 6 crosses the y-axis at 3, not 6. First write the equation as y = 2x + 3.
Try it yourself
Is the point (4, 5) on the line y = 2x − 3?
Show answer
- put in x = 4y = 2 × 4 − 3 = 5
- comparethe point has y = 5 too
- answeryes, it is on the line
Key formulas
Gradient and straight lines
m = (y₂ − y₁) / (x₂ − x₁)y = mx + c
When it helps: m is the slope, c is where the line crosses the y-axis.
Example: Through (1, 3) and (3, 7): m = 4 ÷ 2 = 2, so y = 2x + 1.
Parallel and perpendicular lines
parallel: m₁ = m₂perpendicular: m₁ × m₂ = −1
When it helps: Turn the gradient upside down and change its sign.
Example: Perpendicular to y = 2x + 1: the gradient is −1/2.
Midpoint and distance
M = ((x₁ + x₂)/2, (y₁ + y₂)/2)d = √((x₂ − x₁)² + (y₂ − y₁)²)
When it helps: The distance is Pythagoras on the grid.
Example: (1, 2) and (4, 6): d = √(9 + 16) = 5.
Moving a graph
y = f(x) + a: up by ay = f(x − a): right by a
y = −f(x): flipped in the x-axis
When it helps: Inside the brackets the shift goes the "wrong" way.
Example: y = (x − 2)² + 1 is y = x² moved 2 right and 1 up: vertex (2, 1).
Learn first
Other topics in Algebra
- Linear equations
- Quadratic equations
- Simultaneous equations
- Inequalities
- Sequences
- Algebraic fractions
- Rearranging formulas
Practise functions & graphs free
SAVVY has practice questions on this topic with step-by-step explanations, a full lesson and an AI tutor that explains where you went wrong. Free to start.
Practise this topic free →