Equation of a Line Through Two Points
شرح معادلة المستقيم المار بنقطتين بالعربي: الدرس بالإنجليزية كما في الامتحان، ومع كل خطوة شرحها بالعربي.
Find the equation of the straight line through two given points: gradient first, then c.
- 6 steps
- 5 min
- 6 syllabuses
Try a real exam question on this
WMA11/01 · Oct 2022 · Q3 · 5 marks · Solve it step by step, the way the examiner marks it.
Loading the animated solution…
See the solution as textText version of the solution
Share price modelled by V = pt + q, with values £1.05 at t = 3 and £1.65 at t = 5. Find p and q, then find T when V = £2.50 to one decimal place.
(a) 3 marks
Use the two given share prices at t = 3 and t = 5 to find the constants p and q.
- Understand the question. The share price model is P equals p t plus q. P is 1.05 when t is 3, and 1.65 when t is 5. We must find p and q.
- Write two equations. Put each pair of values into the model.
- 1.05 = 3p + q and 1.65 = 5p + q
- Use elimination. Take the first equation from the second, and q cancels.
- Why does this work? Both equations are true at the same time. If you add or take away their left sides and their right sides, the result is still true.
- If you first make one letter have the same number in front in both equations, adding or taking away makes that letter cancel. That leaves one equation with one letter, which you can solve.
- Subtract: 2p = 0.6 ⇒ p = 0.3
- Find q. Put p back into the first equation.
- q = 1.05 − 0.9 = 0.15
Answer p = 0.3, q = 0.15
(b) 2 marks
Using your model, find the value of T when the share price is £2.50, to one decimal place.
- Understand the question. The share price was 2.50 pounds after T years. We must find T to one decimal place.
- Put P as 2.50 into the model.
- 2.50 = 0.3T + 0.15
- Take 0.15 from both sides.
- 0.3T = 2.35
- Divide by 0.3 and round.
- T = 7.83… = 7.8 (1 d.p.)
Answer T = 7.8
The lesson, step by step
Step 1 of 6
Two Points Fix One Line
Only one straight line goes through two points. You find its equation in two moves.
Steps
- 1
Gradient: up ÷ across between the two points gives .
- 2
c: put one point's x and y into and solve.
Written as a formula, the gradient is:
Formula
is one point and is the other. The top is the change in y (up), the bottom is the change in x (across). Take both in the same order.
Key idea
Then use the other point as a check. It must fit too.
اشرحها بالعربي
يمر بنقطتين خط مستقيم واحد فقط، وتجد معادلته بخطوتين. الأولى: الميل، وهو التغير الرأسي مقسومًا على التغير الأفقي بين النقطتين. اطرح الإحداثيين الصاديين في البسط، والإحداثيين السينيين في المقام، وبالترتيب نفسه في الاثنين. الثانية: عوّض إحداثيي إحدى النقطتين في المعادلة وحُلّ لتجد الجزء المقطوع من المحور الصادي. ثم استعمل النقطة الأخرى للتحقق، فيجب أن تحقق المعادلة أيضًا.
Step 2 of 6
Gradient, Then c
The main question: find the equation of the line through and .
Worked example
- 1
— Gradient formula: take the y's away on top and the x's away underneath, in the same order.
- 2
— Up 9, across 3, so the gradient is 3.
- 3
— Put m = 3 into y = mx + c. Only c is still unknown.
- 4
— Substitute the point (2, 5): x = 2 goes next to the 3, and y = 5 goes on the left.
- 5
— Work out 3 × 2 = 6.
- 6
— Take 6 from both sides: 5 − 6 = −1.
- 7
— Put c back into y = 3x + c. This is the equation.
Common mistake
Swapping x and y when you substitute, as in . The x goes next to the m.
Key idea
Check with the other point: . It fits.
Key idea
Show the gradient sum and the substitution line. Each one earns a mark for working, even if a slip spoils your final answer.
اشرحها بالعربي
هذا هو السؤال الأساسي: معادلة الخط المار بنقطتين. أولًا الميل: اطرح الإحداثيين الصاديين في البسط والسينيين في المقام، بالترتيب نفسه، ثم بسّط. ضع الميل في المعادلة فيبقى الجزء المقطوع وحده مجهولًا. ثم عوّض إحداثيي إحدى النقطتين: الإحداثي السيني بجانب الميل، والصادي في الطرف الأيسر، وحُلّ المعادلة لتجد الجزء المقطوع. أعِده إلى المعادلة فتحصل على الجواب، وتحقق بالنقطة الأخرى. والخطأ الشائع تبديل الإحداثيين عند التعويض. واكتب حساب الميل وسطر التعويض، فكل منهما يأخذ درجة حتى لو أخطأت في الناتج النهائي.
Step 3 of 6
Negative Coordinates and Fractions
Take extra care with minus signs. The gradient can come out as a fraction: keep it as a fraction.
Worked example
- 1
— The two points. The first one has a negative x, so watch the signs.
- 2
— Gradient formula. Put −2 in brackets so its minus sign is not lost.
- 3
— Minus a negative is plus: 6 − (−2) = 8. The top is −4 because the line goes down.
- 4
— Divide top and bottom by 4. Keep it as a fraction, it is exact.
- 5
— Substitute (6, 0): the point with a 0 gives easier sums.
- 6
— Work out −½ × 6 = −3.
- 7
— Add 3 to both sides.
- 8
— Put m and c into y = mx + c. Check with (−2, 4): −½ × (−2) + 3 = 4. It fits.
Common mistake
Working out the across as . It is .
اشرحها بالعربي
انتبه جيدًا للإشارات السالبة. عند التعويض في قانون الميل ضع الإحداثي السالب بين قوسين حتى لا تضيع إشارته، وتذكر أن طرح السالب جمع. إذا كان البسط سالبًا فهذا لأن الخط ينزل. وإذا خرج الميل كسرًا فبسّطه واتركه كسرًا لأنه دقيق. ثم عوّض بالنقطة التي فيها صفر لأن حسابها أسهل، وحُلّ لتجد الجزء المقطوع، واكتب المعادلة وتحقق بالنقطة الأخرى. والخطأ الشائع حساب التغير الأفقي بطرح العددين دون الانتباه إلى إشارة السالب، فيخرج أصغر من الصحيح.
Step 4 of 6
Another Way: y − y₁ = m(x − x₁)
Some textbooks and mark schemes use a second formula. It gets to the equation without finding c as a separate step.
Formula
is the gradient and is any point on the line. The x and y stay as letters.
Worked example
- 1
— Line through (−4, 9) and (6, −16). Find the gradient first, as before. Brackets keep the −4 safe.
- 2
— −16 − 9 = −25 and 6 + 4 = 10, so the gradient is −2.5.
- 3
— Put m and the point (−4, 9) into the formula: , .
- 4
— Minus a negative is plus: x − (−4) = x + 4.
- 5
— Multiply out the bracket: −2.5 × x and −2.5 × 4 = −10.
- 6
— Add 9 to both sides: −10 + 9 = −1. Now it is in the form y = mx + c.
Common mistake
Writing . Here is −4, so becomes .
Key idea
Both methods give the same line and earn the same marks. Use the one you find easier.
اشرحها بالعربي
بعض الكتب ونماذج التصحيح تستعمل قانونًا ثانيًا يصل إلى المعادلة دون حساب الجزء المقطوع في خطوة منفصلة: المجهول الصادي ناقص الإحداثي الصادي للنقطة يساوي الميل مضروبًا في المجهول السيني ناقص الإحداثي السيني للنقطة. احسب الميل أولًا كالمعتاد. ثم عوّض الميل وإحداثيي أي نقطة على الخط، ويبقى المجهولان حرفين. إذا كان إحداثي النقطة سالبًا فطرح السالب يصبح جمعًا. ثم فُكّ القوس واجعل المجهول الصادي وحده. والخطأ الشائع نسيان أن طرح الإحداثي السالب يصبح جمعًا. والطريقتان تعطيان الخط نفسه والدرجات نفسها، فاستعمل الأسهل لك.
Step 5 of 6
“Show That” Questions
Some questions give you the answer in another form, like “Show that the line AB is 3y = x + 7”. All the marks are for working, so write every line.
Worked example
- 1
— A is (−1, 2) and B is (5, 4). Gradient formula, with −1 in brackets.
- 2
— Minus a negative is plus, so across is 6. Divide top and bottom by 2.
- 3
— Substitute A: x = −1, y = 2.
- 4
— ⅓ × (−1) = −⅓.
- 5
— Add ⅓ to both sides. Keep it as a fraction: a rounded 2.33 cannot give the exact answer.
- 6
— The equation in the form y = mx + c.
- 7
— Multiply every term by 3 to clear the fractions. This matches the line you were asked to show.
Key idea
In a “show that” question, an answer with a missing line can lose marks. The examiner wants every step, with no gaps.
اشرحها بالعربي
في أسئلة «أثبت أن» يُعطى الجواب مكتوبًا بصورة أخرى، فكل الدرجات على خطوات الحل، واكتب كل سطر. احسب الميل بالقانون مع الأقواس حول السالب، وبسّط الكسر. ثم عوّض إحداثيي إحدى النقطتين لتجد الجزء المقطوع، واتركه كسرًا ولا تقرّبه إلى عدد عشري، لأن التقريب لا يوصلك إلى الجواب الدقيق. اكتب المعادلة، ثم اضرب كل الحدود في المقام لتتخلص من الكسور، فتصل إلى الصورة المطلوبة نفسها. والممتحن يريد كل خطوة دون فجوات، والسطر الناقص قد يفقدك درجات.
Step 6 of 6
Which Method? Read the Question
Check what you are given and how the answer should look.
| You see | You do |
| Two points | gradient, then c |
| A gradient and one point | skip to c |
| Two points with the same y | that number |
| Two points with the same x | that number (a vertical line) |
| A point on the y-axis, | straight away |
| Answer as ax + by + c = 0 | Equation in the Form ax + by + c = 0 |
| A line drawn on a grid | Finding the Equation From a Graph |
| Through the midpoint, at right angles | The Perpendicular Bisector |
Key idea
Put in whichever point has the easier numbers. A point with a 0 in it is best.
اشرحها بالعربي
انظر إلى المعطى وإلى صورة الجواب المطلوبة. نقطتان: الميل ثم الجزء المقطوع. ميل ونقطة: انتقل مباشرة إلى إيجاد الجزء المقطوع. نقطتان لهما الإحداثي الصادي نفسه: خط أفقي، معادلته أن الإحداثي الصادي يساوي ذلك العدد. نقطتان لهما الإحداثي السيني نفسه: خط رأسي، معادلته أن الإحداثي السيني يساوي ذلك العدد. نقطة على المحور الصادي: إحداثيها الصادي هو الجزء المقطوع مباشرة. والجواب بالصورة العامة، أو الخط المرسوم على الشبكة، أو المنصّف العمودي، لكل منها درس خاص. وعوّض دائمًا بالنقطة ذات الأعداد الأسهل، والأفضل التي فيها صفر.
More real exam questions on this
Solve one in Lemmara and see where every mark goes.
- WMA11/01Jan 2026 · Q49 marksWork without a calculator with points A(−1, 8) and B(7, 2) on line L₁, and a perpendicular line L₂ through A that meets the x-axis at C.Solve it →
- 4PM1/01Jun 2025 · Q213 marksGiven A(3, 2), B(8, 3), C(4, 7), prove ABC is isosceles, find the line through A and midpoint M of BC, then find D on line AC with AD = kAC, k > 1, and angle ABD = 90.Solve it →
- 4PM1/01RJun 2024 · Q912 marksGiven A(−4, 3) and B(6, 8) on line k, find the line equation, a point C dividing AB in ratio 4:1, a point D on the perpendicular through C with CD = 8√5 and p < 0, and the area of triangle ACD.Solve it →
- WMA11/01Jun 2024 · Q99 marksPoints A (4, 2) and B (15, 7) lie on line l₁, and l₂ through A is parallel to the x-axis, with C on l₂ and BC = 5√5.Solve it →
- WMA11/01Oct 2024 · Q16 marksLine l₁ goes through A(−5, 20) and B(3, −4). Find l₁ in y = mx + c form, then find the perpendicular line l₂ through the midpoint of AB in px + qy + r = 0 form.Solve it →
- 0580/42Feb/Mar 2023 · Q611 marksUsing points A (0, 4) and B (8, 0), with L₁ horizontal through A and L₂ through A and B, find line equations and a perpendicular line through C (2, 3), then a length.Solve it →
Lemmara is an independent study tool, not affiliated with or endorsed by Cambridge International Education or Pearson Edexcel. The lessons and worked examples are Lemmara’s own.