WishWasTraining Academy
NDA & Naval Academy entrance exam school
โ† home
Chapter M5-8 ยท 8 of 8 in Differential Calculus ยท 16 min read

Maxima and minima

61 real NDA questions of this kind in the 19 papers of 2017 to 2026.

Try three questions free โ†“
This chapter has a video lessonWatch it, practise with a drill and keep your record, all with a free account. No fee, no card.

Why this lesson matters. This chapter drew 20 questions in the seven papers from NDA II 2023 to NDA II 2026, and at least two in every paper. The exam asks where a function has a local maximum or minimum, what the greatest or least value of an expression is, and which of two or three statements about โ€‹f'โ€‹ and โ€‹f''โ€‹ are correct. Several of these need no calculus at all, only the fact that a square is never negative. Six real questions are solved in section 9.

What you will be able to do

  • Find the local maxima and minima of a function with the first or the second derivative test.
  • Find the greatest and least values of a function on a closed interval.
  • Find a maximum or minimum without calculus, where a shorter way exists.
  • Turn a word problem into a function of one variable and find its maximum or minimum.

Before you start you should know: the rules of differentiation and second order derivatives (Chapter M5-6), and the sign line for โ€‹f'(x)โ€‹ (Chapter M5-7).

1. Local maximum and local minimum

A function has a local maximum at โ€‹x = cโ€‹ if โ€‹f(c)โ€‹ is greater than the values at all nearby points. It has a local minimum at โ€‹x = cโ€‹ if โ€‹f(c)โ€‹ is less than the values at all nearby points.

On the graph: a local maximum is a hill top and a local minimum is a valley bottom. A graph can have several hills and valleys, so a local maximum need not be the greatest value of the function.

The curve y = x cubed - 3x + 2 with a local maximum at x = -1, value 4, a local minimum at x = 1, value 0, and the sign line of its derivative: plus, minus, plus

This curve is worked out in Example 1.

Keep two things apart:

  • the point of maximum is the value of โ€‹xโ€‹, here โ€‹cโ€‹;
  • the maximum value is the value of the function there, โ€‹f(c)โ€‹.

Read the question to see which one is asked.

2. Where to look: critical points

At a hill top or a valley bottom of a smooth curve the tangent is flat. So at a local maximum or minimum of a differentiable function,

f'(c) = 0

The points where โ€‹f'(x) = 0โ€‹, or where โ€‹f'(x)โ€‹ does not exist, are called critical points. A maximum or minimum inside an interval can occur only at a critical point. But not every critical point is a maximum or a minimum, so each one must be tested.

A corner can also be a maximum or minimum: โ€‹|x|โ€‹ has its minimum at โ€‹x = 0โ€‹, where it has no derivative.

3. The first derivative test

Look at the sign of โ€‹f'(x)โ€‹ just to the left and just to the right of the critical point โ€‹cโ€‹.

Sign of โ€‹f'(x)โ€‹ as โ€‹xโ€‹ increases through โ€‹cโ€‹ At โ€‹x = cโ€‹ there is
Changes from โ€‹+โ€‹ to โ€‹-โ€‹ (up, then down) a local maximum
Changes from โ€‹-โ€‹ to โ€‹+โ€‹ (down, then up) a local minimum
Does not change neither

The standard example of "neither" is โ€‹f(x) = x^3โ€‹ at โ€‹x = 0โ€‹: โ€‹f'(0) = 0โ€‹, but โ€‹f'(x) = 3x^2โ€‹ is positive on both sides.

4. The second derivative test

This test is usually faster. Let โ€‹f'(c) = 0โ€‹.

If Then at โ€‹x = cโ€‹ there is
โ€‹f''(c) < 0โ€‹ a local maximum
โ€‹f''(c) > 0โ€‹ a local minimum
โ€‹f''(c) = 0โ€‹ no conclusion: use the first derivative test

To remember it: at a hill top the slope is going from positive to negative, so the slope is decreasing and โ€‹f''โ€‹ is negative.

Three curves with a flat tangent: a cap with second derivative negative, a maximum; a cup with second derivative positive, a minimum; and x cubed with second derivative zero, neither

5. Greatest and least values on a closed interval

A continuous function on a closed interval โ€‹[a, b]โ€‹ always has a greatest value and a least value. Each occurs either at a critical point inside the interval or at an end point. So:

  1. Find the critical points in โ€‹(a, b)โ€‹.
  2. Work out โ€‹fโ€‹ at each critical point and at the two end points โ€‹aโ€‹ and โ€‹bโ€‹.
  3. The biggest of these numbers is the greatest value. The smallest is the least value.

