How do you measure the steepness of a line, write its equation in the form a question wants, decide when two lines are parallel or perpendicular, and find the length and midpoint of the interval joining two points?
Work with the gradient of a line as rise over run and as the tangent of its angle of inclination, write the equation of a line in gradient-intercept, point-gradient and general form, use the parallel and perpendicular gradient conditions, and find the length and midpoint of an interval
A Year 11 Maths Advanced answer on the straight line: gradient as rise over run and as tan of the angle of inclination, the gradient-intercept, point-gradient and general forms, the parallel and perpendicular gradient tests, and the length and midpoint of an interval, with worked examples and practice questions.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
What this dot point is asking
Every straight line in the plane is captured by two numbers: how steep it is, and where it sits. This dot point is the toolkit for both. The gradient measures steepness as rise over run, and it is also the tangent of the line's angle to the horizontal, which links coordinate geometry to trigonometry. Once you have a gradient and a point, you can write the line's equation in whichever of three standard forms a question wants. Two lines are parallel when their gradients are equal and perpendicular when the product of their gradients is . And the length and midpoint of the interval joining two points come straight from Pythagoras and from averaging the coordinates.
None of these ideas is hard on its own, but the marks live in choosing the right tool and laying out the working cleanly. A "find the equation of the line through two points" question is really two steps (gradient, then point-gradient form); a "perpendicular" question hinges on the negative-reciprocal gradient; a "distance" question is Pythagoras in disguise. This page is also the launch pad for the rest of coordinate geometry: tangents and normals to curves in calculus are just lines through a point with a known (or perpendicular) gradient, so the technique you build here is used again and again.
The answer
Gradient: rise over run
The gradient of an interval (or of the line through it) measures its steepness as you walk from one point to the other. It is the rise (the vertical change) divided by the run (the horizontal change). For two points and ,
The order does not matter as long as you subtract the coordinates the same way in the top and the bottom: swapping and changes the sign of both the rise and the run, and the two sign changes cancel. A positive gradient slopes up to the right; a negative gradient slopes down to the right; a horizontal line has gradient (zero rise); and a vertical line has no gradient at all, because the run is zero and you cannot divide by zero.
The figure below shows the line through and . Walking from the first point to the second, the run is to the right and the rise is up, so the gradient is . The right-angled triangle drawn under the line is the gradient triangle: its horizontal leg is the run, its vertical leg is the rise, and you can build it between any two points on the line and always get the same ratio.
Gradient as the tangent of the angle of inclination
There is a second, equivalent way to read a gradient. The angle of inclination is the angle the line makes with the positive -axis, measured anticlockwise. Because the gradient triangle is a right-angled triangle with the rise opposite and the run adjacent to it,
So a gradient and an angle carry the same information. A line of gradient rises at ; a steeper gradient gives a larger angle. A positive gradient gives an acute angle (); a negative gradient gives an obtuse angle (), because the line tilts back the other way. To go from a gradient to its angle you take of the gradient; if that comes out negative (as it does for a downhill line, where the calculator returns a value between and ), add to land in the correct to range.
The three forms of the equation of a line
NESA expects you to move fluently between three standard forms. Each is best for a different job.
- Gradient-intercept form . Here is the gradient and is the -intercept (the value of when ). This is the form to use when you can read the gradient and intercept directly, and the form most graphs are sketched from.
- Point-gradient form . This builds the equation of the line with gradient that passes through a specific point . It is the workhorse: whenever you know a gradient and one point, start here.
- General form . Every term is on one side and equals zero, with integer coefficients where possible and the coefficient of non-zero for a genuine function. This is the tidy "final answer" form, and the one that also covers vertical lines, which the other two forms cannot (a vertical line has no gradient).
When a question does not specify a form, gradient-intercept or general form is acceptable; if you give general form, clear any fractions and divide out any common factor first. To convert to general form, multiply through by to get , then collect: .
The line through two given points
This is the most common equation question, and it is a clean two-step recipe. First find the gradient from the two points with the rise-over-run formula. Then substitute that gradient and either point into point-gradient form, and tidy up. It does not matter which of the two points you use in the second step; both give the same line, which is a useful self-check.
For the line through and : the gradient is , and then through , point-gradient form gives , which tidies to or, in general form, . Substituting into the general form gives , confirming is on the line.
Parallel and perpendicular lines
Two non-vertical lines are parallel exactly when they have the same gradient. That is the whole test: equal gradients means the lines never meet (or are the same line). Any two vertical lines are also parallel.
Two lines are perpendicular exactly when the product of their gradients is :
So the gradient perpendicular to a given one is its negative reciprocal: flip the fraction and change the sign. The gradient perpendicular to is ; the gradient perpendicular to is . The one special case the product rule cannot see is a horizontal line (gradient ) with a vertical line (no gradient): these are perpendicular, but you cannot multiply by an undefined gradient, so handle that pair by inspection.
The figure below shows a perpendicular pair: has gradient and has gradient , and their product is . They cross at , and the small square marks the right angle between them.
This same idea tests whether three points are collinear (all on one line): find the gradient between the first pair and the gradient between the second pair, and if the two gradients are equal, the points lie on a single straight line.
Length and midpoint of an interval
The interval joining and has a length and a midpoint, and both come from the run and the rise.
The length (distance) is the hypotenuse of the gradient triangle, so by Pythagoras,
The squares make the order of subtraction irrelevant. Where the answer is not a whole number, leave it as a simplified surd unless a decimal is asked for, for example .
The midpoint is the point halfway along, found by averaging the coordinates:
The figure below joins to . The dashed triangle has run and rise , so the length is , and the midpoint is the average , marked on the interval.
Lines in real contexts
A straight line is the natural model whenever a quantity changes at a constant rate. Suppose a Sydney plumber charges a fixed callout fee of $90 plus $75 for each hour on site. The total cost for hours is . This is a line in disguise: the gradient is the rate (the cost per extra hour) and the intercept is the starting value (the cost before any hours are billed). For a three-hour job, , so the bill is $315. Reading a worded rate problem as , with the rate as the gradient and the fixed amount as the intercept, turns it straight into the algebra above.
Gradient as also has a physical reading: it is the slope of a ramp or road. A wheelchair ramp that rises m over a horizontal run of m has gradient , and its angle to the horizontal is , which is why accessibility standards quote ramp slopes as a ratio like .
How exam questions ask about lines
The wording tells you which tool to reach for:
- "Find the gradient of the line / interval through ... and ..." is the rise-over-run formula. State it as a fraction in lowest terms unless told otherwise.
- "Find the equation of the line through the two points ... and ..." is the two-step recipe: gradient first, then point-gradient form, then tidy. Either point works in step two.
- "Find the equation of the line through ... parallel to / perpendicular to ..." Read off the given line's gradient. Parallel keeps it; perpendicular takes the negative reciprocal. Then use point-gradient form through the given point.
- "Show that ... is perpendicular to ..." Compute both gradients and show their product is . "Show that ... is parallel to ..." shows the gradients are equal.
- "Show that the three points ... are collinear." Show the gradient of one pair equals the gradient of another pair sharing a point.
- "Find the midpoint / the length / the distance between ... and ..." Average the coordinates for the midpoint; use the distance formula for the length, leaving a surd in exact form.
- "Find the angle of inclination / the angle the line makes with the -axis." Find the gradient, then take ; add if the gradient is negative so the angle is obtuse.
- "Find where the line cuts the axes / find the intercepts." Put for the -intercept and for the -intercept.
- "Find the equation of the perpendicular bisector of ..." Combine two skills: the midpoint of the interval and the perpendicular gradient, then point-gradient form through the midpoint.
Practice questions
Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.
foundation3 marksFor the interval joining and , find (a) its gradient, (b) its midpoint, and (c) its length.Show worked solution →
Set up the two points. Take as and as . The differences are and , and all three formulas use these.
(a) Gradient (rise over run).
(b) Midpoint (average the coordinates).
(c) Length (Pythagoras on the run and rise).
State the answers. Gradient , midpoint , length . The same two differences and fed all three results, so compute them once and reuse them.
foundation3 marksA line has gradient and cuts the -axis at . (a) Write its equation in gradient-intercept form. (b) Write it in general form. (c) Find its -intercept.Show worked solution →
(a) Gradient-intercept form. With and , substitute straight into :
(b) General form. Move every term to one side so the form is . From , take across:
(c) -intercept (put ). The -intercept is where the line crosses the -axis, so set in :
State the answers. (a) ; (b) ; (c) the -intercept is . The -intercept was given; the -intercept always comes from setting .
core3 marksFind the equation of the line through and , and give it in general form.Show worked solution →
Find the gradient first. Using and ,
Use point-gradient form with one of the points. Take in :
Rearrange to gradient-intercept form. Expand and tidy:
Convert to general form. Multiply through by to clear the fractions, then collect on one side:
Check with the other point. Substituting : , so lies on the line. The equation is .
core4 marksFind the equation of the perpendicular bisector of the interval joining and . Give your answer in general form.Show worked solution →
Understand what is wanted. The perpendicular bisector passes through the midpoint of and is perpendicular to , so it needs two ingredients: the midpoint, and the perpendicular gradient.
Find the midpoint of .
Find the gradient of , then the perpendicular gradient.
The perpendicular gradient is the negative reciprocal, so (and as a check ).
Use point-gradient form through the midpoint. With through :
Convert to general form. Multiply by and collect:
State the answer. The perpendicular bisector is . It bisects (through ) and meets it at a right angle (gradient against 's ).
exam4 marksA triangle has vertices , and . (a) Show that the angle at is a right angle. (b) Hence find the area of the triangle, giving any lengths in exact (surd) form.Show worked solution →
(a) Show the angle at is a right angle. The angle at is between and , so find both gradients and test their product.
Their product is , so and the angle at is .
(b) Find the two legs by the distance formula. With the right angle at , the legs are and :
Compute the area. For a right-angled triangle the area is half the product of the two legs:
Check with Pythagoras. The hypotenuse has , and , which matches, confirming the right angle. The area is square units.
exam4 marksA surveyor marks two pegs on a straight boundary at the points and , with coordinates in metres. (a) Find the gradient of as a fraction in lowest terms. (b) Find the angle of inclination of to the horizontal, to the nearest degree. (c) Find the distance in exact (surd) form and to the nearest m.Show worked solution →
Set up the two points. Take and , so and (both in metres).
(a) Gradient.
(b) Angle of inclination. The gradient equals , so
The gradient is positive, so the angle is acute, which confirms.
(c) Distance.
Simplify the surd: , so . As a decimal, m.
State the answers. (a) ; (b) about ; (c) m, which is m to the nearest tenth. The same run and rise drove every part.
Related dot points
- Define and use function notation, distinguish a function from the more general relation using the vertical line test, and classify relations as one-to-one, many-to-one, one-to-many or many-to-many using the horizontal line test
A Year 11 Maths Advanced answer on functions and notation: the function machine and notation, evaluating and substituting expressions into a function, the difference between a function and a relation, the vertical line test, and one-to-one, many-to-one, one-to-many and many-to-many classification via the horizontal line test, with worked examples and practice questions.
- Find the natural domain of a function (avoiding division by zero and square roots of negatives), determine the range from a sketch, work with restricted domains, and read the range from a graph using horizontal lines
A Year 11 Maths Advanced answer on domain and range: finding the natural domain by avoiding division by zero and square roots of negatives, reading the range from a sketch, restricted domains, and reading a graph backwards with horizontal lines, with worked parabola and semicircle examples and practice questions.
- Sketch a parabola by finding its intercepts by factoring, complete the square to write a quadratic in vertex form and read off the turning point and axis of symmetry, use the quadratic formula and the discriminant to find and classify the roots, and find the maximum or minimum value of a quadratic
A Year 11 Maths Advanced answer on the parabola: sketch by factoring for the intercepts, complete the square for the vertex form and turning point, use the quadratic formula and the discriminant to count and classify the roots, find the axis of symmetry, and read off the maximum or minimum value, with worked examples and practice questions.
- Sketch the graphs of power functions and contrast even and odd powers, sketch a cubic or higher polynomial that is factored into linear factors using a sign table, sketch circles centred at the origin and recognise shifted circles, and sketch the rectangular hyperbola with its asymptotes
A Year 11 Maths Advanced answer on power, polynomial and circle graphs: the shapes of even and odd powers of x, sketching a factored cubic with a sign table, circles centred at the origin, and the rectangular hyperbola and its asymptotes, with worked examples and practice questions.
- Use algebraic techniques to expand, factor and simplify expressions and algebraic fractions, and to solve linear and simultaneous equations
A focused answer to the Year 11 Maths Advanced groundwork: expanding brackets and the special expansions, the four factoring methods (including non-monic quadratics), simplifying and combining algebraic fractions, and solving linear, literal and simultaneous equations, with worked examples and original practice questions.
- Apply translations, reflections and dilations to the graph of a function and identify the resulting equation
A focused answer to the HSC Maths Advanced dot point on graph transformations. Vertical and horizontal translations, reflections in the axes, vertical and horizontal dilations, the order of combined transformations, and how each affects the equation, with worked examples.