PYQ Vault

MH HSC 12 Mathematics · Formula sheet

Linear Programming formulas

10 formulas, 2 reference tables and 25 common traps for MH HSC 12 Mathematics Linear Programming, grouped by subtopic.

Full notes with worked examples

Linear Inequations in Two Variables

Learn this subtopic in the notes

Lines parallel to the axes: x ≤ h and y ≥ k

Half planes of lines parallel to the axes

x≤h: on and left of x=hy≥k: on and above y=kx \le h:\ \text{on and left of } x = h \qquad y \ge k:\ \text{on and above } y = k
  • hhthe point where the vertical line x = h cuts the X-axis
  • kkthe point where the horizontal line y = k cuts the Y-axis

One inequation ax + by ≤ c: the test point

Intercepts and the origin test

ax+by=c: (ca,0), (0,cb);test O(0,0) in the inequationax + by = c:\ \left(\tfrac{c}{a}, 0\right),\ \left(0, \tfrac{c}{b}\right); \qquad \text{test } O(0, 0) \text{ in the inequation}
  • a,ba, bthe coefficients of x and y, not both zero
  • ccthe constant on the right-hand side

Two inequations: the common region

Solution set of a pair of inequations

{(x,y):a1x+b1y≤c1}∩{(x,y):a2x+b2y≥c2}\{(x, y) : a_1x + b_1y \le c_1\} \cap \{(x, y) : a_2x + b_2y \ge c_2\}

Feasible solution of a system with x ≥ 0, y ≥ 0

Corner of the feasible region

corner=meeting point of two boundary lines that satisfies every other constraint\text{corner} = \text{meeting point of two boundary lines that satisfies every other constraint}

Common traps

Not reversing the sign

Dividing by a negative number reverses the inequality: −2y≥−6-2y \ge -6 gives y≤3y \le 3, not y≥3y \ge 3. Check the answer with one point, such as the origin.

Shading the wrong side of a vertical line

x≥hx \ge h is on and to the RIGHT of x=hx = h, even when hh is negative. For x≥−5x \ge -5 the origin is inside the region.

Testing the origin on a line through it

For 3x+2y≥03x + 2y \ge 0 the origin lies on the line, and 0≥00 \ge 0 tells you nothing about the sides. Test a point off the line, such as (1,0)(1, 0).

Writing 'above' or 'below' the line

Which side looks 'above' changes with the slope of the line. Say 'origin side' or 'non-origin side', as the textbook does, and decide it by the test point.

Shading each region and stopping

The answer is the overlap. Shade or mark the common region clearly; two separate shadings do not show the solution set.

One test for both lines

Each line needs its own test. The origin can satisfy one inequation and fail the other, so it can be inside one region and outside the other.

Keeping an intercept that breaks another inequation

Every corner must satisfy every inequation. With ≤\le constraints the corner on an axis is usually the nearer intercept; check the farther one before you write it down.

Leaving out x ≥ 0, y ≥ 0 in a word problem

Numbers of articles cannot be negative, so x≥0x \ge 0 and y≥0y \ge 0 are part of the answer. Without them the region is not the one the question wants.

Formulating a Linear Programming Problem

Learn this subtopic in the notes

Maximum profit: limited resources give ≤ constraints

A maximum-profit L.P.P.

Maximize z=px+qy  subject to a1x+b1y≤c1, a2x+b2y≤c2, x≥0, y≥0\text{Maximize } z = px + qy \ \text{ subject to } a_1x + b_1y \le c_1,\ a_2x + b_2y \le c_2,\ x \ge 0,\ y \ge 0
  • p,qp, qprofit on one unit of each item
  • a1,b1a_1, b_1amount of the first resource used by one unit of each item
  • c1c_1amount of the first resource available

Minimum cost: requirements give ≥ constraints

A minimum-cost L.P.P.

Minimize z=px+qy  subject to a1x+b1y≥c1, a2x+b2y≥c2, x≥0, y≥0\text{Minimize } z = px + qy \ \text{ subject to } a_1x + b_1y \ge c_1,\ a_2x + b_2y \ge c_2,\ x \ge 0,\ y \ge 0
  • p,qp, qcost of one unit of each food
  • a1,b1a_1, b_1units of the first nutrient in one unit of each food
  • c1c_1minimum requirement of the first nutrient

Formulate and solve: the full board answer

Order of a full answer

L.P.P.→feasible region→corner points→z at each corner→answer in words\text{L.P.P.} \to \text{feasible region} \to \text{corner points} \to z \text{ at each corner} \to \text{answer in words}

The parts of a linear programming problem

