Skip to main content
ScotlandMathsSyllabus dot point

How do you describe a straight line algebraically, and how do gradient and angle let you decide whether lines are parallel, perpendicular or concurrent?

The gradient of a line including the connection to the angle it makes with the x-axis, the equation of a line through a point with a given gradient, parallel and perpendicular lines, and the medians, altitudes and perpendicular bisectors of a triangle.

A focused answer to the SQA Higher Mathematics straight line content, covering gradient and its link to the angle with the x-axis, the equation of a line through a point, parallel and perpendicular lines, and finding medians, altitudes and perpendicular bisectors in a triangle.

Generated by Claude Opus 4.89 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. Gradient and angle
  3. The equation of a line
  4. Lines inside a triangle
  5. Examples in context
  6. Try this

What this dot point is asking

The SQA wants you to find a gradient and connect it to the angle a line makes with the positive direction of the x-axis, write the equation of a line through a point with a given gradient, recognise parallel and perpendicular lines, and use these tools to find the medians, altitudes and perpendicular bisectors of a triangle.

Gradient and angle

The gradient between two points is m=y2y1x2x1m = \dfrac{y_2 - y_1}{x_2 - x_1}. It is linked to the angle θ\theta the line makes with the positive direction of the x-axis by m=tanθm = \tan\theta. A positive gradient gives an acute angle; a negative gradient gives an obtuse angle. To go from a gradient back to an angle, use θ=tan1m\theta = \tan^{-1} m, but add 180180^\circ when the gradient is negative so the angle is measured correctly between 00^\circ and 180180^\circ.

The equation of a line

The point-gradient form yb=m(xa)y - b = m(x - a) is the workhorse: every line problem in the Higher reduces to finding a gradient and a point, then substituting. You can leave the answer in this form or rearrange to y=mx+cy = mx + c or ax+by+c=0ax + by + c = 0 as asked.

Lines inside a triangle

The strategy is identical for all three: identify the point the line passes through and the gradient it needs, then use point-gradient form. A median needs the midpoint of the opposite side (use the midpoint formula) and the gradient from the vertex to that midpoint. An altitude and a perpendicular bisector both need the perpendicular gradient (negative reciprocal of the side's gradient); they differ only in the point they pass through.

Examples in context

Coordinate geometry locates a point equidistant from several others, useful in planning. If two transmitter masts stand at A(0,0)A(0, 0) and B(8,4)B(8, 4), any receiver equally distant from both lies on the perpendicular bisector of ABAB. Its midpoint is (4,2)(4, 2) and the gradient of ABAB is 12\dfrac{1}{2}, so the bisector has gradient 2-2 and equation y2=2(x4)y - 2 = -2(x - 4). Every point on this line is a valid equidistant siting position.

Try this

Q1. Find the gradient of the line making an angle of 6060^\circ with the positive x-axis. [2 marks]

  • Cue. m=tan60=3m = \tan 60^\circ = \sqrt{3}.

Q2. Find the equation of the line through (2,1)(2, -1) perpendicular to a line of gradient 44. [3 marks]

  • Cue. Perpendicular gradient 14-\frac{1}{4}, giving y+1=14(x2)y + 1 = -\frac{1}{4}(x - 2).

Q3. Find the equation of the median from A(0,0)A(0, 0) to the midpoint of BCBC, where B(2,6)B(2, 6) and C(8,2)C(8, 2). [3 marks]

  • Cue. Midpoint of BCBC is (5,4)(5, 4); gradient 45\dfrac{4}{5}; equation y=45xy = \dfrac{4}{5}x.

Exam-style practice questions

Practice questions written in the style of SQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

SQA Higher 20206 marksA triangle has vertices P(2,3)P(-2, 3), Q(6,1)Q(6, -1) and R(4,5)R(4, 5). Find the equation of the median from PP to side QRQR, and the equation of the altitude from RR to side PQPQ.
Show worked answer →

Median from PP: first find the midpoint MM of QRQR, M=(6+42,1+52)=(5,2)M = \left(\dfrac{6 + 4}{2}, \dfrac{-1 + 5}{2}\right) = (5, 2) (1 mark). Gradient PM=235(2)=17PM = \dfrac{2 - 3}{5 - (-2)} = -\dfrac{1}{7} (1 mark). Equation through P(2,3)P(-2, 3): y3=17(x+2)y - 3 = -\dfrac{1}{7}(x + 2), i.e. x+7y=19x + 7y = 19 (1 mark).

Altitude from RR: gradient PQ=136(2)=48=12PQ = \dfrac{-1 - 3}{6 - (-2)} = \dfrac{-4}{8} = -\dfrac{1}{2}, so the perpendicular gradient is 22 (1 mark). Equation through R(4,5)R(4, 5): y5=2(x4)y - 5 = 2(x - 4) (1 mark), which simplifies to y=2x3y = 2x - 3 (1 mark). Markers reward the midpoint, both gradients, the negative reciprocal for the altitude, and two correct line equations.

SQA Higher 20234 marksA line makes an angle of 135135^\circ with the positive direction of the x-axis and passes through the point (2,5)(2, 5). Determine the equation of the line, and state the gradient of any line perpendicular to it.
Show worked answer →

Gradient from the angle: m=tan135=1m = \tan 135^\circ = -1 (1 mark).

Equation through (2,5)(2, 5): y5=1(x2)y - 5 = -1(x - 2) (1 mark), so y=x+7y = -x + 7, i.e. x+y=7x + y = 7 (1 mark).

A perpendicular line has gradient the negative reciprocal of 1-1, which is 11 (1 mark). Markers reward m=tan135m = \tan 135^\circ, the line equation through the point, and the perpendicular gradient.

Related dot points

Sources & how we know this