Academic Skills Advice Straight Lines A straight line graph is made up of lots of π₯ and π¦ pairs known as co-ordinates or points. A point consists of an π₯ value and its corresponding π¦ value and is written in a bracket. E.g. (3, 5) means that when π₯ = 3, π¦ = 5. For example, consider the straight line π = ππ − π. The equation (π¦ = 4π₯ − 3) tells us the relationship between π₯ and π¦. You can choose any value of π₯ so there are an infinite number of pairs: Let’s try some: When π = π, π¦ = 4(1) − 3, ∴ π = π, When π = π, π¦ = 4(2) − 3, ∴ π = π, When π = π, π¦ = 4(3) − 3, ∴ π = π, When π = π, π¦ = 4(4) − 3, ∴ π = ππ, pair = (1, 1) pair = (2, 5) pair = (3, 9) pair = (4, 13) The above pairs (or co-ordinates) can be plotted on a graph and joined up to make a straight line. Often we just want an idea of what the line will look like so that we can sketch it instead of plotting lots of pairs, and so we consider the general equation of a straight line. The General Equation: The general equation of a straight line is: π¦ = ππ₯ + π. We can tell 2 things about the straight line from the equation: π¦ = ππ₯ + π The gradient of the line the π¦-intercept (where it crosses the π¦-axis) Example: Look at the straight line equation: π = ππ + π. We know (just by looking) that this line will have a gradient of 3 and will cross the π¦-axis at 2, so will look like this: π¦ A gradient of 3 means that every time it goes along 1 it goes up 3, so it is quite steep. Crosses the π¦-axis at 2 π₯ © H Jackson 2011 / ACADEMIC SKILLS 1 More about Gradients A positive gradient is uphill: A negative gradient is downhill: A gradient of zero (0) is flat: The gradient is found by dividing how much the line goes up (π¦) by how much it goes along (π₯). We say “the change in π¦ over the change in π₯”. ο· ο· ο· ο· A gradient of 1 means go along 1 and up 1. A gradient of 2 means go along 1 and up 2 so it is steeper, a gradient of 8 means go along 1 and up 8 so it’s getting very steep. 1 1 A gradient of 2 means go along 1 and up 2 so it is shallow…… etc Examples: (let the gradient = m) m=3 m=1 1 m= 2 m = −1 m=0 1 m = −2 More about the axis-intercepts: The π¦-intercept can easily be seen from the equation but you need to do a little bit of rearranging to find the π₯-intercept. This just leaves the number on its own. Remember: the line crosses the π-axis when π = π the line crosses the π-axis when π = π Example: Look at the straight line equation: π = −ππ + π. We can also get this by substituting π₯ = 0 into the equation. π-intercept: π¦ = 8 (the number on it own) π-intercept: When π¦ = 0, π₯ =? (we need to do some rearranging here) Replace the π¦ with a 0 and rearrange to find π₯ 0 = −2π₯ + 8 2π₯ = 8 π₯=4 We know that the line crosses the π-axis at 8 and the π-axis at 4 (and the gradient is −2) © H Jackson 2011 / ACADEMIC SKILLS 2 Sketching a straight line: We can use all of the above information to sketch a straight line. When asked to sketch a straight line, there are 3 things that it is useful to know: ο· ο· ο· The gradient The π¦-intercept The π₯-intercept Example: ο· Sketch the line π = ππ − π We can see that the gradient is 2 and it crosses the π¦-axis at −4. We have 2 out of the 3 things straight away. It crosses the π-axis when π = 0, So replace π with 0 in the equation: 0 = 2π₯ − 4 2π₯ = 4 π₯=2 We now have all the information we need to sketch the line: Gradient = 2 π¦-intercept = −4 π₯-intercept = 2 π¦ π¦ = 2π₯ − 4 2 π₯ −4 Plot both intercepts on your axes then join them with a straight line. © H Jackson 2011 / ACADEMIC SKILLS 3 Finding the Equation of a Straight Line Sometimes you may be given 2 points on a line and asked to find the equation of the line. Remember that the general equation of a straight line is π = ππ + π and so the 2 pieces of information you need to know to be able to write the equation are the gradient and the πintercept. Gradient = πβππππ ππ π¦ πβππππ ππ π₯ = π¦2 −π¦1 π₯2 −π₯1 π-intercept: substitute one of the points in and solve. Examples: ο· Find the equation of the straight line passing through the points (2, 12) and (3, 17). If we call the 1st point 1 and the 2nd (ππ , ππ ) (ππ , ππ ) (2, 12) and (3, 17) point 2 then we have: First find the gradient: Gradient = πβππππ ππ π¦ πβππππ ππ π₯ = π¦2 −π¦1 π₯2 −π₯1 = 17−12 3−2 = 5 1 =5 We now know that the line has a gradient of 5 and so the equation looks like this: π = ππ + πͺ Next find πͺ: To complete the equation we need to work out πΆ. To do this substitute one of the points in (whichever you find easiest). In this example I’ll choose the 1st point (2, 12). π¦ = 5π₯ + πΆ Substitute point in (replace π₯ with 2 and π¦ with 12): 12 = 5(2) + πΆ 12 − 10 = πΆ πΆ=2 We now have the equation of the straight line: π¦ = 5π₯ + 2 © H Jackson 2011 / ACADEMIC SKILLS 4 ο· Find the equation of the straight line passing through the points (π, −π) and (π, −π). Gradient = πβππππ ππ π¦ πβππππ ππ π₯ = π¦2 −π¦1 π₯2 −π₯1 = −1−(−4) 2−1 = 3 1 =3 So far we know that the equation looks like this: π = ππ + πͺ To complete the equation we need to work out πΆ. We need to substitute one of the points in and I’ll choose the 1st point again (1, -4). Substitute point in: π¦ = 3π₯ + πΆ −4 = 3(1) + πΆ −4 − 3 = πΆ πΆ = −7 We now have the equation of the straight line: π¦ = 3π₯ − 7 N.b. if you are given the gradient and one point then the question is easier as you don’t need to do the 1st part (finding the gradient), just start from the substitution stage. Example: ο· Find the equation of the straight line with gradient −π and passing through the point (1,1) We are given the gradient so we know that the equation looks like this: π = −ππ + π To complete the equation we need to work out πΆ. To do this we substitute the point in: Substitute point in: π¦ = −2π₯ + π 1 = −2(1) + π 1+2=π π=3 We now have the equation of the straight line: π¦ = −2π₯ + 3 © H Jackson 2011 / ACADEMIC SKILLS 5