No second derivative is needed here.

On an open interval a function may have no greatest or least value. For โ€‹f(x) = xโ€‹ on โ€‹(-1, 1)โ€‹ the values come as close to 1 as we like but never reach it.

The line y = x between x = -1 and x = 1 with open circles at both ends

6. Maxima and minima without calculus

Many exam questions are faster without differentiating.

Tool What it gives Example
Complete the square โ€‹(x - h)^2 + kโ€‹ has least value โ€‹kโ€‹, at โ€‹x = hโ€‹ โ€‹x^2 - 4x + 7 = (x - 2)^2 + 3โ€‹: least value 3
Sine and cosine together โ€‹a\sin x + b\cos xโ€‹ lies from โ€‹-\sqrt{a^2 + b^2}โ€‹ to โ€‹\sqrt{a^2 + b^2}โ€‹ โ€‹3\sin x + 4\cos xโ€‹: greatest value 5
A square is never negative โ€‹(p - q)^2 \ge 0โ€‹, so โ€‹2pq \le p^2 + q^2โ€‹ If โ€‹p^2 + q^2 = 64โ€‹, then โ€‹pq \le 32โ€‹
Two positive numbers with a fixed sum Their product is greatest when they are equal Sum 20: greatest product โ€‹10 \times 10 = 100โ€‹
Two positive numbers with a fixed product Their sum is least when they are equal Product 36: least sum โ€‹6 + 6 = 12โ€‹

7. Word problems in four steps

  1. Name the quantity to be made greatest or least, and write a formula for it.
  2. Use the condition in the question to write the formula in one variable.
  3. Differentiate, put the derivative equal to 0, and solve.
  4. Check that it is a maximum or a minimum (the sign of the second derivative is enough), and answer what was asked: the point or the value.

8. Worked examples

Example 1 (second derivative test). Find the local maximum and minimum values of โ€‹f(x) = x^3 - 3x + 2โ€‹.

โ€‹f'(x) = 3x^2 - 3 = 3(x - 1)(x + 1)โ€‹, zero at โ€‹x = -1โ€‹ and โ€‹x = 1โ€‹. โ€‹f''(x) = 6xโ€‹.

At โ€‹x = -1โ€‹: โ€‹f'' = -6 < 0โ€‹, a local maximum. The value is โ€‹f(-1) = -1 + 3 + 2 = 4โ€‹.

At โ€‹x = 1โ€‹: โ€‹f'' = 6 > 0โ€‹, a local minimum. The value is โ€‹f(1) = 1 - 3 + 2 = 0โ€‹.

Example 2 (closed interval). Find the greatest and least values of โ€‹f(x) = 2x^3 - 3x^2 - 12x + 5โ€‹ on โ€‹[-2, 4]โ€‹.

โ€‹f'(x) = 6x^2 - 6x - 12 = 6(x - 2)(x + 1)โ€‹. The critical points are โ€‹x = -1โ€‹ and โ€‹x = 2โ€‹, both inside the interval.

โ€‹xโ€‹ โ€‹-2โ€‹ โ€‹-1โ€‹ โ€‹2โ€‹ โ€‹4โ€‹
โ€‹f(x)โ€‹ โ€‹1โ€‹ โ€‹12โ€‹ โ€‹-15โ€‹ โ€‹37โ€‹

The greatest value is 37, at the end point โ€‹x = 4โ€‹. The least value is โ€‹-15โ€‹, at โ€‹x = 2โ€‹.

The curve of Example 2 between x = -2 and x = 4, with the values 1, 12, -15 and 37 marked: the highest point is the right end, the lowest is the valley at x = 2

Example 3 (a fraction). Find the least value of โ€‹f(x) = x + \dfrac{4}{x}โ€‹ for โ€‹x > 0โ€‹.

โ€‹f'(x) = 1 - \dfrac{4}{x^2}โ€‹, which is zero when โ€‹x^2 = 4โ€‹, so โ€‹x = 2โ€‹ (as โ€‹x > 0โ€‹). โ€‹f''(x) = \dfrac{8}{x^3}โ€‹, positive at โ€‹x = 2โ€‹: a minimum. The least value is โ€‹f(2) = 2 + 2 = 4โ€‹.

Without calculus: โ€‹xโ€‹ and โ€‹\dfrac{4}{x}โ€‹ are positive numbers with fixed product 4, so their sum is least when they are equal, โ€‹x = 2โ€‹.

