DoAssignment.ca

SL 2.1 · Use equations and features of straight lines

Learn to use equations and features of straight lines through clear examples and targeted practice.

International Baccalaureate (IB) IB AA SL: Mathematics: Analysis and Approaches SL

Functions

IB Mathematics: Analysis and Approaches SL — Study topic SL 2.1

Straight lines model relationships with a constant rate of change. For example, if a taxi fare has a fixed starting charge and then increases by the same amount for each kilometre, the relationship between distance and cost can be represented by a straight line. This lesson develops the algebra and graph features needed to describe and interpret such lines. It assumes familiarity with coordinates, substitution, and solving simple linear equations.

What you will learn

1. Prior knowledge: coordinates and gradient

A point on a graph is written as (x,y)(x,y): xx is the horizontal coordinate and yy is the vertical coordinate. The gradient, often called the slope, measures the change in yy for each unit change in xx. For two points (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2), calculate change in yy divided by change in xx. Keep the order consistent in both differences.
A positive gradient means the line rises as you move from left to right; a negative gradient means it falls. A horizontal line has gradient 00. A vertical line has no defined gradient because its xx-coordinate does not change, so the gradient formula would require division by zero.
An intercept is where a graph crosses an axis. At the vertical axis, x=0x=0; at the horizontal axis, y=0y=0. These substitutions are useful when finding intercepts from an equation.
m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}

2. Equations and graphical features

The form y=mx+cy=mx+c is useful when a line is not vertical. Here mm is the gradient and cc is the yy-intercept. Setting x=0x=0 gives the intercept point (0,c)(0,c). To find the xx-intercept, set y=0y=0 and solve for xx, provided the line is not horizontal.
A second useful form is y−y1=m(x−x1)y-y_1=m(x-x_1). It describes the line with gradient mm through the known point (x1,y1)(x_1,y_1). Expanding the brackets can convert it to y=mx+cy=mx+c. Both equations describe the same set of points when they are equivalent.
A line may also be given in the form Ax+By=CAx+By=C, where AA, BB, and CC are constants. If B≠0B\ne0, rearrange to make yy the subject and read the gradient and vertical intercept. If B=0B=0, the equation gives a vertical line. A graph shows the same information visually: its steepness and direction indicate gradient, and its crossings of the axes show intercepts.
For two non-vertical lines, equal gradients mean they are parallel or are the same line. If their gradients differ, they cross once. Two non-vertical lines are perpendicular when the product of their gradients is −1-1. Vertical and horizontal lines are also perpendicular. These relationships can help check a proposed equation.
y−y1=m(x−x1)y-y_1=m(x-x_1)

3. Intersections, context, and technology

The intersection of two lines is a point that satisfies both equations. Find it by solving the equations simultaneously: make the expressions for yy equal, solve for xx, then substitute to find yy. On a graph, it is the crossing point. The algebra gives a more precise result than reading coordinates from a plotted image.
In a contextual model, identify what each variable represents and include units. For instance, if xx is time in minutes and yy is distance in kilometres, the gradient has units of kilometres per minute. A vertical intercept may represent a starting amount, but its meaning depends on the situation. The model is only appropriate over the range where its assumptions make sense.
A graphing calculator can check a line equation or intersection. Enter both equations, choose a window that includes the relevant values, and use the intersection feature if available. Check the result by substitution in both equations. A poorly chosen viewing window can make a correct line look flat or hide an intersection, so the display is not a substitute for reasoning.
y1=y2y_1=y_2

Worked example

Find a line from two points

Find the equation of the line through A(2,5)A(2,5) and B(6,13)B(6,13), and state its intercepts.
  1. Calculate the gradient
    Use the change in the yy-coordinates divided by the change in the xx-coordinates. The order of subtraction is the same in numerator and denominator.
    m=13−56−2=2m=\frac{13-5}{6-2}=2
  2. Use a point and the gradient
    Substitute the gradient and point AA into the point-gradient form. Expand and rearrange to obtain the slope-intercept form.
    y−5=2(x−2)⇒y=2x+1y-5=2(x-2)\quad\Rightarrow\quad y=2x+1
  3. Find the intercepts
    The vertical intercept occurs when x=0x=0. The horizontal intercept occurs when y=0y=0; solve the resulting equation.
    (0,1)(−12,0)(0,1)\qquad\left(-\frac{1}{2},0\right)
Answer: The equation is y=2x+1y=2x+1. Its vertical intercept is (0,1)(0,1) and its horizontal intercept is (−12,0)\left(-\frac{1}{2},0\right).
Check: Substitution confirms that both given points lie on the line: when x=2x=2, y=5y=5, and when x=6x=6, y=13y=13.

