Inequalities and Linear Programming
شرح المتباينات والبرمجة الخطية بالعربي: الدرس بالإنجليزية كما في الامتحان، ومع كل خطوة شرحها بالعربي.
Solve linear and quadratic inequalities and combine them, shade a region from inequalities, find its corners, and find the greatest or least value of an expression in it.
- 6 steps
- 8 min
- 1 syllabus
Try a real exam question on this
4PM1/02 · Jun 2025 · Q2 · 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
Solve two inequalities in x and then find the values of x satisfying both at once.
(a) 1 mark
Solve the linear inequality 9 − 3x > 11x + 2 for x.
- 7 > 14x
- x < 1/2
Answer x < 1/2
(b) 3 marks
Solve the quadratic inequality 10x² + 7x < 12 for x.
- 10x² + 7x − 12 < 0
- (5x − 4)(2x + 3) < 0
- Critical values x = 4/5 and x = −3/2
- −3/2 < x < 4/5
Answer −3/2 < x < 4/5
(c) 1 mark
Find the x values satisfying both 9 − 3x > 11x + 2 and 10x² + 7x < 12.
- Overlap of x < 1/2 and −3/2 < x < 4/5
- −3/2 < x < 1/2
Answer −3/2 < x < 1/2
The lesson, step by step
Step 1 of 6
Plans with limits
A bakery has only so much flour and so many hours. Each limit is an inequality. Together they mark out every plan the bakery can actually make. Which plan earns the most? That question is called linear programming.
Here, “programming” means planning, not computer code. The plan you want is always at a corner of the allowed region, and this lesson shows you why.
First: solve inequalities in one letter, x. These are the 4PM1 questions that end with “both”.
Then: inequalities in x and y. You draw lines, shade a region R, find its corners and test an expression P.
Key idea
Linear programming grew up in the 1930s and 1940s to plan factories and wartime supplies. Leonid Kantorovich, one of its founders, shared the 1975 Nobel Prize in Economics for this work.
اشرحها بالعربي
هذا الدرس عن المتباينات والبرمجة الخطية. تخيّل مخبزًا لديه كمية محدودة من الدقيق وعدد محدود من الساعات؛ كل قيد منها متباينة، وكل القيود معًا تحدد كل الخطط الممكنة فعلًا. والسؤال: أي خطة تعطي أكبر ربح؟ هذا ما يسمى البرمجة الخطية، وكلمة «برمجة» هنا تعني التخطيط لا كتابة الحاسوب. سنبدأ بحل متباينات في متغير واحد، ثم ننتقل إلى متباينات في السين والصاد: نرسم الخطوط ونظلّل منطقة، ونجد رؤوسها، ثم نختبر عبارة عند هذه الرؤوس، لأن الخطة الأفضل تقع دائمًا عند رأس من رؤوس المنطقة.
Step 2 of 6
Inequalities in x
A linear inequality is solved like an equation. Do the same thing to both sides, with one extra rule.
Rule
If you multiply or divide both sides by a negative number, flip the inequality sign. For example, gives .
Worked example
- 1
Find the set of values of x for which .
- 2
— Expand the bracket.
- 3
— Take x from both sides and add 6.
- 4
— Divide by 2. It is positive, so the sign stays.
For a quadratic inequality, collect everything on one side first, so the other side is 0. The terms may be on both sides.
Worked example
- 1
Find the set of values of x for which .
- 2
— Move every term to the left.
- 3
— The critical values.
- 4
— The parabola is below 0 between its roots.
Rule
When the x² number is positive: less than 0 gives one piece, between the critical values; greater than 0 gives two pieces, outside them, like or .
Worked example
- 1
Find the values of x for which both and .
- 2
— Solve the linear one: .
- 3
— The quadratic one, from before.
- 4
— “Both” means the overlap. Draw both on a number line and keep the part covered twice.
Common mistake
Dividing by a negative and keeping the sign. gives .
Key idea
For “both”, draw the two answers on one number line. The answer is only where they overlap.
اشرحها بالعربي
المتباينة الخطية تُحل مثل المعادلة: نفعل الشيء نفسه بالطرفين، مع قاعدة إضافية واحدة: إذا ضربت أو قسمت الطرفين على عدد سالب فاقلب إشارة المتباينة. في المثال الأول نفكّ القوس، ونجمع حدود السين في طرف والأعداد في الآخر، ثم نقسم على عدد موجب فتبقى الإشارة. في المتباينة التربيعية اجمع كل الحدود في طرف ليصبح الطرف الآخر صفرًا، ثم حلّل لتجد القيمتين الحرجتين. إذا كان معامل المربع موجبًا: «أصغر من صفر» تعني بين القيمتين، و«أكبر من صفر» تعني خارجهما في جزأين. وعبارة «كلتاهما» تعني منطقة التداخل؛ ارسم الحلّين على خط أعداد واحد وخذ الجزء المشترك.
Step 3 of 6
Draw and shade R
Now the inequalities have x and y. Each one is a line on the graph, with the allowed side shaded. The region where all of them are true is called R.
Steps
- 1
Draw each line. Two quick points: put , then put .
Use a solid line for or , and a dashed line for or .
Pick a test point not on the line, usually (0, 0). Put it into the inequality.
If it is true, R is on the side of the test point. If it is false, R is on the other side.
Shade, and label the region R.
Worked example
- 1
Show the region R where , and .
- 2
— Two points for the first line.
- 3
— Put x = 0: 2y = 10. Put y = 0: x = 10.
- 4
— A horizontal line through (0, 1).
- 5
— Put (0, 0) into the first two. Both are true, so R is on the origin side of these two lines.
- 6
— (0, 0) fails here, so R is above the line y = 1.
- 7
— The three lines close off a triangle. Label it R.
Rule
4PM1 accepts shading the region you want or the parts you do not want. Either way, R must be one closed region and clearly labelled.
Common mistake
Plotting through (0, 10). With , you get , so .
Key idea
Every line splits the page in two. One test point tells you which half you keep.
اشرحها بالعربي
الآن في المتباينات السين والصاد معًا. كل متباينة خط على الرسم، ومنطقة الحل في جهة منه، والمنطقة التي تتحقق فيها كل المتباينات تسمى المنطقة المطلوبة. الطريقة: ارسم كل خط بنقطتين سريعتين، مرة بجعل السين صفرًا ومرة بجعل الصاد صفرًا. استخدم خطًا متصلًا إذا كانت المتباينة تشمل المساواة، وخطًا متقطعًا إذا لم تشملها. ثم اختر نقطة اختبار ليست على الخط، غالبًا نقطة الأصل، وعوّضها: إن تحققت المتباينة فالمنطقة في جهة النقطة، وإلا ففي الجهة الأخرى. ظلّل وسمِّ المنطقة. الخطأ الشائع: عند جعل السين صفرًا نسيان القسمة على معامل الصاد، فيُرسم الخط من نقطة خاطئة.
Step 4 of 6
Corners of R
The corners of R are called vertices. Each one is where two boundary lines meet. You can read them from an accurate graph, but solving the equations is safer.
Worked example
- 1
Find the vertices of the triangle R from before.
- 2
— Put y = 1 into the first line. Vertex (−1, 1).
- 3
— Substitute into .
- 4
— Vertex (2, 4).
- 5
— Put y = 1 into . Vertex (8, 1).
Common mistake
Using a crossing point that is not a corner of R. Only points where two lines meet on the edge of R count.
Key idea
Vertices come from simultaneous equations: two lines, one point. Write each one as coordinates.
اشرحها بالعربي
رؤوس المنطقة هي زواياها، وكل رأس نقطة يلتقي فيها خطّان من حدود المنطقة. يمكن قراءتها من رسم دقيق، لكن حلّ المعادلتين أضمن. في المثال: نأخذ كل خطّين يلتقيان عند زاوية من المثلث ونحلّهما معًا؛ إذا كان أحدهما خطًا أفقيًا فعوّض قيمة الصاد مباشرة في الآخر، وإذا كانت الصاد في أحدهما بدلالة السين فعوّضها في الآخر. ثم اكتب كل رأس على صورة إحداثيين. الخطأ الشائع: استخدام نقطة تقاطع بين خطّين لا تقع على حافة المنطقة، فهي ليست رأسًا. فقط النقاط التي يلتقي فيها خطّان على حدود المنطقة تُحسب.
Step 5 of 6
Greatest and least values
The question gives an expression such as and asks for its greatest or least value for points in R. Here is why the answer is at a vertex.
Each value of P is a straight line, like or . All these lines are parallel. As P grows, the line slides across the page. The last point of R it touches is always a corner.
Steps
- 1
Find every vertex of R.
Work out P at each vertex.
The biggest result is the greatest value. The smallest is the least value.
Worked example
- 1
For points in R, find the greatest value of .
- 2
— Put the first vertex into P.
- 3
— The second vertex.
- 4
— The third vertex.
- 5
— The greatest value is 14, at (2, 4).
Worked example
- 1
For points in R, find the least value of .
- 2
— At (−1, 1), (2, 4) and (8, 1).
- 3
— The least value is −4, at (−1, 1).
Rule
A second method is the objective line: draw a line and slide it parallel across R. Testing every vertex is quicker and safer, and the mark scheme accepts both.
Common mistake
Testing only one or two vertices, or giving the point instead of the value. Test them all, then write the value of P.
Key idea
Corners only. Put each vertex into P, then pick the largest or smallest.
اشرحها بالعربي
يعطيك السؤال عبارة ويطلب أكبر قيمة لها أو أصغر قيمة عند نقاط المنطقة. لماذا يكون الجواب عند رأس؟ كل قيمة للعبارة تمثّل خطًا مستقيمًا، وكل هذه الخطوط متوازية؛ وكلما كبرت القيمة انزلق الخط عبر الصفحة، وآخر نقطة يلمسها من المنطقة تكون دائمًا زاوية. الطريقة: أوجد كل رؤوس المنطقة، واحسب قيمة العبارة عند كل رأس، فالأكبر هو القيمة العظمى والأصغر هو القيمة الصغرى. وهناك طريقة ثانية بتحريك خط موازٍ عبر المنطقة، لكن اختبار الرؤوس أسرع وأضمن. الخطأ الشائع: اختبار رأس أو رأسين فقط، أو كتابة النقطة بدل قيمة العبارة.
Step 6 of 6
Which step? Read the question
These questions follow the same pattern every year. Read each part and use the right tool.
| You see | You do |
| A linear inequality in x | Solve like an equation; flip the sign if you divide by a negative |
| A quadratic inequality | Collect to one side, find the critical values, sketch the parabola |
| “Both … and …” | Draw both on a number line; keep the overlap |
| “Draw the line with equation …” | Two points: put x = 0, then y = 0 |
| “Show, by shading, the region R” | Test (0, 0) for each line, shade, label R |
| “Find the greatest (or least) value of P” | Find every vertex, put each into P, compare |
Common mistake
Answering “least” with the greatest value. Read which one the question asks for.
Key idea
Inequalities give the region. The region gives the corners. The corners give the answer.
اشرحها بالعربي
هذه الأسئلة تتبع النمط نفسه كل سنة، فاقرأ كل جزء واختر أداته. متباينة خطية في السين: حلّها كمعادلة واقلب الإشارة إذا قسمت على سالب. متباينة تربيعية: اجمع في طرف، أوجد القيمتين الحرجتين، وارسم القطع المكافئ. عبارة «كلتاهما»: ارسم الحلّين على خط أعداد وخذ التداخل. «ارسم الخط»: نقطتان بجعل السين صفرًا ثم الصاد صفرًا. «بيّن بالتظليل المنطقة»: اختبر نقطة الأصل لكل خط ثم ظلّل وسمِّ المنطقة. «أوجد أكبر أو أصغر قيمة»: أوجد كل الرؤوس وعوّض في العبارة وقارن. الخطأ الشائع: إعطاء القيمة العظمى والسؤال يطلب الصغرى، فاقرأ جيدًا.
More real exam questions on this
Solve one in Lemmara and see where every mark goes.
- 4PM1/01Jun 2025 · Q48 marksOn a coordinate grid, draw three straight lines from their equations, shade the region satisfying three inequalities, then find the minimum value of P = 2x − y over that region.Solve it →
- 4PM1/01RJun 2025 · Q57 marksRectangle has width x cm and length (2x + 3) cm. Given P > 10 and A < 35, find the range of possible x values as a < x < b, showing algebraic working.Solve it →
- 4PM1/02Nov 2024 · Q26 marksA rectangle's length is 2 cm more than its width w. Its area exceeds 8 cm² and its perimeter is under 30 cm. Find the range of w as a < w < b.Solve it →
- 4PM1/02Jan 2023 · Q17 marksSolve two inequalities in x and then find the values of x satisfying both at once.Solve it →
- 4PM1/02RJan 2023 · Q26 marksSolve two inequalities in x and then find the values of x satisfying both at once.Solve it →
- 4PM1/02Jun 2023 · Q57 marksDraw three straight lines on a coordinate grid, shade the region satisfying three inequalities, then use the graph to find the minimum of P = 2x − 5y.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.