IB Mathematics: Analysis and Approaches HL · IB AA HL SL 2.1
SL 2.1 · Use equations and features of straight lines
Straight lines describe constant rates of change. They can model situations such as a fixed starting fee plus a constant charge per unit, or a…
International Baccalaureate (IB) IB AA HL: Mathematics: Analysis and Approaches HL
Functions
Representing, interpreting and comparing linear relationships
Straight lines describe constant rates of change. They can model situations such as a fixed starting fee plus a constant charge per unit, or a journey at steady speed. A line can be described by a graph, a table of values or an equation. In this lesson, we connect these representations and use the information in an equation to identify important features of its graph. We assume that coordinates are measured in consistent units and that any contextual linear model is appropriate over the stated range.
What you will learn
Calculate the gradient of a line from two points and interpret its sign and value.
Use gradient-intercept and general forms to describe straight lines.
Find a line equation from given information and determine whether two lines are parallel or perpendicular.
Find and interpret the intersection of two straight lines, checking results with graphing technology.
1. Prior knowledge: coordinates and gradient
A point on a graph is written as (x,y): x gives its horizontal coordinate and y its vertical coordinate. The gradient, often called the slope, measures how much y changes for a change in x. For two points (x1,y1) and (x2,y2), subtract the coordinates in matching order. The gradient is undefined if the two points have the same x-coordinate; they lie on a vertical line.
A positive gradient means the line rises as we move from left to right. A negative gradient means it falls. A horizontal line has gradient zero. Gradient is a rate, so in a context its units are the units of y divided by the units of x. For instance, if y is distance in kilometres and x is time in hours, gradient is in kilometres per hour.
m=x2−x1y2−y1
Use the same point order in both coordinate differences.
A vertical line has equation x=a for a constant a and cannot be written as y=mx+c.
A horizontal line has equation y=b and gradient 0.
2. Equations and features of a line
The gradient-intercept form is y=mx+c. Here m is the gradient and c is the vertical intercept: the value of y where the line crosses the vertical axis, where x=0. For example, in y=3x−2, the gradient is 3 and the vertical intercept is (0,−2). Substituting any x-value gives the corresponding point on the line.
If the gradient and one point are known, use point-gradient form: y−y1=m(x−x1). This says that the change in y from the given point equals the gradient times the change in x. It can be rearranged into gradient-intercept form when useful. In general form, a straight-line equation is written ax+by+d=0, where a, b and d are constants and a and b are not both zero. When b=0, rearranging gives y=−bax−bd, so the gradient and vertical intercept can be read from the rearranged equation.
A line is determined by its gradient and a point on it, unless it is vertical, in which case its equation is x=a. Two distinct lines with the same gradient are parallel. For non-vertical lines, two gradients that are negative reciprocals indicate perpendicular lines. These tests follow from the directions of the lines; do not confuse a negative gradient alone with perpendicularity.
The intersection of two lines is a point satisfying both equations. Algebraically, solve the equations together, then substitute the result into both original equations. Graphically, it is where the two plotted lines cross. The intersection may represent a break-even point, equal costs or another moment when two quantities match.
y=mx+c
In y=mx+c, m is gradient and c is the vertical intercept.
Parallel non-vertical lines have equal gradients.
Non-vertical perpendicular lines have gradients whose product is −1.
An intersection must satisfy both line equations.
3. Representations, technology and checking
A table makes a linear pattern visible: for equal increases in x, the changes in y are equal. A graph shows the direction and intercepts, while an equation gives an exact rule. Moving between these forms is useful: use a table to calculate points, plot them, and check that each point satisfies the equation. Two distinct points are enough to draw a straight line, but extra points can help reveal an arithmetic error.
Use graphing technology to plot two equations on the same axes and estimate their intersection, or to check whether a plotted line passes through a specified point. Set the viewing window so that the relevant points are visible and use equal scales on the axes where practical. A graph is a useful check, not a replacement for exact algebra: the screen may show an approximate intersection or conceal a feature if the window is poorly chosen.
In a contextual question, define what each variable represents before forming or interpreting an equation. State units and consider the model's limitation: a straight-line rule is suitable only where a constant rate is a reasonable assumption. An answer outside the meaningful range of the situation may not be useful even if it satisfies the equation.
Keep coordinate differences in a consistent order.
Use technology to check shape and approximate location, then verify exact values algebraically.
Interpret gradients, intercepts and intersections in the context and units given.
Worked example
1. Find a line from two points
Find the equation of the line through (−2,5) and (4,−1). Give its gradient and vertical intercept.
Calculate the gradient
Subtract corresponding coordinates in the same order. The change in y is −6 and the change in x is 6, so the line falls by one unit in y for each unit increase in x.
m=4−(−2)−1−5=−1
Use a point to form the equation
Substitute the gradient and one known point into point-gradient form. Choosing (−2,5) gives an equation that must also pass through the other point because the gradient was calculated from both.
y−5=−(x+2)
Read the intercept
Rearrange to gradient-intercept form. At x=0, the value of y is 3, so the vertical intercept is (0,3). Check the second point: substituting x=4 gives y=−1.
y=−x+3
Answer: The line is y=−x+3. Its gradient is −1 and its vertical intercept is (0,3).
Check: Both points satisfy the equation: at x=−2, y=5; at x=4, y=−1.
Worked example
2. Compare two lines
Line L1 has equation y=2x+1. Line L2 passes through (1,4) and (3,0). Determine whether the lines are parallel or perpendicular.
Identify the first gradient
The equation is already in gradient-intercept form, so the coefficient of x is the gradient of L1.
m1=2
Calculate the second gradient
Use the two points defining L2.
m2=3−10−4=−2
Compare the gradients
The gradients are not equal, so the lines are not parallel. Their product is −4, not −1, so they are not perpendicular either.
m1m2=2(−2)=−4
Answer: The lines are neither parallel nor perpendicular.
Check: The required gradient tests give unequal gradients and a product different from −1.
Worked example
3. Interpret an intersection
Two service plans have costs CA=18+4n and CB=6+6n dollars, where n is the number of months. Find when their costs are equal and the common cost. Assume the plans' monthly charges remain constant over the period considered.
Set the costs equal
At the intersection, both plans give the same cost for the same number of months. Equating the expressions finds that point.
18+4n=6+6n
Solve for the month
Subtract 4n from both sides and subtract 6 from both sides. Dividing by 2 gives the month count.
n=6
Find the common cost
Substitute n=6 into either cost rule. Both give the same value, as the equality requires.
CA=CB=42
Answer: The costs are equal after 6 months, when each plan costs CAD 42.
Check: At n=6, plan A costs 18+4(6)=42 and plan B costs 6+6(6)=42. A graph of both rules should cross at (6,42).
Common mistakes and how to avoid them
Subtracting the x-coordinates in one order and the y-coordinates in the opposite order.
Correction: Keep the order consistent in both differences; reversing both differences leaves the gradient unchanged.
Treating the constant term in any equation as the vertical intercept without rearranging.
Correction: First write the equation as y=mx+c, if possible. Then c is the vertical intercept.
Calling lines perpendicular whenever one gradient is negative.
Correction: For non-vertical lines, check that the product of the gradients is −1.
Reporting a graph's estimated intersection as an exact answer.
Correction: Solve the equations algebraically and substitute the result into both equations; use the graph as a visual check.
Lesson summary
Gradient is change in y divided by change in x.
The form y=mx+c displays gradient and vertical intercept directly.
Use a known point with a gradient to form a line equation; use x=a for a vertical line.
Compare gradients to test parallelism and perpendicularity, and solve simultaneous equations to find an intersection.
Check your understanding
Question 1
What is the gradient of the line through (2,−1) and (5,8)?
3
−3
31
−31
Show answer and explanation
3
The change in y is 9 and the change in x is 3, giving gradient 3.
Question 2
Which line is perpendicular to y=21x+4?
y=2x−1
y=−2x+1
y=−21x+1
x=2
Show answer and explanation
y=−2x+1
The given gradient is 21. The negative reciprocal is −2, so the line with gradient −2 is perpendicular.
Question 3
At what value of x do y=3x−2 and y=x+6 intersect?
2
3
4
8
Show answer and explanation
4
Set the expressions equal: 3x−2=x+6, so 2x=8 and x=4. Substitution gives y=10.
Key terms
Gradient
The change in the vertical coordinate divided by the change in the horizontal coordinate between two points on a line.
Vertical intercept
The point where a line crosses the vertical axis; it occurs where x=0.
Parallel lines
Lines in the same plane that do not meet; distinct non-vertical parallel lines have equal gradients.
Intersection
A point that lies on both lines, so its coordinates satisfy both equations.
Tutor support for SL 2.1 · Use equations and features of straight lines
Working on SL 2.1 · Use equations and features of straight lines in IB AA HL? Bring the question and your own attempt. In a live session, you can show each step of your attempt and compare it with a worked example. Ask about the first step that does not make sense, then try a similar question yourself.
برای مبحث SL 2.1 · استفاده از معادلهها و ویژگیهای خط راست در درس IB AA HL، سؤال و تلاش خود را همراه بیاورید. در جلسه میتوانید گامهای تلاش خود را نشان دهید و آن را با یک نمونهٔ حلشده مقایسه کنید. راهنمای معلم ریاضی را ببینید یا جلسهٔ معارفهٔ رایگان ۳۰ دقیقهای درخواست کنید. زمان جلسه پس از پذیرش معلم قطعی میشود.
About this lesson and its review
Published by DoAssignment. This reviewed lesson follows International Baccalaureate (IB) IB AA HL: Mathematics: Analysis and Approaches HL, study topic SL 2.1. It is a study resource, not an official curriculum publication.
Before publication, content is checked for structure, mathematical or chemical notation, calculations, course boundaries, and readability. Errors can still occur, so corrections are welcomed.