Question 46 on math from GATE (Graduate Aptitude Test in Engineering) 2012 Electronics and Communication Engineering paper.

## Q46. The maximum value of in the interval [1, 6] is

(A) 21

(B) 25

(C) 41

(D) 46

## Solution

Let us start by finding the critical points of the function .

The first derivative is,

.

Solving by setting .

.

Taking second derivative, .

At and this corresponds to a local minimum.

At and this corresponds to a local maximum.

The value of the function at these critical points are,

.

Hold on, we are not done yet…

From the wiki entry on **Extereme Value Theorem, **

*In calculus, the extreme value theorem states that if a real-valued function f is continuous in the closed and bounded interval [a,b], then f must attain its maximum and minimum value, each at least once. That is, there exist numbers c and d in [a,b] such that:*

.

Further, from wiki entry on finding maxima and minima,

*If a function is continuous on a closed interval, then by the extreme value theorem global maxima and minima exist. Furthermore, a global maximum (or minimum) either must be a local maximum (or minimum) in the interior of the domain, or must lie on the boundary of the domain. So a method of finding a global maximum (or minimum) is to look at all the local maxima (or minima) in the interior, and also look at the maxima (or minima) of the points on the boundary; and take the biggest (or smallest) one.*

For our example, the function is real valued and is continuous in the closed and bounded interval [1,6].

Finding out the value of the function at the boundaries,

.

So the global maximum of the function in the interval [1, 6] is and it occurs at the boundary i.e. x = 6.

**Matlab example**

clear all; close all; x = [1:.1:6]; fx = x.^3 - 9*x.^2 + 24*x + 5; plot(x,fx); xlabel('x'); ylabel('fx'); grid on; axis([1 6 20 45]); title('fx = x^3 - 9x^2 + 24x + 5');

**Figure : Plot of the function in the interval [1,6]**

From the figure, it is relatively easy to observe that the maximum is hit at x=6 (and not at the local maximum point of x=2).

**Based on the above, the right choice is (C) 41. **

## References

[1] GATE Examination Question Papers [Previous Years] from Indian Institute of Technology, Madras http://gate.iitm.ac.in/gateqps/2012/ec.pdf

[2] Wiki entry on Extreme Value Theorem

http://en.wikipedia.org/wiki/Extreme_value_theorem

[3] Wiki entry on Maxima and Minima

http://en.wikipedia.org/wiki/Maxima_and_minima

D id you like this article? Make sure that you do not miss a new article
by subscribing to RSS feed OR subscribing to e-mail newsletter.
* Note: Subscribing via e-mail entitles you to download the free e-Book on BER of BPSK/QPSK/16QAM/16PSK in AWGN.*

{ 0 comments… add one now }