Worked examples · Linear Programming
Linear Programming, Worked Examples (easy)
These easy Linear Programming examples rehearse the everyday moves of the chapter: turning worded conditions into inequalities, testing a point to decide which side of a line a region lies on, and reading the maximum or minimum of an objective straight off the corner points. Try each on paper first, then check every line against our full solution.
What these examples cover
These easy Linear Programming examples build the three habits the whole chapter rests on: turning a worded condition into a correct inequality, deciding which side of a line a region sits on, and reading the largest or smallest value of an objective straight off the corner points. Every example uses small, clean numbers, so you can follow each line without a calculator getting in the way.
Use the set honestly, cover the solution, work the question in full on paper, and only then check it line by line against ours. Where your answer differs, hunt for the exact step where the two part company; that single line is usually where the real learning waits.
A quick sketch of the region, drawn to no particular scale, keeps the inequalities and the corners straight in your head.
Worked examples
Work through all four in order. The first two set up the language of the chapter, inequalities and regions, while the last two show the payoff: once the corners of a region are known, the best answer is only a few substitutions away.
A workshop makes wooden chairs and wooden tables in a week. Write one inequality for each condition below.
(a) At least 10 chairs are made. (b) Not more than 8 tables are made.
(c) The total number of items is at most 20. (d) The number of chairs is at least twice the number of tables.
Show worked solution
Translate each sentence one phrase at a time. The trick is to match the words to a symbol: 'at least' means , while 'not more than' and 'at most' both mean , and 'twice' means multiply by .
(a) 'At least 10 chairs' fixes a lower limit on :
(b) 'Not more than 8 tables' fixes an upper limit on :
(c) 'The total number of items is at most 20' adds the two quantities and caps them:
(d) 'The number of chairs is at least twice the number of tables' means must reach or exceed :
Answer
The four inequalities are , , and . Together with the natural conditions and , chairs and tables cannot be negative, these lines would bound the region for this workshop.
The straight line divides the plane into two regions. By testing the origin, decide whether the region described by contains the origin, and state on which side of the line the region lies.
Show worked solution
To find which side of a line an inequality describes, substitute the coordinates of one point that is not on the line. The origin is the easiest choice whenever the line does not pass through it.
Now compare this value with the inequality . Since is not greater than or equal to , the origin does not satisfy the inequality.
Answer
The origin does not lie in the region. So is the side of the line that is away from the origin, the upper-right side.
When you shade, keep the boundary line itself included, because the inequality uses and not a strict .
A feasible region has corner points , , and . The objective function is .
Find the maximum value of and the point at which it occurs.
Show worked solution
The maximum (and the minimum) of a linear objective over a straight-edged region always sits at a corner point. So evaluate at each vertex in turn and compare the results.
Comparing the four values, the largest is .
Answer
The maximum value is , occurring at . A quick sense-check: carries both a healthy and a healthy , and because rewards both, it beats the corners that sit on an axis.
The shaded feasible region of a costing problem has corner points , and . The cost, in ringgit, is .
Find the point that gives the minimum cost and state that cost.
Show worked solution
A minimum cost, exactly like a maximum profit, is found at a corner of the region. Substitute each vertex into .
The smallest of the three costs is .
Answer
The minimum cost is at . Notice that the cheapest corner is the one closest to the origin, which makes sense because grows as and grow.
A constraint in a linear programming problem is represented by the straight line . Find the coordinates of the points where this line crosses the -axis and the -axis.
Show worked solution
A line crosses the -axis where , and it crosses the -axis where . Substitute each value in turn.
So the line meets the -axis at .
Answer
The line crosses the -axis at and the -axis at . Check: and , both correct.
A feasible region is defined by the constraints , and . Determine whether the point lies within the feasible region.
Show worked solution
To test whether a point lies in a feasible region, substitute its coordinates into every constraint and check that each one holds true.
Since , the first constraint is satisfied.
Since , the second constraint is satisfied too. The third constraint is also satisfied, since .
Answer
All three constraints hold, so lies within the feasible region. A quick check like this, one substitution per constraint, is enough to confirm a candidate point before you ever reach for the vertices.
The objective function of a linear programming problem is , where is a constant. Given that the maximum value of is and it occurs at the point , find the value of .
Show worked solution
The maximum value of occurs at , so substitute , and into the objective function.
Simplify and solve for .
Answer
The value of is . Check: with , , which matches the given maximum.
An objective function is given by . By writing this equation in the form , state the gradient of the family of parallel lines represented by as takes different values.
Show worked solution
Rearrange the objective function to make the subject, treating as a constant for the moment.
Comparing this with , the coefficient of gives the gradient.
Answer
The gradient is . This value does not depend on , which is exactly why every line in the family is parallel, only the -intercept changes as changes.
Across all four, the discipline is the same: read the condition exactly, write one clean line at a time, and let the corner points do the heavy lifting. That steadiness is what turns Linear Programming into a dependable source of marks rather than a place for careless slips.
Key method points
These four examples rehearse the moves that open almost every Linear Programming question in Add Math. Keep the following in mind as you practise more.
- Match words to symbols: 'at least' is ; 'at most' and 'not more than' are ; 'twice' multiplies by .
- Add the natural conditions and whenever the quantities are counts or physical amounts.
- To decide which side of a line a region is on, test one point, the origin is easiest, in the inequality.
- A boundary is included (solid line) when the inequality is or , and excluded (dashed line) when it is strict, or .
- The maximum and minimum of a linear objective always occur at a corner point of the feasible region.
- Evaluate the objective at every vertex and compare: the largest value is the maximum, the smallest is the minimum.
- Because marking is analytic, a clear substitution at each vertex earns method marks even if a single arithmetic line slips.
How a teacher helps
When a student loses a mark here, it is rarely the big idea, it is a phrase read too quickly, so 'at least' turns into , or one vertex is left out of the comparison. In a one-to-one lesson our teacher watches the exact line where the slip happens and fixes it on the spot, before it hardens into a habit.
Because our teachers are experienced, you work with someone who explains why the best value must sit at a corner, not just how to test them. Lessons are taught in English, while SPM papers are set in both Malay and English, so the notation reads the same to you either way.
Get 1-to-1 help.
Book a Trial ClassFrequently asked questions
How do I decide between and ?
Read the key phrase. 'At least', 'a minimum of', and 'no fewer than' all mean ; 'at most', 'not more than', and 'a maximum of' all mean .
If a quantity must simply exist as a count, add and as well.
Why does the best value always occur at a corner?
A linear objective changes at a steady rate across the region, so its extreme values are pushed onto the boundary, and on a straight-edged region the most extreme boundary points are the corners. That is why checking every vertex is enough.
Do I always include and ?
Include them whenever and are counts or physical amounts, which cannot be negative. The problem may not say so in words, but these conditions are part of the model and shape the region.
What if two corners give the same objective value?
Then both corners, and in fact every point on the edge joining them, give that same optimum. You may state either corner as your answer; the value is what earns the mark.
Source:SRC-DSKP-EN