Linear programming is one of the most practical topics in Form Four Basic Mathematics, and it appears regularly in school tests, mock examinations and the CSEE. This revision guide gives you a short summary of the key ideas followed by original form four linear programming questions with fully worked answers. Use the December holiday to work through every question on paper before reading the solution.
Contents

Key Ideas in Linear Programming
Linear programming is a method of finding the best possible value (maximum or minimum) of a quantity, such as profit or cost, when that quantity depends on two variables that are limited by conditions called constraints. If you need a refresher on the whole Form Four syllabus, see our Form Four Mathematics Notes All Topics.
- Decision variables: the unknown quantities, usually x and y.
- Objective function: the expression to be maximised or minimised, for example P = 3x + 2y.
- Constraints: linear inequalities that limit the variables, such as x + y ≤ 20.
- Non-negativity conditions: x ≥ 0 and y ≥ 0, because quantities like goods or hectares cannot be negative.
- Feasible region: the area on the graph that satisfies all constraints at the same time.
- Corner point method: the maximum or minimum value of the objective function always occurs at a vertex (corner) of the feasible region.
Steps for Solving Any Problem
- Define the variables clearly in words.
- Write down every constraint as an inequality.
- Write the objective function.
- Draw each boundary line by finding its intercepts, then identify the feasible region.
- Find the coordinates of all corner points, solving simultaneous equations where lines meet.
- Substitute each corner point into the objective function and choose the best value.
Form Four Linear Programming Questions with Worked Answers
Solving the simultaneous equations in these questions uses the same skills covered in our Form Two Mathematics Algebra Questions and Answers, so revise that post if elimination still feels slow.
Question 1: Definitions
Define (a) objective function (b) feasible region (c) constraint.
Answer: (a) The objective function is the linear expression whose value is to be made as large or as small as possible. (b) The feasible region is the set of all points that satisfy every constraint of the problem. (c) A constraint is a condition, written as a linear inequality, that limits the possible values of the variables.
Question 2: Forming Inequalities
A farmer has not more than 20 hectares of land for maize and beans. He wants at least 5 hectares of maize and at least 3 hectares of beans. Write the inequalities.
Answer: Let x = hectares of maize and y = hectares of beans. Then x + y ≤ 20, x ≥ 5 and y ≥ 3. The phrase “not more than” gives ≤ while “at least” gives ≥.
Question 3: Maximising from Given Constraints
Maximise P = 3x + 2y subject to x + y ≤ 6, x ≤ 4, x ≥ 0, y ≥ 0.
Answer: The corner points are (0, 0), (4, 0), (4, 2) and (0, 6). The point (4, 2) comes from substituting x = 4 into x + y = 6. Values of P: (0, 0) gives 0, (4, 0) gives 12, (4, 2) gives 12 + 4 = 16 and (0, 6) gives 12. The maximum value is P = 16 at (4, 2).
Question 4: Two Constraint Lines
Maximise z = 5x + 4y subject to x + y ≤ 8, 2x + y ≤ 12, x ≥ 0, y ≥ 0.
Answer: Intercepts: x + y = 8 meets the axes at (8, 0) and (0, 8); 2x + y = 12 meets them at (6, 0) and (0, 12). Subtracting the first equation from the second gives x = 4, so y = 4. Corner points: (0, 0), (6, 0), (4, 4), (0, 8). Values: 0, 30, 20 + 16 = 36 and 32. The maximum is z = 36 at (4, 4).
Question 5: Minimising Over an Open Region
Minimise C = 3x + 4y subject to x + y ≥ 6, x + 2y ≥ 8, x ≥ 0, y ≥ 0.
Answer: The feasible region lies above both lines and is open (unbounded). Its corner points are (0, 6), (8, 0) and the intersection of the two lines. Subtracting x + y = 6 from x + 2y = 8 gives y = 2, so x = 4. Values: (0, 6) gives 24, (8, 0) gives 24 and (4, 2) gives 12 + 8 = 20. The minimum is C = 20 at (4, 2). An open region can have a minimum but no maximum.
Question 6: Tailor’s Profit Problem
A tailor makes shirts and dresses. A shirt needs 2 m of cloth and 1 hour of work; a dress needs 3 m of cloth and 2 hours. She has 60 m of cloth and 36 working hours. Profit is TSh 4,000 per shirt and TSh 7,000 per dress. How many of each should she make for maximum profit?
Answer: Let x = shirts and y = dresses. Constraints: 2x + 3y ≤ 60 (cloth), x + 2y ≤ 36 (time), x ≥ 0, y ≥ 0. Objective: P = 4,000x + 7,000y. Solving 2x + 3y = 60 and x + 2y = 36: from the second, x = 36 − 2y, so 72 − 4y + 3y = 60, giving y = 12 and x = 12.
| Corner point | Profit P = 4,000x + 7,000y |
|---|---|
| (0, 0) | TSh 0 |
| (30, 0) | TSh 120,000 |
| (12, 12) | TSh 132,000 |
| (0, 18) | TSh 126,000 |
She should make 12 shirts and 12 dresses for a maximum profit of TSh 132,000. Note that (0, 20) is not a corner because the time constraint allows at most 18 dresses.
Question 7: Minimum Cost Feed Mixture
A poultry keeper mixes Feed A (TSh 800 per kg) and Feed B (TSh 1,000 per kg). One kg of A gives 3 units of protein and 1 unit of energy; one kg of B gives 1 unit of protein and 2 units of energy. The birds need at least 9 units of protein and 8 units of energy. Find the cheapest mixture.
Answer: Let x = kg of A and y = kg of B. Constraints: 3x + y ≥ 9, x + 2y ≥ 8, x ≥ 0, y ≥ 0. Cost C = 800x + 1,000y. Intersection: x = 8 − 2y, so 24 − 6y + y = 9, giving y = 3 and x = 2. Corner points and costs: (0, 9) gives 9,000; (2, 3) gives 1,600 + 3,000 = 4,600; (8, 0) gives 6,400. The cheapest mixture is 2 kg of A and 3 kg of B costing TSh 4,600.
Question 8: Inequalities from a Region
A region is bounded by the x-axis, the y-axis, the line through (0, 5) and (5, 0), and the vertical line x = 3. Write the inequalities that describe it.
Answer: The line through (0, 5) and (5, 0) is x + y = 5. Since the origin lies inside the region, the inequalities are x + y ≤ 5, x ≤ 3, x ≥ 0 and y ≥ 0.
Question 9: Testing Points
Do the points (3, 4) and (5, 3) lie in the region x + y ≤ 8, 2x + y ≤ 12?
Answer: For (3, 4): 3 + 4 = 7 ≤ 8 and 6 + 4 = 10 ≤ 12, so it is inside. For (5, 3): 5 + 3 = 8 ≤ 8 is true, but 10 + 3 = 13 is greater than 12, so it is outside the region.
Question 10: Why Corner Points?
Explain why we test only the corner points of the feasible region.
Answer: The objective function is linear, so its value changes steadily as you move across the region in any direction. The largest or smallest value is therefore reached at the edge, and specifically at a vertex where the edges meet. If two neighbouring corners give the same best value, every point on the edge joining them is also optimal.
Common Mistakes to Avoid
- Mixing up “at most” (≤) and “at least” (≥) when translating word problems.
- Forgetting the non-negativity conditions x ≥ 0 and y ≥ 0.
- Reading intersection points from a rough graph instead of solving the equations exactly.
- Not stating the shading convention; say clearly whether you shaded the wanted or the unwanted region.
- Giving only the coordinates without a final sentence that answers the question in context.
Study Tips for This Topic
Use graph paper and a sharp pencil, and choose a scale that fits all intercepts on the page. Label every line with its equation so the examiner can follow your work. Practise at least one word problem every day; translating sentences into inequalities is where most marks are lost.
FAQ
Is linear programming tested in the CSEE Basic Mathematics paper?
Yes, it is part of the Form Four Basic Mathematics syllabus, so expect it in school, regional and national examinations.
Do I shade the wanted or unwanted region?
Either is accepted as long as you state your convention clearly. Follow the method your teacher uses and be consistent.
What if the answer is not a whole number?
If the variables represent items that cannot be split, test the nearest whole-number points inside the feasible region and choose the best one.
Final Word
Linear programming rewards careful, step-by-step working. Define your variables, write every constraint, draw neatly and test all corner points. Work through these questions again in a week without looking at the answers to check your progress.
