aimnova.
DashboardMy LearningPaper MasteryStudy Plan

Aimnova site navigation

Stay in the loop

Get the latest study resources and updates

New features, study tips and exam insights — straight to your inbox.

IB Diploma

  • IB Past Papers
  • IB Study Notes
  • IB Question Bank
  • IB Mock Exams
  • IB Revision

IB Subjects

  • IB Math AA
  • IB Math AI
  • IB Economics
  • IB Business Management
  • IB Physics
  • IB Biology
  • View all IB subjects→

IB Past Papers

  • IB Math AA HL Past Papers
  • IB Math AA SL Past Papers
  • IB Math AI HL Past Papers
  • IB Math AI SL Past Papers
  • IB Economics HL Past Papers
  • IB Economics SL Past Papers
  • IB ESS Past Papers
  • View all past papers→

Study Resources

  • Study Notes
  • Question Bank
  • Mock Exams
  • Flashcards
  • Revision Guide
  • Exam Skills
  • Command Terms
  • Grade Calculator
  • Exam Timetable 2026

Aimnova

  • Features
  • Pricing
  • For Schools
  • For Parents
  • About Us
  • Blog
  • Contact
aimnova.

AI-powered study platform for smarter revision, past-paper analysis and examiner-style feedback.

TermsPrivacyCookies·© 2026 Aimnova. All rights reserved.8afc4e3

Aimnova is not affiliated with or endorsed by the International Baccalaureate Organization (IB).

NotesMath AI HLTopic 2.1Writing the equation of a straight line
Back to Math AI HL Topics
2.1.25 min read

Writing the equation of a straight line (Math AI HL)

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

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.

Free preview

This is the free notes preview

You're reading the free notes. Aimnova Pro unlocks the full study experience — and you can try it with your first topic free to keep:

  • FlashcardsLock in vocabulary and key terms with spaced repetition.
  • Practice questionsAnswer exam-style questions and get instant AI marking.
  • Mock exams & past-paper vaultSit full mocks and see exactly how examiners award marks.
  • Personalised study planA daily plan built around your exam date and weak areas.
Start Studying Free Full access to Aimnova Pro · cancel anytime
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 FreeYour first topic is free to keep • No credit 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.

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 HL 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 HL topics

Improve your exam technique

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

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

18 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 HL Topics