The curve y = x + 4 over x for positive x, with its lowest point at (2, 4) and a flat tangent there

Example 4 (word problem). The sum of two positive numbers is 20. Find the numbers if their product is as great as possible.

Let one number be โ€‹xโ€‹. The other is โ€‹20 - xโ€‹, and the product is โ€‹P = x(20 - x) = 20x - x^2โ€‹.

โ€‹\dfrac{dP}{dx} = 20 - 2x = 0โ€‹ gives โ€‹x = 10โ€‹. โ€‹\dfrac{d^2P}{dx^2} = -2 < 0โ€‹, so it is a maximum.

The numbers are 10 and 10, and the greatest product is 100.

The same method answers a question on area. A wire of length 20 cm is bent into a rectangle with sides โ€‹xโ€‹ and โ€‹10 - xโ€‹. Its area is โ€‹A = x(10 - x)โ€‹, and โ€‹\dfrac{dA}{dx} = 10 - 2x = 0โ€‹ gives โ€‹x = 5โ€‹. The largest rectangle is the square, with area 25 square cm.

The area A = x times (10 - x) of a rectangle with perimeter 20, drawn against the side x: an arch with its highest point at x = 5, area 25; the level 27 is never reached

Example 5 (no calculus). Find the greatest and least values of โ€‹3\sin x + 4\cos xโ€‹.

โ€‹\sqrt{3^2 + 4^2} = 5โ€‹. The greatest value is 5 and the least value is โ€‹-5โ€‹.

9. From the real papers

These six questions are from the Mathematics papers of NDA & NAVAC from 2023 to 2026. Try each for 75 seconds before reading the solution.

NDA II 2023, Q48. Given that โ€‹4x^2 + y^2 = 9โ€‹. What is the maximum value of โ€‹xyโ€‹?

(a) โ€‹\frac{9}{4}โ€‹โ€ƒโ€ƒ(b) โ€‹\frac{3}{2}โ€‹โ€ƒโ€ƒ(c) โ€‹\frac{4}{9}โ€‹โ€ƒโ€ƒ(d) โ€‹\frac{2}{3}โ€‹

Solution. A square is never negative: โ€‹(2x - y)^2 \ge 0โ€‹ gives โ€‹4xy \le 4x^2 + y^2 = 9โ€‹. So โ€‹xy \le \dfrac{9}{4}โ€‹, and this value is reached when โ€‹y = 2xโ€‹. Answer (a).

NDA I 2024, Q84. Let โ€‹f(x) = \frac{x}{\ln x}โ€‹; โ€‹(x > 1)โ€‹ Consider the following statements : 1. โ€‹f''(e) = \frac{1}{e}โ€‹ 2. โ€‹f(x)โ€‹ attains local minimum value at โ€‹x = eโ€‹ 3. A local minimum value of โ€‹f(x)โ€‹ is โ€‹eโ€‹ Which of the statements given above are correct?

(a) 1 and 2 onlyโ€ƒโ€ƒ(b) 2 and 3 onlyโ€ƒโ€ƒ(c) 1 and 3 onlyโ€ƒโ€ƒ(d) 1, 2 and 3

Solution. โ€‹f'(x) = \dfrac{\ln x - 1}{(\ln x)^2} = \dfrac{1}{\ln x} - \dfrac{1}{(\ln x)^2}โ€‹, zero at โ€‹x = eโ€‹. Differentiate again: โ€‹f''(x) = -\dfrac{1}{x(\ln x)^2} + \dfrac{2}{x(\ln x)^3}โ€‹. At โ€‹x = eโ€‹, โ€‹\ln e = 1โ€‹, so โ€‹f''(e) = -\dfrac{1}{e} + \dfrac{2}{e} = \dfrac{1}{e}โ€‹: 1 is correct. Since โ€‹f'(e) = 0โ€‹ and โ€‹f''(e) > 0โ€‹, there is a local minimum at โ€‹x = eโ€‹: 2 is correct. Its value is โ€‹f(e) = \dfrac{e}{1} = eโ€‹: 3 is correct. Answer (d).

NDA I 2025, Q74. Let โ€‹ABCโ€‹ be a triangle right-angled at โ€‹Bโ€‹ and โ€‹AB + AC = 3โ€‹ units. What is the maximum area of the triangle?