PartWhat the textbook saysIn a profit problem
Decision variablesThe variables involved in the L.P.P.xx, yy = numbers of items A and B made
Objective functionA linear function of the variables which is to be maximized or minimizedz=30x+20yz = 30x + 20y, the total profit in RsQ
The Miscellaneous Exercise asks this as an MCQ: the objective function is the function to be maximized or minimized, not a constraint.
ConstraintsConditions under which the objective function is optimized, written as equations or inequationsMachine hours or raw material used, at most what is available
Non-negativity constraintsx≥0x \ge 0, y≥0y \ge 0Numbers of items made cannot be negative
Write all four in a formulation: 'Let x and y be ...', the objective function, the constraints, and x ≥ 0, y ≥ 0.

Common traps

Calling a constraint the objective

The objective function is the one quantity to be maximized or minimized (profit, cost, distance). The inequations are the constraints, not the objective.

Not saying what x and y stand for

Start with 'Let x be the number of ... and y the number of ...'. Without this line the inequations have no meaning and the first mark is lost.

Mixing hours and minutes

If each item takes minutes and the machine is free for hours, change the hours into minutes first (3 hours = 180 minutes). A constraint with minutes on one side and hours on the other is wrong.

Reading the table the wrong way round

The coefficient of xx in every constraint comes from item A's column, the coefficient of yy from item B's. Write which letter stands for which item before reading off the numbers.

Writing ≤ for 'at least'

'At least 14 units' means 14 or more, so the constraint is ≥14\ge 14. Read each phrase: 'at least' and 'minimum' give ≥\ge, 'at most' and 'not more than' give ≤\le.

Maximizing a cost

A cost is minimized and a profit is maximized. With all constraints of the '≥' kind, 'maximize the cost' has no finite answer, which is a sign the objective is the wrong way round.

Stopping at the formulation

'Find the number of units' or 'find the minimum cost' asks for the solution too: the graph, the corners, the table of zz and the answer. The formulation alone earns only part of the marks.

No final sentence

End by answering the question asked, in words and with units: 'make 4 pots and 8 vases a day; the maximum profit is Rs 400', not just 'z=400z = 400'.

Solving an L.P.P. by the Graphical Method

Learn this subtopic in the notes

Corner-point method: the maximum

Corner-point method for a maximum

zmax⁡=max⁡{ z(O), z(A), z(B), z(C), …}  over the vertices of the feasible regionz_{\max} = \max\{\,z(O),\ z(A),\ z(B),\ z(C),\ \ldots\} \ \text{ over the vertices of the feasible region}

The minimum, and regions that are not closed

Corner-point method for a minimum

zmin⁡=min⁡{ z(A), z(B), z(C), …}  over the vertices of the feasible regionz_{\min} = \min\{\,z(A),\ z(B),\ z(C),\ \ldots\} \ \text{ over the vertices of the feasible region}

Special cases: infinitely many optimal solutions and no finite maximum

Two optimal corners

z(A)=z(B)=zopt ⇒ z=zopt at every point of the segment ABz(A) = z(B) = z_{\text{opt}} \ \Rightarrow\ z = z_{\text{opt}} \text{ at every point of the segment } AB

Feasible region, optimal solution and the corner-point theorem

TermWhat the textbook says
Solution of an L.P.P.A set of values of the decision variables which satisfies the conditions of the problem
Feasible solutionA solution which satisfies the given constraints
Feasible regionThe common region determined by all the constraints of the L.P.P.Q
The Miscellaneous Exercise asks this as an MCQ: the feasible region satisfies ALL of the given constraints, not some of them.
Optimal feasible solutionA feasible solution which maximizes or minimizes the objective function as required
Corner-point theoremThe optimum value of the objective function occurs at least at one vertex of the feasible regionQ
In a written answer, one line such as 'by the corner-point theorem, z is optimum at a vertex' justifies the table of corner values.

Common traps

Choosing the vertex farthest from the origin

Distance from the origin decides nothing. Work out zz at every vertex; the largest value of zz gives the maximum, wherever that vertex is.

Testing the centre of the region

The optimum of a linear objective is never found by testing an inside point. The theorem sends you to the vertices.

Stopping at the first good corner

Two corners can be very close in value (21 against 20 in the worked example above). Work out zz at every vertex before you choose.

Keeping the far intercept

With '≤' constraints, an intercept on an axis is a corner only if it satisfies the other constraints, which is usually the nearer one. A far intercept left in the table can give a false maximum.

A table but no graph

'Solve by graphical method' asks for the feasible region drawn, shaded and with its corners labelled. The table of zz alone is not the graphical method.

Taking the nearer intercept for '≥'

With '≥' constraints, the corner on an axis is the intercept that satisfies the other constraint, usually the farther one. Test both intercepts before writing a corner.

Putting the origin in the table

The origin fails every '≥' constraint, so it is not a corner of such a region. A minimum of 0 at the origin is a sign the region was drawn on the wrong side.

Giving one point when two corners tie

When two corners give the same best value, write 'at every point of the segment joining them'. Naming only one corner leaves the answer incomplete.

A maximum from the table on an unbounded region

On an unbounded region the largest value in the corner table is not a maximum: zz grows without limit. Decide first whether the region is closed.

More MH HSC 12 Mathematics formula sheets