StudyDeck

Linear Graphs

Exam code: 4037
Written by: Ashika|Reviewed by: Caroline Carroll|Updated 2 July 2026

Equations of a Straight Linevideo

Equations of a Straight Line

Equations of a straight line

How do I find the gradient of a straight line?

  • Find two points that the line passes through with coordinates (x1, y1) and (x2, y2)

  • The gradient between these two points is calculated by

m=y2-y1x2-x1{"language":"en","fontFamily":"Times New Roman","fontSize":"18"} 

  • The gradient of a straight line measures its slope

    • A line with gradient 1 will go up 1 unit for every unit it goes to the right

    • A line with gradient -2 will go down two units for every unit it goes to the right

Finding the gradient of a straight line graph

What are the equations of a straight line?

  •  y=mx+c{"language":"en","fontFamily":"Times New Roman","fontSize":"18"}

    • This is the gradient-intercept form

    • It clearly shows the gradient m and the y-intercept (0, c)

  •  y-y1=mx-x1{"language":"en","fontFamily":"Times New Roman","fontSize":"18"}

  • This is the point-gradient form

    • It clearly shows the gradient m and a point on the line (x1, y1)

  •  ax+by+d=0{"language":"en","fontFamily":"Times New Roman","fontSize":"18"}

    • This is the general form

    • You can quickly get the x-intercept (-da, 0){"language":"en","fontFamily":"Times New Roman","fontSize":"18"} and y-intercept (0, -db){"language":"en","fontFamily":"Times New Roman","fontSize":"18"}

Equations of a straight line graph

How do I find an equation of a straight line?

  • You will need the gradient

    • If you are given two points then first find the gradient

  • It is easiest to start with the point-gradient form

    • then rearrange into whatever form is required

      • multiplying both sides by any denominators will get rid of fractions

Finding the equation of a straight line graph using the point-gradient form

Midpoint of a Straight Line

Midpoint of a line segment

How do I find the midpoint of a line segment?

  • The midpoint of a line will be the same distance from both endpoints

  • You can think of a midpoint as being the average (mean) of two coordinates

  • The midpoint of x1, y1{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} and x2, y2{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} is

x1+x22 , y1+y22{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}

Midpoint of a line segment

 

  • M is often used as the midpoint between two points (x1, y1) (x2, y2)

  • It is the average of both the x and y coordinates

Length of a Straight Line

Length of a line segment

How do I calculate the length of a line segment?

  • The distance between two points with coordinates x1 , y1{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} and x2 , y2{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} can be found using the formula

d=x1-x22+y1-y22{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}

  • This formula is really just Pythagoras’ Theorem  a2=b2+c2{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}, applied to the difference in the x{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}-coordinates and the difference in the y{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}-coordinates;

Distance between two points on a straight line graph
  • You may be asked to find the length of a diagonal in 3D space

    • This can be answered using 3D Pythagoras