How to use it
- One inequality per row, in x and y, as you would write it on paper:
x + y <= 8,2x + y <= 12. Type<=for ≤ and>=for ≥; the signs themselves work too. Implied multiplication works, so2xand3(x + y)are fine, and so are fractions such asx/2 + y <= 3. - Bounds such as x ≥ 0 are rows of their own. A double inequality,
0 <= x <= 4, is two rows. - The objective function is an expression in x and y, with or without a letter in front:
3x + 2yorz = 3x + 2y. - Choose largest or smallest value. The address bar holds the rows, the objective and the choice, so a link opens the same problem again.
The corner method
Each inequality is bounded by a straight line, and the region that satisfies all of them is a polygon, or a region that continues without end. The calculator intersects the boundary lines two at a time. A point where two lines meet and every inequality holds is a corner of the region; a point that breaks one of the inequalities is outside, and the working shows which row it breaks and by how much.
Then the objective function is evaluated at every corner, and the largest or smallest value is the answer. This rests on the corner theorem: on a bounded region, a linear function takes its largest and its smallest value at a corner.
Worked example
x ≥ 0, y ≥ 0, x + y ≤ 8 and 2x + y ≤ 12, largest value of z = 3x + 2y.
The lines x = 0 and x + y = 8 meet at (0, 8), which satisfies 2x + y ≤ 12: a corner. The lines x + y = 8 and 2x + y = 12 meet where x = 4 and y = 4: a corner. The lines y = 0 and 2x + y = 12 meet at (6, 0): a corner. (0, 0) is the fourth. The points (0, 12) and (8, 0) break a row each.
At the corners z is 0, 18, 20 and 16, so the largest value is z = 20, at (4, 4).
When there is no single answer
A tie along an edge. When the objective takes the same value at two neighbouring corners, every point of the edge between them gives that value too. The calculator names both corners.
No largest value. A region that continues without end can let the objective grow forever, as x + y ≥ 4 and x + 3y ≥ 6 do for 2x + 3y. The smallest value still exists there (9, at (3, 1)), and the calculator says in which direction the region runs off.
No region. x + y ≤ 2 and x + y ≥ 4 cannot hold together; no point satisfies every row, and there is nothing to optimise.
Strict inequalities (< and >) leave their boundary line out of the region. When the best corner lies on such a line, the objective comes as close to its value as you like without reaching it.