Worked example

Use a contextual rate and starting value

A container holds 1818 litres of water and is filled at a constant rate of 2.52.5 litres per minute. Let tt be time in minutes and VV be volume in litres. Write a model and find when the volume reaches 4343 litres.
  1. Identify gradient and intercept
    The constant filling rate is the gradient, measured in litres per minute. The starting volume is the vertical intercept at time zero.
    V=2.5t+18V=2.5t+18
  2. Solve for the required time
    Set the volume equal to 4343 litres and solve the linear equation. The resulting time is non-negative, so it is consistent with the situation.
    43=2.5t+18⇒t=1043=2.5t+18\quad\Rightarrow\quad t=10
Answer: The model is V=2.5t+18V=2.5t+18, and the volume reaches 4343 litres after 1010 minutes.
Check: Substituting t=10t=10 gives V=2.5(10)+18=43V=2.5(10)+18=43 litres. The model assumes the filling rate remains constant.

Worked example

Find and interpret an intersection

Find the intersection of y=3x−2y=3x-2 and y=−x+10y=-x+10. Then state whether the lines are perpendicular.
  1. Set the expressions equal
    At the intersection, both equations give the same yy-value for the same xx-value. Equating them gives one equation in xx.
    3x−2=−x+10⇒x=33x-2=-x+10\quad\Rightarrow\quad x=3
  2. Find the matching vertical coordinate
    Substitute x=3x=3 into either line equation. Both equations must give the same result.
    y=3(3)−2=7y=3(3)-2=7
  3. Check perpendicularity
    The gradients are 33 and −1-1. Their product is not −1-1, so the lines are not perpendicular.
    3(−1)=−33(-1)=-3
Answer: The lines intersect at (3,7)(3,7) and are not perpendicular.
Check: At x=3x=3, the second equation gives y=−3+10=7y=-3+10=7, confirming the intersection.

Common mistakes and how to avoid them

Reversing the subtraction order in only one part of the gradient calculation.
Correction: Use the same point order in both differences, such as y2−y1y_2-y_1 over x2−x1x_2-x_1.
Treating the vertical intercept as the horizontal intercept.
Correction: For the vertical intercept set x=0x=0; for the horizontal intercept set y=0y=0.
Assuming every straight line can be written as y=mx+cy=mx+c.
Correction: A vertical line has equation x=ax=a and has no defined gradient.
Reporting a calculator’s intersection without checking it.
Correction: Substitute the reported coordinates into both equations; both must be satisfied.

Lesson summary

Check your understanding

Question 1

What is the gradient of the line through (1,4)(1,4) and (5,12)(5,12)?
  1. 22
  2. −2-2
  3. 12\frac{1}{2}
  4. 44
Show answer and explanation
22
The gradient is (12−4)/(5−1)=8/4=2(12-4)/(5-1)=8/4=2.

Question 2

What is the vertical intercept of y=−3x+7y=-3x+7?
  1. (0,−3)(0,-3)
  2. (7,0)(7,0)
  3. (0,7)(0,7)
  4. (3,7)(3,7)
Show answer and explanation
(0,7)(0,7)
At the vertical axis, x=0x=0, so y=7y=7 and the intercept is (0,7)(0,7).

Question 3

Which line is perpendicular to y=12x+4y=\frac{1}{2}x+4?
  1. y=2x−1y=2x-1
  2. y=−2x+1y=-2x+1
  3. y=−12x+1y=-\frac{1}{2}x+1
  4. y=12x−1y=\frac{1}{2}x-1
Show answer and explanation
y=−2x+1y=-2x+1
The first line has gradient 12\frac{1}{2}. A perpendicular non-vertical line has gradient −2-2, since their product is −1-1.

Key terms

Gradient
The ratio of the change in vertical coordinate to the change in horizontal coordinate along a line.
Intercept
A point where a graph crosses one of the coordinate axes.
Intersection
A point that lies on both of two graphs.
Point-gradient form
An equation form that specifies a line using its gradient and one point on the line.

Continue through IB AA SL

View the complete IB AA SL International Baccalaureate (IB) IB AA SL: Mathematics: Analysis and Approaches SL curriculum and lessons

About this lesson and its review

Published by DoAssignment. This AI-assisted lesson follows International Baccalaureate (IB) IB AA SL: Mathematics: Analysis and Approaches SL, study topic SL 2.1. It is a study resource, not an official curriculum publication.

Before publication, the draft is checked for structure, mathematical or chemical notation, calculations, course boundaries, and readability, and then requires administrator approval. Errors can still occur, so corrections are welcomed.

Official curriculum reference

Report a correction or ask a question