Fundamentals of Linear Programming
Linear programming turns limits into inequalities and compares a linear objective at the corners of a feasible region. The ski-workshop example finds a daily profit of \$760, while the bus-fleet example finds a capacity of 135 passengers and shows why the intersection of two constraint lines does not always win.

The Ski Shop Problem
A ski workshop makes downhill skis and cross-country skis, but its fabrication and finishing teams have limited time. How many pairs of each type should it make each day to earn the most money?
| Resource or return | Downhill skis, per pair | Cross-country skis, per pair | Daily limit |
|---|---|---|---|
| Fabrication time | 8 hours | 4 hours | No more than 112 hours |
| Finishing time | 1 hour | 1 hour | At most 24 hours |
| Profit | $40 | $30 | Maximize total profit |
The task is to find the most profitable production mix that stays within both time limits. Linear programming provides a way to find that plan without testing every possible combination
Variables and Constraints
Linear programming finds the maximum or minimum of an objective function under conditions written as linear inequalities. Constraints are those conditions. The feasible region is the set of points satisfying every constraint at once; each point in it represents a legal plan. The objective function is the quantity to maximize or minimize, such as profit
Define the variables first
Let x = the number of pairs of downhill skis made per day, and y = the number of pairs of cross-country skis made per day. Define these quantities before writing equations or drawing a graph so that the two variables do not get swapped later
Translate every condition
Fabrication uses 8x hours for downhill pairs and 4y hours for cross-country pairs. Because the team has no more than 112 hours, 8x + 4y ≤ 112. The phrase “no more than” translates to ≤
Finishing takes 1 hour per pair of either type, so x + y ≤ 24. Negative production is not allowed, so x ≥ 0 and y ≥ 0. The complete constraint system is {8x + 4y ≤ 112, x + y ≤ 24, x ≥ 0, y ≥ 0}
Practice 1: A pottery studio
A pottery studio makes mugs and bowls. Each mug needs 3 hours of kiln time, and each bowl needs 1 hour. The kiln is available for no more than 18 hours per day, and the studio can make at most 12 pieces per day. Let x = number of mugs and y = number of bowls. Complete the pottery studio's constraint system
The incomplete system is: Kiln hours: ___ ___ 18; Total pieces: x + y ≤ 12; Non-negativity: ___. The supplied choices are 3x + y; x + 3y; ≤; ≥; x ≥ 0, y ≥ 0; and x > 0, y > 0
The completed system is {3x + y ≤ 18, x + y ≤ 12, x ≥ 0, y ≥ 0}. The 3-hour coefficient belongs to mugs, “no more than” means less than or equal to, and zero pieces is allowed. These are the checks emphasized in the answer feedback
Graphing the Feasible Region
Rearrange and find intercepts
Solve the fabrication constraint for y: 8x + 4y ≤ 112 → 4y ≤ −8x + 112 → y ≤ −2x + 28. Its boundary line has intercepts (0, 28) and (14, 0). The finishing constraint becomes x + y ≤ 24 → y ≤ −x + 24, with boundary intercepts (0, 24) and (24, 0)
The rearranged system is {y ≤ −2x + 28, y ≤ −x + 24, x ≥ 0, y ≥ 0}. Non-negativity keeps the plans in the first quadrant
Use the overlap of all constraints
Place downhill pairs on the horizontal axis and cross-country pairs on the vertical axis. Both boundary lines are solid because ≤ allows equality: using exactly all available hours is allowed. The feasible region lies on or below both lines in the first quadrant. It is the quadrilateral with corners (0, 0), (14, 0), (4, 20), and (0, 24)
The corners are called vertices or corner points. Three are read from the axes: (0, 0), (14, 0), and (0, 24). To find the intersection of the two boundary lines, solve −2x + 28 = −x + 24. This gives x = 4, then y = −4 + 24 = 20. The fourth vertex is (4, 20)
Practice 2: Check the corner candidates
For this practice, the region satisfies y ≤ 2x + 2, y ≤ −x + 8, x ≥ 0, and y ≥ 0. Its corners are (0, 0), (0, 2), (2, 6), and (8, 0). The labeled candidates are A (0, 2), B (2, 6), C (8, 0), and D (0, 8). The rising boundary passes through A and B; the falling boundary passes through D, B, and C. D lies above the feasible region
Why Corners Win
Follow a line of equal profit
For the ski workshop, P = 40x + 30y. The coefficients are the dollars earned per downhill pair and per cross-country pair. For a fixed value of P, all plans earning that profit lie on the straight line 40x + 30y = P
The exploration asks where the profit line barely still touches the region as P increases. At P = 0, the line passes through the origin. Increasing P moves it up and to the right while keeping it parallel to its earlier positions. In the ski example, its last contact with the feasible region is the vertex (4, 20)
The corner point principle
The lesson explains that a linear function changes at a constant rate and has no hills or dips of its own. Its physical analogy is a flat tray tilted by the objective: the narration says a ball never stops in the middle of the surface or an edge and always settles in a corner
The feedback about edge midpoints gives the comparison in another way: along an edge, a linear function is beaten or matched by an endpoint. A midpoint cannot strictly beat both corners, so it does not need a separate test
Bounded or unbounded?
The lesson describes a bounded region as closed on all sides, like the ski polygon, and states that both a maximum and a minimum are guaranteed. It describes an unbounded region as open in some direction and states that it has “a maximum or a minimum, never both.” Its checkpoint is to check the shape of the region before promising both answers
Practice 3: Where to test
Finding the Best Mix
Evaluate P = 40x + 30y at every vertex of the ski workshop's feasible region, keeping each coordinate with its own coefficient
| Vertex (x, y) | Substitution | Profit P |
|---|---|---|
| (0, 0) | 40(0) + 30(0) = 0 | $0 |
| (0, 24) | 40(0) + 30(24) = 720 | $720 |
| (14, 0) | 40(14) + 30(0) = 560 | $560 |
| (4, 20) | 40(4) + 30(20) = 160 + 600 = 760 | $760 |
The greatest value is $760 at (4, 20). In context, the workshop should make 4 pairs of downhill skis and 20 pairs of cross-country skis each day for a maximum daily profit of $760. State the production plan as well as the point
Practice 4: Complete a profit table
A juice stand sells smoothies and fruit cups. Let x = smoothies and y = fruit cups sold per day. Profit is P = 8x + 14y dollars, and the feasible region has vertices (0, 0), (0, 5), (3, 4), and (6, 0). Complete the two missing profit values for P = 8x + 14y
The supplied completed rows are P(0, 0) = 8(0) + 14(0) = 0 and P(6, 0) = 8(6) + 14(0) = 48. The blanks are P(0, 5) and P(3, 4); the available choices are 70, 80, 74, and 40
The answers are P(0, 5) = 8(0) + 14(5) = 70 and P(3, 4) = 8(3) + 14(4) = 80. The feedback identifies 74 as the result of swapping x and y at (3, 4). Follow the prefilled substitution pattern and keep each coordinate paired with the correct coefficient
A Full Problem, Start to Finish
Set up the bus-fleet problem
A community is building a bus system. It can spend no more than $180,000 to purchase buses and no more than $1,200 per month on maintenance. The stated goal is to carry as many passengers as possible in one month. Let x = number of small buses and y = number of large buses
| Bus type | Purchase cost | Monthly maintenance | Passengers carried |
|---|---|---|---|
| Small | $10,000 | $75 | Up to 7 |
| Large | $20,000 | $100 | Up to 15 |
The purchase constraint is 10,000x + 20,000y ≤ 180,000. Divide every term by 10,000 to obtain x + 2y ≤ 18. The maintenance constraint is 75x + 100y ≤ 1,200. Divide every term by the greatest common factor, 25, to obtain 3x + 4y ≤ 48. These simplified inequalities have the same solutions as the original ones
Including non-negativity, the complete system is {x + 2y ≤ 18, 3x + 4y ≤ 48, x ≥ 0, y ≥ 0}
Graph and verify the corners
With small buses on the horizontal axis and large buses on the vertical axis, the purchase boundary x + 2y = 18 has intercepts (18, 0) and (0, 9). The maintenance boundary 3x + 4y = 48 has intercepts (16, 0) and (0, 12). Both lines are solid. The overlap on or below both lines in the first quadrant has vertices (0, 0), (0, 9), (12, 3), and (16, 0)
To obtain the crossing point, solve x + 2y = 18 and 3x + 4y = 48 together. Doubling the first equation gives 2x + 4y = 36. Subtracting this from the second gives x = 12; then 12 + 2y = 18 gives y = 3. Thus the intersection is (12, 3)
The other intercepts are not feasible vertices. At (18, 0), maintenance gives 3(18) = 54 > 48. At (0, 12), purchasing gives 2(12) = 24 > 18. Each point lies on one boundary but exceeds the other budget
Evaluate the passenger objective
The course models the passenger objective as P = 7x + 15y and maximizes it at the four vertices
| Vertex (x, y) | Substitution | Passengers P |
|---|---|---|
| (0, 0) | 7(0) + 15(0) = 0 | 0 |
| (0, 9) | 7(0) + 15(9) = 135 | 135 |
| (12, 3) | 7(12) + 15(3) = 84 + 45 = 129 | 129 |
| (16, 0) | 7(16) + 15(0) = 112 | 112 |
The winning fleet is 9 large buses and 0 small buses, giving 135 passengers. The intersection gives only 129. The optimum can lie on an axis, so every vertex must be tested rather than assuming that the intersection wins
Practice 5: Order the workflow
Place the three missing steps into the correct order. The fixed steps are 1: Define the variables; 4: List the vertices, solving a system where lines cross; and 6: State the answer in the words of the problem. The three supplied steps are: “Translate every condition into an inequality, including x ≥ 0, y ≥ 0”; “Graph the solid boundary lines and shade the overlap”; and “Evaluate the objective function at every vertex.”
The correct placements are
02. Translate every condition into an inequality, including x ≥ 0, y ≥ 0;
03. Graph the solid boundary lines and shade the overlap; and step 5: Evaluate the objective function at every vertex. The feedback explains the dependency: constraints must exist before graphing, and the region and its corners must be found before the corners can be tested
Summary
1. Define the variables first. Say exactly what x and y count
2. Turn every condition into a linear inequality. Translate “no more than” as ≤, and include x ≥ 0 and y ≥ 0
3. Simplify or rearrange the constraints, graph their solid boundary lines, and shade the overlap. That overlap is the feasible region
4. List every vertex, solving a system where lines cross. Verify that each candidate satisfies all constraints; an intercept can be an impostor
5. Evaluate the objective at every vertex, select the largest or smallest value as required, and state the answer in context. The lesson's corner point principle is the reason for testing corners. Careful, step-by-step work leads from the limits to the chosen plan
Quiz
Quiz 1: Write the constraints
A workshop builds chairs and tables. Each chair takes 3 hours of carpentry and each table takes 6 hours. The shop has no more than 36 carpentry hours per week and can build at most 9 pieces of furniture in total. Let x = number of chairs and y = number of tables
Quiz 2: Classify candidate points
The constraint system is {x + 2y ≤ 16, 2x + y ≤ 14, x ≥ 0, y ≥ 0}. Each candidate point comes from a boundary line of this system. Sort each candidate point: true feasible vertex, or constraint violator? The candidates are (4, 6), (7, 0), and (0, 14). The two categories are “Feasible vertex” and “Violates a constraint.”
The source answer classifies (4, 6) and (7, 0) as “Feasible vertex,” and (0, 14) as “Violates a constraint.” The accompanying feedback instructs the learner to substitute every point into both inequalities: a point can sit on one boundary and still break the other constraint
Quiz 3: Find the optimum
A greenhouse sells herb kits and flower kits. Let x = herb kits and y = flower kits sold per day, with profit P = 5x + 9y dollars. The source graph represents the allowed plans with a first-quadrant region bounded by the axes, y = x + 4, and x + y = 10. The labeled feasible vertices are (0, 0), (0, 4), (3, 7), and (10, 0). The rising boundary passes through (0, 4) and (6, 10), and the falling boundary passes through (0, 10) and (10, 0). Their intersection is (3, 7). The additional labeled point (0, 10) lies above the feasible region and violates y ≤ x + 4