aimnova.
DashboardMy LearningPaper MasteryStudy Plan

Stay in the loop

Study tips, product updates, and early access to new features.

aimnova.

AI-powered IB study platform with personalised plans, instant feedback, and examiner-style marking.

IB Subjects

  • IB Diploma
  • All IB Subjects
  • IB ESS
  • IB Business Management
  • Grade Calculator
  • Exam Timetable 2026
  • ESS Predictions
  • BM Predictions
  • IB Economics Predictions 2026

Study Resources

  • Free Study Notes
  • Revision Guide
  • Flashcards
  • ESS Question Bank
  • BM Question Bank
  • Mock Exams
  • Past Paper Feedback
  • Exam Skills
  • Command Terms

Company

  • Features
  • Pricing
  • About Us
  • Blog
  • Contact
  • Terms
  • Privacy
  • Cookies

© 2026 Aimnova. All rights reserved.

Made with 💜 for IB students worldwide

v0.1.512
NotesMath AI SLTopic 2.1Writing the equation of a straight line
Back to Math AI SL Topics
2.1.22 min read

Writing the equation of a straight line

IB Mathematics: Applications and Interpretation • Unit 2

IB exam ready

Study like the top scorers do

Access a smart study planner, AI tutor, and exam vault — everything you need to hit your target grade.

Start Free Trial

Contents

  • The slope-intercept form y = mx + c
  • Finding the equation from a gradient and a point
  • Finding the equation from two points
  • The general form ax + by + d = 0
The big idea: If you know m and c, the line is immediate: y = mx + c. Put m on x. Put c at the end with its sign.
gradient — reads directly from the coefficient of x
y-intercept — the constant term; can be positive, negative, or zero

Writing the equation from m and c

A line has gradient −3 and y-intercept 8. Write its equation.

Step by step

  1. Substitute m = −3 and c = 8 directly.

Final answer

y = −3x + 8

mcEquation
25y = 2x + 5
−31y = −3x + 1
0.5−4y = 0.5x − 4
07y = 7 (horizontal line)
IB expects this form by default: Unless the question asks for a specific form, always give your final answer as y = mx + c. This is what IB expects and what the markscheme checks first.
The big idea: You have the gradient m and one point on the line. Plug those coordinates into y = mx + c and solve for c — then write the full equation.

Worked example — gradient and one point

Find the equation of the line with gradient 3 that passes through (2, 7).

Step by step

  1. Start with y = mx + c using m = 3.
  2. Substitute the point (2, 7): let x = 2 and y = 7.
  3. Solve for c.
  4. Write the full equation.

Final answer

y = 3x + 1

The c ≠ y-value trap: Students often write c = 7 because that is the y-coordinate of the given point. But c is the y-intercept (at x = 0), not the y-value at the given point. Always solve for c properly.

Worked example 2 — negative gradient

Find the equation of the line with gradient −2 that passes through (3, 4).

Step by step

  1. Write y = −2x + c.
  2. Substitute (3, 4).
  3. Solve for c.
  4. Full equation.

Final answer

y = −2x + 10

IB marks this in two steps: Step mark for correct substitution into y = mx + c (or equivalent method). Answer mark for the correct full equation. Show both steps clearly.

Learn what examiners really want

See exactly what to write to score full marks. Our AI shows you model answers and the key phrases examiners look for.

Try AI Feedback Free7-day free trial • No card required
The big idea: Two points are enough to uniquely define a straight line. Find the gradient first (using the gradient formula), then find c using either point.

Two-step method

  • Step 1 — Use m = (y₂−y₁)/(x₂−x₁) to find the gradient.
  • Step 2 — Substitute m and one point into y = mx + c, then solve for c.

Worked example — two points

Find the equation of the line through (1, 2) and (4, 11).

Step by step

  1. Find the gradient.
  2. Substitute m = 3 and point (1, 2).
  3. Write the equation.
  4. Verify with the second point (4, 11).

Final answer

y = 3x − 1

Always verify: Substitute the second point into your final equation to check. If it does not give the correct y-value, you made an error — find it before moving on.
Shortcut when one point is on the y-axis: If one of the two points sits on the y-axis, its x-value is 0. Write it as (0, k) — here k is just its y-value. Because x = 0, that y-value is the y-intercept directly: c = k. No substitution needed.__LINEBREAK__Example: given (0, 3) and (2, 9), c = 3 straight away. Find m = (9 − 3) / (2 − 0) = 3, then write y = 3x + 3.
The big idea: IB sometimes gives you a line in general form: ax + by + d = 0. This is just y = mx + c rearranged. To find m and c, rearrange for y.
Rearranging for y shows that the gradient is −a/b and the y-intercept is −d/b.

Converting general form to slope-intercept

Find the gradient and y-intercept of the line 2x + 3y − 6 = 0.

Step by step

  1. Move 2x and −6 to the right side.
  2. Divide every term by 3.

Final answer

Gradient m = −2/3 and y-intercept c = 2.

Converting slope-intercept to general form

Write y = (3/2)x − 4 in the form ax + by + d = 0 with integer coefficients.

Step by step

  1. Multiply every term by 2 to clear the fraction.
  2. Rearrange so everything is on the left.

Final answer

3x − 2y − 8 = 0

Read the question carefully: If IB asks for 'the form ax + by = c', rearrange your slope-intercept equation to match. If IB says 'find the equation', use y = mx + c unless another form is specified.

Try an IB Exam Question — Free AI Feedback

Test yourself on Writing the equation of a straight line. Write your answer and get instant AI feedback — just like a real IB examiner.

A line has gradient −2 and passes through the point (0, 5). Write the equation of the line. [2 marks]

Related Math AI SL Topics

Continue learning with these related topics from the same unit:

2.1.1Gradient and y-intercept
2.1.3Parallel and perpendicular lines
2.1.4Linear models in context
2.2.1What is a function?
View all Math AI SL topics

Improve your exam technique

Command terms, paper structure, and mark-scheme tips for Math AI SL

Previous
2.1.1Gradient and y-intercept
Next
Parallel and perpendicular lines2.1.3

16 practice questions on Writing the equation of a straight line

Students who practiced this topic on Aimnova scored 82% on average. Try free practice questions and get instant AI feedback.

Try 3 Free QuestionsView All Math AI SL Topics