035Mathematics · Algebra

Greatest and Least Values of a Quadratic on a Closed Interval

Greatest and Least Values of a Quadratic on a Closed Interval

Maximum and minimum of ax² + bx + c on L ≤ x ≤ U, with every x where each is reached.

  • 136 bytes
  • COMP mode
01

Worked examples

Example 1

Let f(x) = x² − 6x + 13, where 0 ≤ x ≤ 8. Find the greatest and least values of f(x), and give every x at which each is reached.

Answer
Greatest value 29, at x = 8; least value 4, at x = 3
Standard solution (without a calculator)
  1. Find the vertex: completing the square gives f(x) = (x − 3)² + 4. The parabola opens upwards and the vertex x = 3 lies in [0, 8], so the least value is 4.
  2. Compare the ends: f(0) = 13 and f(8) = 64 − 48 + 13 = 29. The square grows with the distance from x = 3, so the greatest value is at the farther end, x = 8.
  3. Write the full answer: greatest value 29 at x = 8; least value 4 at x = 3. The six screens are 29, 8, 8, 4, 3, 3; a repeated x means a single place.
Do it on the calculator

Example 2

The temperature T (°C) of an experiment t hours after it starts is T = −2t² + 12t + 5. Only the period 1 ≤ t ≤ 5 is studied. Find the highest and lowest temperatures in this period, and give every time at which each occurs.

Answer
Highest 23 °C, at t = 3 hours; lowest 15 °C, at t = 1 and t = 5 hours
Standard solution (without a calculator)
  1. Complete the square: T = −2(t − 3)² + 23. The graph opens downwards and the vertex t = 3 lies in [1, 5], so the highest temperature is 23 °C.
  2. Check the ends: T(1) = −2 + 12 + 5 = 15 and T(5) = −50 + 60 + 5 = 15. Both ends are equally far from t = 3, so the lowest temperature occurs at t = 1 and at t = 5.
  3. Do not miss a time: highest 23 °C at t = 3; lowest 15 °C at t = 1 or 5. At every other time in the period the temperature is above 15 °C. Taking t as x, the program shows 23, 3, 3, 15, 1, 5.
Do it on the calculator

Example 3

A sensor reading S at position x is S = 2x² − 16x + 35, and the instrument works only for 5 ≤ x ≤ 7. What are the least and the greatest readings on this interval?
A. 3 and 21
B. 5 and 21
C. 5 and 35
D. 3 and 35

Answer
B least 5 at x = 5; greatest 21 at x = 7
Standard solution (without a calculator)
  1. Can the vertex be used? S = 2(x − 4)² + 3. The vertex is at x = 4, but the instrument works only on [5, 7], so the reading 3 cannot be reached there.
  2. Compare the ends that can be reached: on [5, 7], x − 4 grows from 1 to 3 and so does its square. S(5) = 50 − 80 + 35 = 5 and S(7) = 98 − 112 + 35 = 21.
  3. Match the options: the least and greatest readings are 5 and 21, answer B. The program gives the maximum first — 21, 7, 7, 5, 5, 5 — and the question asks for the least first, so pair the 4th screen with the 1st.
Do it on the calculator
02

When to use it

A quadratic function is continuous, so on a closed interval L ≤ x ≤ U it always has a greatest and a least value, reached only at the ends or at the vertex −b/(2a) when it lies inside. DSE questions on the vertex and symmetry often add a range for x or t. 035 takes a, b, c, L and U and always shows six values: the maximum and two x, then the minimum and two x. Two equal x mean a single place; two different x mean the value is reached at exactly these two ends, not at every x in between. Remember: “maximum, two x; minimum, two x”.

What it is for

  • Quadratic functions with real coefficients, a ≠ 0
  • Closed intervals L ≤ x ≤ U, including L = U
  • Greatest and least values, with every place where each is reached

What you enter

  • A, B, C: a, b, c with their signs; 0 for a missing term
  • X: the left end L; Y: the right end U
  • Negative numbers with the (−) key

What it shows

  • The maximum, then its smaller and larger x
  • The minimum, then its smaller and larger x — the 6th value ends the program
  • The same x twice means a single place

Check before use

  • The example uses an empty P1; the set-up keys MODE 6 → 3 → 1 clear P1. If P1 holds a program you need, use another empty area: MODE 6 → 1 (EDIT) → area number → 1 (COMP), and AC after entering.
  • Only quadratic functions with known real coefficients: a must not be 0. a = 0 or L > U gives Math ERROR before any result.
  • Closed intervals L ≤ x ≤ U only; L = U is allowed. Open or half-open intervals and whole-number-only x are not handled.
  • Enter a, b, c, L, U at A?, B?, C?, X?, Y?: X? is the left end and Y? the right end. Press EXE after each and use (−) for negatives; enter 0 for a missing x term or constant.
  • The results always come in the order maximum, x₁, x₂, minimum, x₁, x₂. While Disp is lit, press EXE for the next; the 6th value ends the program, and another EXE starts a new run.
  • Enter all five values for a new question. A, B, C, X and Y keep their inputs after a normal run, and a blank EXE reuses the current value. D and M are changed and Norm 1 is set; the program does not depend on the old Ans or the angle unit.
  • The numbers must be within the calculator’s range, with enough significant digits to tell the values apart. There is no arbitrary precision: if the two ends differ only around the 13th digit, or large positive and negative terms cancel to a small answer, the result may be wrong without any error message.
  • Known failures: x² on [−1, 1.0000000000001] may be judged equally high at both ends; for x² − 20000000x + 100000000000001 on [9999999, 10000001] the true minimum is 1 and the maximum 2, but the program shows 0 for both. Check such data with exact algebra or a high-precision tool.
  • A large constant can make the maximum and minimum look equal on the 10-digit screen: for x² + 10¹³ on [0, 1] the places are still 1 and 0, but both values may show as 10¹³. Equal values on the screen do not prove that the function is constant.

Sign in to unlock the full programme

Checking access…

The programme code and appendix unlock together.

Checking access…

Sign in to unlock the full programme

Checking access…

The programme code and appendix unlock together.