Skip to content

Extremum problems on a closed and an open interval

Extremum problems on a closed and an open interval

The greatest and the least value

On a closed interval a≤x≤b\displaystyle a\leq x\leq b, a continuous function takes a greatest value and a least value, and each of them is at one of two kinds of places:

  • at a point inside the interval where f′(x)=0\displaystyle {f'(x)}={0}, or where the derivative is not defined;
  • at one of the ends of the interval, x=a\displaystyle {x}={a} or x=b\displaystyle {x}={b} – an extremum at an end.

So you work out the values at all these points and compare them; no table of signs is needed.

An open interval has no ends to check, and the function may have no greatest or no least value there: it can approach a value without reaching it. There you decide the kind of each point by a table of signs of f′\displaystyle f', and look at what the function does near the ends of the interval.

Example: a closed and an open interval

The example below finds the greatest and the least value of f(x)=xx2+4\displaystyle {f(x)}={\frac{x}{x^2+4}}, first on the interval 0≤x≤5\displaystyle 0\leq x\leq5 and then on the interval x>0\displaystyle x>0.

  • f′(x)=1⋅(x2+4)−x⋅2x(x2+4)2=4−x2(x2+4)2\displaystyle {f'(x)}={\frac{1\cdot(x^2+4)-x\cdot2x}{(x^2+4)^2}}={\frac{4-x^2}{(x^2+4)^2}}.
  • f′(x)=0\displaystyle {f'(x)}={0} where x=2\displaystyle {x}={2} or x=−2\displaystyle {x}={-2}; only x=2\displaystyle {x}={2} is in the interval.
  • The values: f(2)=28=14\displaystyle {f(2)}={\frac{2}{8}}={\frac{1}{4}}, f(0)=0\displaystyle {f(0)}={0}, f(5)=529\displaystyle {f(5)}={\frac{5}{29}}.
f(x)=xx2+4\displaystyle f(x)=\frac{x}{x^{2}+4}
M=(2,0.25)\displaystyle M=(2,0.25)
A=(0,0)\displaystyle A=(0,0)
E=(5,0.1724)\displaystyle E=(5,0.1724)

On the closed interval 0≤x≤5\displaystyle 0\leq x\leq5:

  • the greatest value is 14\displaystyle \frac{1}{4}, at x=2\displaystyle {x}={2};
  • the least value is 0, at x=0\displaystyle {x}={0} – an extremum at an end.

On the open interval x>0\displaystyle x>0:

  • the greatest value is still 14\displaystyle \frac{1}{4}: the function rises up to x=2\displaystyle {x}={2} and falls after it;
  • there is no least value: the function is positive, and as x\displaystyle x approaches 0 or grows without end it approaches 0 – but never reaches it.
Example: the scouts’ camps

Two tent camps are on sandy ground, on one side of a straight road.
Camp A\displaystyle A is 2 km from the road, and camp B\displaystyle B is 1 km from the road.
C\displaystyle C is the point of the road nearest to A\displaystyle A, and D\displaystyle D the point nearest to B\displaystyle B; CD=1.5\displaystyle {CD}={1.5} km.
The leaders’ car stops at a point P\displaystyle P between C\displaystyle C and D\displaystyle D.
The pupils run from A\displaystyle A to the car, and from there to B\displaystyle B – in straight lines, on the sand only.
Where should the car stop to make the run as short as possible? And where to make it as long as possible? ABCDP21x

The solution below writes CP=x\displaystyle {CP}={x}, expresses the length of the run by x\displaystyle x, and compares the point where the derivative is 0 with the ends of the interval.

  • The interval is closed: 0≤x≤1.5\displaystyle 0\leq x\leq1.5.
  • By Pythagoras’ theorem: AP=x2+4\displaystyle {AP}={\sqrt{x^2+4}}, PB=(1.5−x)2+1\displaystyle {PB}={\sqrt{(1.5-x)^2+1}}, so L(x)=x2+4+(1.5−x)2+1\displaystyle {L(x)}={\sqrt{x^2+4}+\sqrt{(1.5-x)^2+1}}.
  • L′(x)=xx2+4−1.5−x(1.5−x)2+1\displaystyle {L'(x)}={\frac{x}{\sqrt{x^2+4}}-\frac{1.5-x}{\sqrt{(1.5-x)^2+1}}}.
  • L′(x)=0\displaystyle {L'(x)}={0}: xx2+4=1.5−x(1.5−x)2+1\displaystyle {\frac{x}{\sqrt{x^2+4}}}={\frac{1.5-x}{\sqrt{(1.5-x)^2+1}}}. In the interval both sides are not negative, so squaring is allowed: x2[(1.5−x)2+1]=(1.5−x)2(x2+4)\displaystyle {x^2\left[(1.5-x)^2+1\right]}={(1.5-x)^2(x^2+4)}.
  • After expanding and cancelling, x2=4(1.5−x)2\displaystyle {x^2}={4(1.5-x)^2} is left, that is x=2(1.5−x)\displaystyle {x}={2(1.5-x)}, and x=1\displaystyle {x}={1}. (The other possibility, x=−2(1.5−x)\displaystyle {x}={-2(1.5-x)}, gives x=3\displaystyle {x}={3}, outside the interval.)
  • The values: L(1)=5+1.25≈3.354\displaystyle {L(1)}={\sqrt{5}+\sqrt{1.25}\approx3.354}; L(0)=2+3.25≈3.803\displaystyle {L(0)}={2+\sqrt{3.25}\approx3.803}; L(1.5)=6.25+1=3.5\displaystyle {L(1.5)}={\sqrt{6.25}+1}={3.5}.
L(x)=x2+4+(1.5−x)2+1\displaystyle L(x)=\sqrt{x^{2}+4}+\sqrt{(1.5-x)^{2}+1}
x=1.5\displaystyle x=1.5
S=(1,3.354)\displaystyle S=(1,3.354)
C=(0,3.803)\displaystyle C=(0,3.803)
D=(1.5,3.5)\displaystyle D=(1.5,3.5)
  • The shortest run: the car stops 1 km from C\displaystyle C, and the run is about 3.35 km.
  • The longest run: the car stops at C\displaystyle C itself, and the run is about 3.80 km – an extremum at an end of the interval. At x=1\displaystyle {x}={1} the derivative is 0, but that is a minimum point; the maximum is found only by comparing with the ends.
Exercise 1

The function f(x)=x−x4\displaystyle {f(x)}={\sqrt{x}-\frac{x}{4}} is defined on the interval 0≤x≤9\displaystyle 0\leq x\leq9.

a

Find f′(x)\displaystyle f'(x).

f(x)=x−x4\displaystyle f(x)=\sqrt{x}-\frac{x}{4}

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

    b

    Solve the equation f′(x)=0\displaystyle {f'(x)}={0}.

      c

      Work out the values of the function at the point you found and at both ends of the interval – a card for each value.

      At the point you found

      f(x)=x−x4\displaystyle f(x)=\sqrt{x}-\frac{x}{4}

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

        f(0)\displaystyle f(0)

        f(x)=x−x4\displaystyle f(x)=\sqrt{x}-\frac{x}{4}

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

          f(9)\displaystyle f(9)

          f(x)=x−x4\displaystyle f(x)=\sqrt{x}-\frac{x}{4}

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

            d

            What is the greatest value of f\displaystyle f on the interval, and what is the least?
            Which of them is an extremum at an end?

            The greatest value

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

              The least value

                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                Exercise 2

                The function f(x)=x2+3x−1\displaystyle {f(x)}={\frac{x^2+3}{x-1}} is defined on the open interval x>1\displaystyle x>1.

                a

                Find f′(x)\displaystyle f'(x).

                f(x)=x2+3x−1\displaystyle f(x)=\frac{x^{2}+3}{x-1}

                  / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                  / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                  b

                  Solve the equation f′(x)=0\displaystyle {f'(x)}={0}.

                    c

                    Which solution of the equation is in the interval?
                    Make a table of signs of f′\displaystyle f' in the interval, and find the least value of f\displaystyle f.
                    Does f\displaystyle f have a greatest value in the interval? Explain by what the function does near x=1\displaystyle {x}={1}.

                    The solution in the interval

                      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                      The least value

                        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                        Exercise 3

                        P\displaystyle P is a point on the graph of y=4x\displaystyle {y}={\frac{4}{x}}, with x>0\displaystyle x>0.
                        You are looking for the point P\displaystyle P nearest to the origin.

                        a

                        Show that the distance from P\displaystyle P to the origin is d(x)=x2+16x2\displaystyle {d(x)}={\sqrt{x^2+\frac{16}{x^2}}}.
                        Explain why it is enough to find the minimum of the expression under the root, x2+16x2\displaystyle x^2+\frac{16}{x^2}, and find its derivative.

                        b

                        Solve the equation that makes the derivative 0 (it has been divided by 2).

                          c

                          Work out the shortest distance.

                          d(x)=x2+16x2\displaystyle d(x)=\sqrt{x^{2}+\frac{16}{x^{2}}}

                            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                            d

                            Write the point P\displaystyle P nearest to the origin.
                            Which solution of the equation did you reject, and why?

                            Exercise 4

                            Two villages, A\displaystyle A and B\displaystyle B, are on one side of a straight road.
                            A\displaystyle A is 3 km from the road, and B\displaystyle B is 1 km from it.
                            C\displaystyle C and D\displaystyle D are the points of the road nearest to A\displaystyle A and to B\displaystyle B; CD=4\displaystyle {CD}={4} km.
                            A pumping station is built at a point P\displaystyle P of the road, between C\displaystyle C and D\displaystyle D, with a straight pipe from it to each village.
                            x\displaystyle x – the distance CP\displaystyle CP, in kilometres.

                            a

                            Show that the length of the two pipes together is L(x)=x2+9+(4−x)2+1\displaystyle {L(x)}={\sqrt{x^2+9}+\sqrt{(4-x)^2+1}}.
                            What is the interval of x\displaystyle x?

                            b

                            L′(x)=xx2+9−4−x(4−x)2+1\displaystyle {L'(x)}={\frac{x}{\sqrt{x^2+9}}-\frac{4-x}{\sqrt{(4-x)^2+1}}}.
                            Solve the equation L′(x)=0\displaystyle {L'(x)}={0}.

                              c

                              Work out L\displaystyle L at the point you found and at both ends of the interval.

                              At the point you found

                              L(x)=x2+9+(4−x)2+1\displaystyle L(x)=\sqrt{x^{2}+9}+\sqrt{(4-x)^{2}+1}

                                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                                L(0)\displaystyle L(0)

                                L(x)=x2+9+(4−x)2+1\displaystyle L(x)=\sqrt{x^{2}+9}+\sqrt{(4-x)^{2}+1}

                                  / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                                  / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                                  L(4)\displaystyle L(4)

                                  L(x)=x2+9+(4−x)2+1\displaystyle L(x)=\sqrt{x^{2}+9}+\sqrt{(4-x)^{2}+1}

                                    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                                    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                                    d

                                    Where is it best to build the station, and what is the least length of the pipes?
                                    Where is the length greatest?

                                    CP\displaystyle CP for the station

                                      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                                      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power