Greatest and least values of an expression

Greatest and least values of an expression

Secondary 3

This is an extension; it uses only the inequality skills of this unit. If \(x\) and \(y\) each lie in a range, an expression in \(x\) and \(y\) also has a greatest and a least value. Choose the value of each variable that pushes the expression the right way, one term at a time.

ExpressionGreatest valueLeast value
\(x+y\)largest \(x\), largest \(y\)smallest \(x\), smallest \(y\)
\(x-y\)largest \(x\), smallest \(y\)smallest \(x\), largest \(y\)
\(x^2\)the end value furthest from \(0\)\(0\) if the range contains \(0\); otherwise the end value nearest \(0\)

Subtracting \(y\) means a smaller \(y\) gives a larger result: \(5-1=4\) but \(5-3=2\). A square is never negative, so \(x^2\) is least where \(x\) is closest to \(0\):

For \(-3\le x\le2\), \(x^2\) is least at \(x=0\) and greatest at \(x=-3\), not at the right-hand end \(x=2\).

Method: write down the allowed values (for integers, a strict bound gives the last integer: \(y<4\) gives \(y\le3\)); decide for each term whether it should be as large or as small as possible; for squares and products, check \(0\) and both ends; for a quotient, check the signs and never use a zero denominator; substitute and evaluate.

Example

\(x\) and \(y\) are integers with \(-3\le x\le2\) and \(1\le y<4\). Find (a) the greatest value of \(x-y\), (b) the least value of \(x^2-y\), (c) the least value of \(xy\), (d) the least value of \(\dfrac{x}{y}\).

Here \(y\) can be \(1\), \(2\) or \(3\).

(a) Largest \(x\), smallest \(y\): \(2-1=1\).

(b) The least \(x^2\) is \(0\), at \(x=0\); the largest \(y\) is \(3\): \(0-3=-3\).

(c) \(xy\) is least when it is as negative as possible: \(x=-3\) and \(y=3\) give \(-9\).

(d) \(y\) is always positive, so \(\dfrac{x}{y}\) has the sign of \(x\). It is most negative when \(x\) is the most negative value and the positive divisor is as small as possible: \(x=-3\) and \(y=1\) give \(-3\). (Dividing \(-3\) by \(y=3\) gives only \(-1\).)

Common error: taking the least value of \(x^2\) at the smallest \(x\). With \(x=-3\), \(x^2=9\), which is the greatest value of \(x^2\), not the least.

Need help? Join our E-Maths tuition for O-Level success.

Learn more