Linear Functions and Line Equations for the ESAT

Updated July 2026

This topic explores the properties of straight lines, focusing on identifying gradients and intercepts from linear equations and graphs. It is a fundamental component of ESAT Mathematics 1, covering the rules for parallel and perpendicular lines as well as the algebraic techniques required to construct equations from points and gradients.

Core concept

A linear function is defined by the equation y=mx+cy = mx + c, where mm represents the gradient (steepness) and cc represents the yy-intercept (where the line intersects the vertical axis).

Equation of a straight line

The standard form for the equation of a straight line is y=mx+cy = mx + c. In this form, mm is the gradient of the line and cc is the intercept with the yy-axis. To identify these values from any linear equation, you must first rearrange the equation to isolate yy.

Worked Example: Identifying Gradient and Intercept (1)

What is the gradient of the line y3x=6y - 3x = 6 and where does the line intersect the yy-axis?

  1. Rearrange the equation into the form y=mx+cy = mx + c. Adding 3x3x to both sides gives y=3x+6y = 3x + 6.
  2. Compare this with y=mx+cy = mx + c. This gives m=3m = 3 and c=6c = 6.
  3. Result: The gradient of the line is 3 and the line cuts the yy-axis where y=6y = 6.

Worked Example: Identifying Gradient and Intercept (2)

What is the gradient of the line 2y3x=62y - 3x = 6 and where does the line intersect the yy-axis?

  1. Rearrange to isolate yy. Adding 3x3x to both sides gives 2y=3x+62y = 3x + 6.
  2. Divide both sides by 2 to get yy on its own: y=32x+3y = \frac{3}{2}x + 3.
  3. Compare this with y=mx+cy = mx + c. This gives m=32m = \frac{3}{2} and c=3c = 3.
  4. Result: The gradient of the line is 32\frac{3}{2} and the line cuts the yy-axis where y=3y = 3.

Parallel lines

Parallel lines are lines that never meet: they have the same gradient. To determine if lines are parallel, you must compare their mm values after converting each equation to the y=mx+cy = mx + c form.

Worked Example: Identifying Parallel Lines

Which of these lines are parallel?

a:y+4x=9a: y + 4x = 9 b:y=4x+7b: y = 4x + 7 c:3y+4x=9c: 3y + 4x = 9 d:2y=78xd: 2y = 7 - 8x e:3y12x=7e: 3y - 12x = -7

First, find the gradients of all lines:

  • Line aa: Rearrange y+4x=9y + 4x = 9 as y=4x+9y = -4x + 9, so m=4m = -4.
  • Line bb: y=4x+7y = 4x + 7 is already in the correct form, so m=4m = 4.
  • Line cc: Rearrange 3y+4x=93y + 4x = 9 as y=43x+3y = -\frac{4}{3}x + 3, so m=43m = -\frac{4}{3}.
  • Line dd: Rearrange 2y=78x2y = 7 - 8x as y=4x+72y = -4x + \frac{7}{2}, so m=4m = -4.
  • Line ee: Rearrange 3y12x=73y - 12x = -7 as y=4x73y = 4x - \frac{7}{3}, so m=4m = 4.

Result: Lines aa and dd are parallel because they both have a gradient of 4-4. Lines bb and ee are parallel because they both have a gradient of 44.

Perpendicular lines

If two lines are perpendicular, they meet at a right angle (90 degrees). Algebraically, the product of their gradients is 1-1. If one line has a gradient m1m_1 and the other has m2m_2, then m1×m2=1m_1 \times m_2 = -1.

Worked Example: Identifying Perpendicular Lines

Which of these lines are perpendicular?

a:y+4x=9a: y + 4x = 9 b:y=4x+7b: y = 4x + 7 c:4y+3x=9c: 4y + 3x = 9 d:4y=7xd: 4y = 7 - x e:3y4x=7e: 3y - 4x = -7

First, find the gradients of all lines:

  • Line aa: y=4x+9y = -4x + 9, so m=4m = -4.
  • Line bb: y=4x+7y = 4x + 7, so m=4m = 4.
  • Line cc: y=34x+94y = -\frac{3}{4}x + \frac{9}{4}, so m=34m = -\frac{3}{4}.
  • Line dd: y=14x+74y = -\frac{1}{4}x + \frac{7}{4}, so m=14m = -\frac{1}{4}.
  • Line ee: y=43x73y = \frac{4}{3}x - \frac{7}{3}, so m=43m = \frac{4}{3}.