(a) โ€‹\sqrt{3}/2โ€‹ square unitโ€ƒโ€ƒ(b) โ€‹\sqrt{3}โ€‹ square unitsโ€ƒโ€ƒ(c) โ€‹\sqrt{6}/2โ€‹ square unitsโ€ƒโ€ƒ(d) โ€‹\sqrt{6}โ€‹ square units

Solution. โ€‹ACโ€‹ is the hypotenuse. Let โ€‹AB = cโ€‹, so โ€‹AC = 3 - cโ€‹ and โ€‹BC^2 = (3 - c)^2 - c^2 = 9 - 6cโ€‹. The area is โ€‹\dfrac{1}{2} \cdot AB \cdot BCโ€‹, so its square is โ€‹\dfrac{1}{4}c^2(9 - 6c) = \dfrac{1}{4}(9c^2 - 6c^3)โ€‹. The area is greatest when its square is greatest. The derivative of โ€‹9c^2 - 6c^3โ€‹ is โ€‹18c - 18c^2โ€‹, zero at โ€‹c = 1โ€‹, where it changes from positive to negative: a maximum. Then โ€‹AB = 1โ€‹, โ€‹BC = \sqrt{3}โ€‹ and the area is โ€‹\dfrac{\sqrt{3}}{2}โ€‹. Answer (a).

NDA II 2025, Q100. Consider the following statements : Statementโ€“I : The function โ€‹f(x) = \frac{x^3 + 128}{x}โ€‹ has a minimum value 48 at โ€‹x = 4โ€‹. Statementโ€“II : As โ€‹xโ€‹ increases through 4, โ€‹f'(x)โ€‹ changes sign from positive to negative. Which one of the following is correct in respect of the above statements?

(a) Both Statementโ€“I and Statementโ€“II are correct and Statementโ€“II explains Statementโ€“Iโ€ƒโ€ƒ(b) Both Statementโ€“I and Statementโ€“II are correct but Statementโ€“II does not explain Statementโ€“Iโ€ƒโ€ƒ(c) Statementโ€“I is correct but Statementโ€“II is not correctโ€ƒโ€ƒ(d) Statementโ€“I is not correct but Statementโ€“II is correct

Solution. Write โ€‹f(x) = x^2 + \dfrac{128}{x}โ€‹. Then โ€‹f'(x) = 2x - \dfrac{128}{x^2}โ€‹, zero when โ€‹x^3 = 64โ€‹, so โ€‹x = 4โ€‹. โ€‹f''(x) = 2 + \dfrac{256}{x^3}โ€‹ and โ€‹f''(4) = 6 > 0โ€‹: a local minimum, with value โ€‹f(4) = 16 + 32 = 48โ€‹. Statement I is correct. At a minimum โ€‹f'โ€‹ changes from negative to positive, not from positive to negative, so Statement II is not correct. Answer (c).

NDA I 2026, Q75. Consider the following statements in respect of the function โ€‹f(x) = xโ€‹ in the interval โ€‹(-1, 1)โ€‹ : I. The function attains maximum value. II. The function attains minimum value. Which of the statements given above is/are correct?

(a) I onlyโ€ƒโ€ƒ(b) II onlyโ€ƒโ€ƒ(c) Both I and IIโ€ƒโ€ƒ(d) Neither I nor II

Solution. The interval is open, so โ€‹-1โ€‹ and โ€‹1โ€‹ are not in it. The values of โ€‹f(x) = xโ€‹ come as close to 1 as we like but never reach 1, so there is no maximum. In the same way there is no minimum. Answer (d).

NDA II 2026, Q96. For the curve โ€‹y = xe^{2x}โ€‹

(a) minimum occurs at โ€‹x = -2โ€‹โ€ƒโ€ƒ(b) minimum occurs at โ€‹x = -1โ€‹โ€ƒโ€ƒ(c) minimum occurs at โ€‹x = -1/2โ€‹โ€ƒโ€ƒ(d) maximum occurs at โ€‹x = -1/2โ€‹

Solution. By the product rule โ€‹\dfrac{dy}{dx} = e^{2x} + 2xe^{2x} = e^{2x}(1 + 2x)โ€‹. Since โ€‹e^{2x}โ€‹ is never zero, the only critical point is โ€‹x = -\dfrac{1}{2}โ€‹. For โ€‹x < -\dfrac{1}{2}โ€‹ the factor โ€‹1 + 2xโ€‹ is negative and for โ€‹x > -\dfrac{1}{2}โ€‹ it is positive. The sign changes from โ€‹-โ€‹ to โ€‹+โ€‹: a minimum. Answer (c).

The curve y = x times e to the 2x: falling until x = minus one half, where it has its lowest point, and rising after it

10. Mistakes that cost marks

  1. Giving the point when the value is asked, or the value when the point is asked. In Example 1 the local maximum is at โ€‹x = -1โ€‹, and the maximum value is 4.
  2. Turning the second derivative test round. โ€‹f''(c) < 0โ€‹ means a maximum. โ€‹f''(c) > 0โ€‹ means a minimum.
  3. Forgetting the end points. On a closed interval the greatest or least value is often at an end point, as in Example 2.
  4. Taking every point with โ€‹f'(c) = 0โ€‹ as a maximum or minimum. โ€‹x^3โ€‹ has โ€‹f'(0) = 0โ€‹ and has neither at โ€‹x = 0โ€‹.

11. Quick check

Do these without help. Answers are at the end.

  1. Find the points of local maximum and local minimum of โ€‹f(x) = x^3 - 12xโ€‹, and the values there.
  2. Find the least value of โ€‹x^2 - 8x + 20โ€‹.
  3. Find the greatest value of โ€‹5\sin x + 12\cos xโ€‹.
  4. Find the greatest and least values of โ€‹f(x) = x^2โ€‹ on โ€‹[-3, 2]โ€‹.
  5. The sum of two positive numbers is 12. What is the greatest possible value of their product?

12. Read and watch more, free

What Where Language
Textbook NCERT Class 12 Mathematics, Chapter 6 Application of Derivatives ยท Hindi edition English, Hindi
Self-study notes NIOS Mathematics, Lesson 29 Application of Derivatives ยท Hindi edition English, Hindi
Video, the chapter for NDA Defence Wallah: Fast Track 2021 (the class named APPLICATIONS OF DERIVATIVES, about 1 hour 50 minutes) Hinglish
Video, a longer class for NDA NDA Vijay by Unacademy: Maths Free Milestone Batch (the class named Applications of Derivatives, about 4 hours 15 minutes) Hinglish
Video, every textbook problem Magnet Brains: Class 12 Maths complete course (the 37 videos of Chapter 6) Hinglish
Past NDA questions ExamSIDE: Application of Derivatives English

The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.

Answers to the quick check

  1. โ€‹f'(x) = 3(x - 2)(x + 2)โ€‹ and โ€‹f''(x) = 6xโ€‹. Local maximum at โ€‹x = -2โ€‹, value 16. Local minimum at โ€‹x = 2โ€‹, value โ€‹-16โ€‹.
  2. โ€‹x^2 - 8x + 20 = (x - 4)^2 + 4โ€‹. The least value is 4, at โ€‹x = 4โ€‹.
  3. โ€‹\sqrt{5^2 + 12^2} = 13โ€‹.
  4. The critical point is โ€‹x = 0โ€‹. โ€‹f(-3) = 9โ€‹, โ€‹f(0) = 0โ€‹, โ€‹f(2) = 4โ€‹. Greatest value 9, least value 0.
  5. The product is greatest when the numbers are equal: โ€‹6 \times 6 = 36โ€‹.

Next chapter: Integration: the idea and standard integrals.

Free ยท no sign-up

Try three questions on this chapter

Exam-pattern questions from this chapter's drill. Pick an answer for each, then check.

  1. Question 1 of 3
    A square sheet of side โ€‹12โ€‹ cm is made into an open box by cutting equal squares of side โ€‹xโ€‹ cm from the four corners and folding up the sides. What is the greatest possible volume of the box?
  2. Question 2 of 3
    Consider the function โ€‹f(x) = \dfrac{1}{x}โ€‹ on the open interval โ€‹(0, 1)โ€‹ and the following statements: I. โ€‹fโ€‹ attains a greatest value on this interval. II. โ€‹fโ€‹ attains a least value on this interval. Which of the statements given above is/are correct?
  3. Question 3 of 3
    A rectangle has area โ€‹36โ€‹ square cm. What is the least possible value of its perimeter?
Free sign-up

You have read the chapter. Now make it stick.

A free account adds the video lesson, a drill of ten questions on this chapter marked like the exam, the timed mock papers, a study plan to your exam date and your own record of what you have done. No fee, no card.

Past questions quoted are from the official UPSC paper named in the text; the explanations are WishWas's own and have been checked against the official key. The links under โ€œRead and watch moreโ€ go to free material on other sites; nothing is copied.