Check for pairs where the product is 1-1:

  • Lines bb and dd: 4×(14)=14 \times (-\frac{1}{4}) = -1. These are perpendicular.
  • Lines cc and ee: (34)×43=1(-\frac{3}{4}) \times \frac{4}{3} = -1. These are perpendicular.

Equation of a line given the gradient and a point on the line

The equation of a line with gradient mm passing through the point (p,q)(p, q) can be expressed as y=mx+cy = mx + c, where c=qmpc = q - mp. This is found by substituting the known gradient and coordinates into the general equation and solving for cc.

Worked Example: Line from Gradient and Point

What is the equation of the straight line with gradient 5-5 through the point (1,2)(1, -2)?

  1. Start with the general form y=mx+cy = mx + c. Since m=5m = -5, we have y=5x+cy = -5x + c.
  2. Substitute the point (1,2)(1, -2) into the equation: 2=5×1+c-2 = -5 \times 1 + c.
  3. Solve for cc: 2=5+c-2 = -5 + c, so c=3c = 3.
  4. Result: The equation is y=5x+3y = -5x + 3, which can also be written as y+5x=3y + 5x = 3.

Equation of a line joining two given points

To find the equation of a line passing through two points, (x,y)(x, y) and (x1,y1)(x_1, y_1), first calculate the gradient using the formula:

m=difference in ydifference in x=yy1xx1m = \frac{difference\ in\ y}{difference\ in\ x} = \frac{y - y_1}{x - x_1}

Once the gradient is found, use either of the two given points to find the intercept cc.

Worked Example: Line from Two Points

What is the equation of the straight line joining the points (3,5)(3, 5) and (1,3)(-1, -3)?

  1. Calculate the gradient: m=5(3)3(1)=84=2m = \frac{5 - (-3)}{3 - (-1)} = \frac{8}{4} = 2.
  2. Set up the equation: y=2x+cy = 2x + c.
  3. Use the point (3,5)(3, 5) to find cc: 5=2×3+c5 = 2 \times 3 + c.
  4. Solve for cc: 5=6+c5 = 6 + c, so c=1c = -1.
  5. Result: The equation is y=2x1y = 2x - 1.

Key takeaways

  • The gradient mm and yy-intercept cc are found by rearranging an equation into the form y=mx+cy = mx + c.
  • Parallel lines have identical gradients.
  • Perpendicular lines have gradients that multiply to 1-1, meaning one is the negative reciprocal of the other.
  • A line's equation can be determined using one point and a gradient, or by calculating the gradient from two given points.
Tips

Always ensure the coefficient of yy is 1 before identifying the gradient. In the exam, equations are often given as ax+by=dax + by = d; dividing by bb is a necessary first step to avoid misidentifying the gradient.

Cautions

Be extremely careful with negative signs when calculating the gradient between two points, especially when coordinates themselves are negative (e.g., y(y1)y - (-y_1) becomes y+y1y + y_1).

Insight

The relationship between perpendicular gradients, m1×m2=1m_1 \times m_2 = -1, is a specific case of coordinate geometry. It ensures that if you rotate a line by 90 degrees, its steepness and direction invert and negate.

Frequently asked questions

How do you find the x-intercept of a linear function?

To find the xx-intercept, set y=0y = 0 in the equation and solve for xx. This identifies where the line crosses the horizontal axis.

What is the gradient of a horizontal line?

A horizontal line has a gradient of m=0m = 0. Its equation is always in the form y=cy = c.

What is the gradient of a vertical line?

A vertical line has an undefined gradient because the change in xx is zero. Its equation is always in the form x=kx = k.

Can I use the second point to find the constant c?

Yes. When finding the equation of a line from two points, substituting either of the two points into y=mx+cy = mx + c will yield the same value for cc.

Ready to test your knowledge?

You've reached the end of this section. Start a practice session to solidify your understanding and master this topic.