100% FREE Updated: Mar 2026 Calculus and Optimization Applications of Calculus

Optimization

Comprehensive study notes on Optimization for GATE DA preparation. This chapter covers key concepts, formulas, and examples needed for your exam.

Optimization

Overview

In this chapter, we shall explore the principles of optimization, a cornerstone of applied mathematics and a critical tool in engineering and data analysis. At its core, optimization is the process of finding the best possible solution from a set of available alternatives, typically by maximizing or minimizing a specific function. We will build upon the foundational concepts of differential calculus to develop a systematic methodology for identifying these optimal values. The techniques presented herein are not merely abstract mathematical exercises; they form the theoretical basis for solving a wide array of practical problems.

A thorough understanding of optimization is indispensable for success in the GATE examination, particularly within the Data Analytics (DA) syllabus. Many complex problems in machine learning, such as training a model, are fundamentally optimization problems aimed at minimizing a loss or error function. Similarly, questions in engineering disciplines frequently require the determination of maximum efficiency, minimum cost, or optimal design parameters. This chapter will equip you with the analytical tools to translate such problems into a mathematical framework and to solve them rigorously, a skill that is frequently tested and highly valued.

We begin by examining the theory of maxima and minima for functions of a single variable. We will establish the necessary and sufficient conditions for identifying local and global extrema using the first and second derivatives. Subsequently, we will apply these theoretical principles to solve word problems and practical scenarios, focusing on the crucial steps of model formulation and interpretation of results.

---

Chapter Contents

| # | Topic | What You'll Learn |
|---|-------|-------------------|
| 1 | Maxima and Minima | Identifying extreme values using derivative tests. |
| 2 | Optimization Involving a Single Variable | Modeling and solving single-variable optimization problems. |

---

Learning Objectives

❗ By the End of This Chapter

After completing this chapter, you will be able to:

  • Define and identify critical points, local maxima, and local minima of a function.

  • Apply the First and Second Derivative Tests to classify the nature of stationary points.

  • Formulate a real-world problem as a single-variable function to be optimized.

  • Solve single-variable optimization problems to find the absolute maximum or minimum value on a given interval.

---

---

We now turn our attention to Maxima and Minima...

Part 1: Maxima and Minima

Introduction

The study of maxima and minima, a cornerstone of differential calculus, concerns itself with finding the largest and smallest values that a function can attain. This process, often referred to as optimization, is of paramount importance in numerous scientific and engineering disciplines, including data science, where we frequently seek to minimize error functions or maximize likelihood estimates. For the GATE examination, a firm grasp of the methods for identifying and classifying the extreme values of functions of a single variable is essential.

We shall develop a systematic approach to locating these points, known as extrema. Our investigation will begin with the concept of critical points, which are the primary candidates for local maxima and minima. Subsequently, we will introduce two powerful analytical toolsβ€”the First Derivative Test and the Second Derivative Testβ€”to classify these critical points. We will also distinguish between local extrema, which represent peaks and valleys in the immediate vicinity of a point, and global extrema, which are the absolute highest and lowest values of a function over its entire domain or a specified interval.

πŸ“– Extrema of a Function

Let ff be a function defined on an interval II containing a point cc.

  • We say that f(c)f(c) is a local maximum value of ff if there exists an open interval containing cc such that f(c)β‰₯f(x)f(c) \ge f(x) for all xx in that interval.

  • We say that f(c)f(c) is a local minimum value of ff if there exists an open interval containing cc such that f(c)≀f(x)f(c) \le f(x) for all xx in that interval.

  • We say that f(c)f(c) is the global (or absolute) maximum value of ff on II if f(c)β‰₯f(x)f(c) \ge f(x) for all xx in II.

  • We say that f(c)f(c) is the global (or absolute) minimum value of ff on II if f(c)≀f(x)f(c) \le f(x) for all xx in II.

A local maximum or minimum is collectively referred to as a local extremum (plural: extrema).

---

Key Concepts

The foundation for finding extrema lies in identifying special points where the function's rate of change is zero or undefined. These are the points where the function might transition from increasing to decreasing, or vice versa.

1. Critical Points

A necessary condition for a differentiable function to have a local extremum at an interior point is that its derivative at that point must be zero. This leads us to the definition of a critical point.

πŸ“– Critical Point

A point cc in the domain of a function ff is called a critical point if either fβ€²(c)=0f'(c) = 0 or fβ€²(c)f'(c) does not exist.

Points where fβ€²(c)=0f'(c) = 0 are also known as stationary points, as the tangent to the curve at such points is horizontal. It is crucial to understand that while all local extrema (for differentiable functions) occur at critical points, not all critical points correspond to a local extremum. For instance, the function f(x)=x3f(x) = x^3 has a critical point at x=0x=0 since fβ€²(0)=0f'(0)=0, but this point is neither a local maximum nor a minimum.

2. First Derivative Test

The First Derivative Test provides a method for classifying critical points by observing the sign of the first derivative on either side of the critical point. The sign of fβ€²(x)f'(x) indicates whether the function f(x)f(x) is increasing (fβ€²(x)>0f'(x) > 0) or decreasing (fβ€²(x)<0f'(x) < 0).






Local Max
f'(x)>0
f'(x)<0

c




Local Min
f'(x)<0
f'(x)>0

c




Inflection
f'(x)>0
f'(x)>0

c

Let cc be a critical point of a continuous function ff.

  • If fβ€²(x)f'(x) changes sign from positive to negative at cc, then ff has a local maximum at cc.

  • If fβ€²(x)f'(x) changes sign from negative to positive at cc, then ff has a local minimum at cc.

  • If fβ€²(x)f'(x) does not change sign at cc (that is, fβ€²(x)f'(x) is positive on both sides of cc or negative on both sides), then ff has no local extremum at cc.
  • 3. Second Derivative Test

    While the First Derivative Test is robust, the Second Derivative Test is often computationally simpler, provided the second derivative is easy to calculate. It relates the concavity of the function at a stationary point to the nature of the extremum.

    πŸ“ Second Derivative Test

    Let ff be a function such that fβ€²(c)=0f'(c) = 0 and the second derivative fβ€²β€²(x)f''(x) exists on an open interval containing cc.

    • If fβ€²β€²(c)>0f''(c) > 0, then ff has a local minimum at cc. (The function is concave up).

    • If fβ€²β€²(c)<0f''(c) < 0, then ff has a local maximum at cc. (The function is concave down).

    • If fβ€²β€²(c)=0f''(c) = 0, the test is inconclusive. We must revert to the First Derivative Test or higher-order derivative tests.

    Variables:

      • cc: A stationary point where fβ€²(c)=0f'(c) = 0.

      • fβ€²β€²(c)f''(c): The value of the second derivative at the stationary point.


    When to use: Use this test when fβ€²β€²(x)f''(x) is straightforward to compute. It is the most common method for classifying stationary points of polynomial functions in GATE problems.

    Worked Example:

    Problem: Find and classify the local extrema of the function f(x)=2x3βˆ’3x2βˆ’12x+5f(x) = 2x^3 - 3x^2 - 12x + 5.

    Solution:

    Step 1: Find the first derivative of the function.

    fβ€²(x)=ddx(2x3βˆ’3x2βˆ’12x+5)f'(x) = \frac{d}{dx} (2x^3 - 3x^2 - 12x + 5)
    fβ€²(x)=6x2βˆ’6xβˆ’12f'(x) = 6x^2 - 6x - 12

    Step 2: Find the critical points by setting the first derivative to zero.

    6x2βˆ’6xβˆ’12=06x^2 - 6x - 12 = 0
    x2βˆ’xβˆ’2=0x^2 - x - 2 = 0
    (xβˆ’2)(x+1)=0(x - 2)(x + 1) = 0

    The critical points are x=2x = 2 and x=βˆ’1x = -1.

    Step 3: Find the second derivative to apply the Second Derivative Test.

    fβ€²β€²(x)=ddx(6x2βˆ’6xβˆ’12)f''(x) = \frac{d}{dx} (6x^2 - 6x - 12)
    fβ€²β€²(x)=12xβˆ’6f''(x) = 12x - 6

    Step 4: Evaluate the second derivative at each critical point to classify them.

    For x=2x = 2:

    fβ€²β€²(2)=12(2)βˆ’6=24βˆ’6=18f''(2) = 12(2) - 6 = 24 - 6 = 18

    Since fβ€²β€²(2)=18>0f''(2) = 18 > 0, the function has a local minimum at x=2x = 2.

    For x=βˆ’1x = -1:

    fβ€²β€²(βˆ’1)=12(βˆ’1)βˆ’6=βˆ’12βˆ’6=βˆ’18f''(-1) = 12(-1) - 6 = -12 - 6 = -18

    Since fβ€²β€²(βˆ’1)=βˆ’18<0f''(-1) = -18 < 0, the function has a local maximum at x=βˆ’1x = -1.

    Answer: The function has a local minimum at x=2x=2 and a local maximum at x=βˆ’1x=-1.

    4. Global Extrema on a Closed Interval

    For a continuous function on a closed interval [a,b][a, b], the Extreme Value Theorem guarantees the existence of a global maximum and a global minimum. These global extrema can occur either at the critical points within the interval or at the interval's endpoints.

    πŸ’‘ Closed Interval Method

    To find the global maximum and minimum values of a continuous function ff on a closed interval [a,b][a, b]:

    • Find all critical points of ff that lie in the open interval (a,b)(a, b).

    • Evaluate the function ff at these critical points.

    • Evaluate the function ff at the endpoints, i.e., find f(a)f(a) and f(b)f(b).

    • The largest value from steps 2 and 3 is the global maximum, and the smallest value is the global minimum.

    Worked Example:

    Problem: Find the global maximum and minimum values of f(x)=x3βˆ’6x2+9x+1f(x) = x^3 - 6x^2 + 9x + 1 on the interval [0,4][0, 4].

    Solution:

    Step 1: Find the first derivative and the critical points.

    fβ€²(x)=3x2βˆ’12x+9f'(x) = 3x^2 - 12x + 9

    Set fβ€²(x)=0f'(x) = 0:

    3(x2βˆ’4x+3)=03(x^2 - 4x + 3) = 0

    3(xβˆ’1)(xβˆ’3)=03(x-1)(x-3) = 0

    The critical points are x=1x=1 and x=3x=3. Both lie within the interval [0,4][0, 4].

    Step 2: Evaluate the function at the critical points.

    At x=1x=1:

    f(1)=(1)3βˆ’6(1)2+9(1)+1=1βˆ’6+9+1=5f(1) = (1)^3 - 6(1)^2 + 9(1) + 1 = 1 - 6 + 9 + 1 = 5

    At x=3x=3:

    f(3)=(3)3βˆ’6(3)2+9(3)+1=27βˆ’54+27+1=1f(3) = (3)^3 - 6(3)^2 + 9(3) + 1 = 27 - 54 + 27 + 1 = 1

    Step 3: Evaluate the function at the endpoints of the interval.

    At x=0x=0:

    f(0)=(0)3βˆ’6(0)2+9(0)+1=1f(0) = (0)^3 - 6(0)^2 + 9(0) + 1 = 1

    At x=4x=4:

    f(4)=(4)3βˆ’6(4)2+9(4)+1=64βˆ’96+36+1=5f(4) = (4)^3 - 6(4)^2 + 9(4) + 1 = 64 - 96 + 36 + 1 = 5

    Step 4: Compare the values obtained.

    The values are {f(1)=5,f(3)=1,f(0)=1,f(4)=5}\{f(1)=5, f(3)=1, f(0)=1, f(4)=5\}.
    The largest value is 5, and the smallest value is 1.

    Answer: The global maximum value is 5 (occurring at x=1x=1 and x=4x=4), and the global minimum value is 1 (occurring at x=0x=0 and x=3x=3).

    5. Convexity and its Implications

    The sign of the second derivative provides information about the curvature of the function's graph. A function is convex (or concave up) where fβ€²β€²(x)>0f''(x) > 0 and concave (or concave down) where fβ€²β€²(x)<0f''(x) < 0. This has significant implications for optimization.

    ❗ Strict Convexity

    If a function f(x)f(x) is twice-differentiable and satisfies fβ€²β€²(x)>0f''(x) > 0 for all xx in its domain, the function is said to be strictly convex. Such a function has several important properties:

    • Its first derivative, fβ€²(x)f'(x), is a strictly increasing function.

    • Consequently, the equation fβ€²(x)=0f'(x) = 0 can have at most one solution. This means the function can have at most one critical point.

    • If a local minimum exists, it is unique and is also the global minimum.

    For example, the function f(x)=x2f(x) = x^2 has fβ€²β€²(x)=2>0f''(x) = 2 > 0 for all xx. It is strictly convex and has a unique global minimum at x=0x=0. The function f(x)=exf(x) = e^x has fβ€²β€²(x)=ex>0f''(x) = e^x > 0 for all xx. It is also strictly convex but has no critical points and thus no local or global minimum.

    ---

    ---

    Problem-Solving Strategies

    A structured approach is vital for solving optimization problems under exam conditions.

    πŸ’‘ GATE Strategy for Extrema Problems

    • Identify the Problem Type: Is it asking for local extrema on an open interval or global extrema on a closed interval? This distinction is critical.

    • Calculate Derivatives: Systematically compute fβ€²(x)f'(x) and, if needed, fβ€²β€²(x)f''(x). Be careful with algebraic manipulations.

    • Find Critical Points: Solve fβ€²(x)=0f'(x) = 0. For polynomials, this often involves factoring. For other functions, it may require knowledge of trigonometric or exponential equations.

    • Classify (Local Extrema): For local extrema, the Second Derivative Test is usually fastest. If fβ€²β€²(c)=0f''(c) = 0, you must use the First Derivative Test.

    • Check Endpoints (Global Extrema): For problems on a closed interval [a,b][a, b], do not forget to evaluate f(a)f(a) and f(b)f(b). This is the most frequently missed step. Compare all candidate values (from critical points and endpoints) to determine the global max/min.

    ---

    Common Mistakes

    Awareness of common pitfalls can significantly improve accuracy.

    ⚠️ Avoid These Errors
      • ❌ Forgetting Endpoints: In a closed interval problem, finding only the local extrema and ignoring the function values at the endpoints.
    βœ… Correct Approach: Always use the Closed Interval Method: evaluate at critical points and at the interval endpoints.
      • ❌ Assuming fβ€²(c)=0f'(c)=0 implies an extremum: A critical point is only a candidate for an extremum. The function f(x)=x3f(x) = x^3 has fβ€²(0)=0f'(0)=0, but x=0x=0 is an inflection point, not an extremum.
    βœ… Correct Approach: Always use the First or Second Derivative Test to classify a critical point.
      • ❌ Misinterpreting an Inconclusive Second Derivative Test: Concluding there is no extremum when fβ€²β€²(c)=0f''(c)=0.
    βœ… Correct Approach: If fβ€²β€²(c)=0f''(c)=0, the test fails. You must revert to the First Derivative Test to determine the nature of the critical point. For example, f(x)=x4f(x)=x^4 has a minimum at x=0x=0, but fβ€²β€²(0)=0f''(0)=0.
      • ❌ Confusing Local and Global Extrema: Stating a local maximum is the global maximum without checking the entire domain or interval.
    βœ… Correct Approach: A global extremum is the overall highest/lowest point. A local extremum is just the highest/lowest in its immediate neighborhood.

    ---

    ---

    Practice Questions

    :::question type="MCQ" question="A twice-differentiable function g(x)g(x) has a stationary point at x=cx=c. If the Taylor series expansion of g(x)g(x) around x=cx=c is given by g(x)=5βˆ’12(xβˆ’c)2+O((xβˆ’c)4)g(x) = 5 - \frac{1}{2}(x-c)^2 + O((x-c)^4), what can be concluded about the point x=cx=c?" options=["Local minimum", "Local maximum", "Point of inflection", "Global minimum"] answer="Local maximum" hint="Relate the Taylor series coefficients to the derivatives of the function at the point cc. Specifically, g(c)g(c), gβ€²(c)g'(c), and gβ€²β€²(c)g''(c)." solution="
    Step 1: Recall the general form of a Taylor series expansion of a function g(x)g(x) around a point cc:

    g(x)=g(c)+gβ€²(c)(xβˆ’c)+gβ€²β€²(c)2!(xβˆ’c)2+…g(x) = g(c) + g'(c)(x-c) + \frac{g''(c)}{2!}(x-c)^2 + \dots

    Step 2: Compare the given expansion with the general form.
    Given: g(x)=5βˆ’12(xβˆ’c)2+O((xβˆ’c)4)g(x) = 5 - \frac{1}{2}(x-c)^2 + O((x-c)^4)

    By comparing coefficients:

    • The constant term is g(c)=5g(c) = 5.

    • The coefficient of (xβˆ’c)(x-c) is gβ€²(c)=0g'(c) = 0. This confirms that x=cx=c is a stationary point.

    • The coefficient of (xβˆ’c)2(x-c)^2 is gβ€²β€²(c)2!=βˆ’12\frac{g''(c)}{2!} = -\frac{1}{2}.


    Step 3: Solve for the second derivative.
    gβ€²β€²(c)2=βˆ’12\frac{g''(c)}{2} = -\frac{1}{2}

    gβ€²β€²(c)=βˆ’1g''(c) = -1

    Step 4: Apply the Second Derivative Test.
    We have gβ€²(c)=0g'(c) = 0 and gβ€²β€²(c)=βˆ’1<0g''(c) = -1 < 0.
    According to the Second Derivative Test, when the first derivative is zero and the second derivative is negative, the function has a local maximum at that point.

    Result: The point x=cx=c is a local maximum.
    Answer: \boxed{\text{Local maximum}}
    "
    :::

    :::question type="NAT" question="Consider the function f(x)=x+16xf(x) = x + \frac{16}{x} for x>0x > 0. The local minimum value of the function is ______." answer="8" hint="Find the first derivative, set it to zero to find the critical point, and then use the second derivative test to confirm it's a minimum. Finally, calculate the function's value at that point." solution="
    Step 1: Find the first derivative of f(x)f(x).

    f(x)=x+16xβˆ’1f(x) = x + 16x^{-1}

    fβ€²(x)=1βˆ’16xβˆ’2=1βˆ’16x2f'(x) = 1 - 16x^{-2} = 1 - \frac{16}{x^2}

    Step 2: Find the critical points by setting fβ€²(x)=0f'(x) = 0.

    1βˆ’16x2=01 - \frac{16}{x^2} = 0

    16x2=1\frac{16}{x^2} = 1

    x2=16x^2 = 16

    Since the domain is x>0x > 0, we take the positive root: x=4x=4.

    Step 3: Find the second derivative to classify the critical point.

    fβ€²β€²(x)=ddx(1βˆ’16xβˆ’2)=βˆ’16(βˆ’2)xβˆ’3=32x3f''(x) = \frac{d}{dx} (1 - 16x^{-2}) = -16(-2)x^{-3} = \frac{32}{x^3}

    Step 4: Evaluate the second derivative at the critical point x=4x=4.

    fβ€²β€²(4)=3243=3264=12f''(4) = \frac{32}{4^3} = \frac{32}{64} = \frac{1}{2}

    Since fβ€²β€²(4)>0f''(4) > 0, the function has a local minimum at x=4x=4.

    Step 5: Calculate the local minimum value by evaluating f(x)f(x) at x=4x=4.

    f(4)=4+164=4+4=8f(4) = 4 + \frac{16}{4} = 4 + 4 = 8

    Result: The local minimum value of the function is 8.
    Answer: \boxed{8}
    "
    :::

    :::question type="MSQ" question="Let f(x)=(xβˆ’1)2(xβˆ’3)2f(x) = (x-1)^2 (x-3)^2. Which of the following statements is/are TRUE?" options=["The function has a local maximum at x=2x=2","The function has local minima at x=1x=1 and x=3x=3","The function has three distinct stationary points","The value of the local maximum is 1"] answer="The function has a local maximum at x=2x=2,The function has local minima at x=1x=1 and x=3x=3,The function has three distinct stationary points,The value of the local maximum is 1" hint="Use the product rule to find the derivative fβ€²(x)f'(x). Factor the derivative to find all stationary points. Then use the second derivative test or the first derivative test to classify each point." solution="
    Step 1: Find the first derivative fβ€²(x)f'(x) using the product rule.

    f(x)=(x2βˆ’2x+1)(x2βˆ’6x+9)f(x) = (x^2-2x+1)(x^2-6x+9)

    Let's expand f(x)f(x) first for easier differentiation:
    f(x)=((xβˆ’2)+1)2((xβˆ’2)βˆ’1)2=((xβˆ’2)2βˆ’1)2=(xβˆ’2)4βˆ’2(xβˆ’2)2+1f(x) = ((x-2)+1)^2 ((x-2)-1)^2 = ((x-2)^2 - 1)^2 = (x-2)^4 - 2(x-2)^2 + 1

    fβ€²(x)=4(xβˆ’2)3βˆ’4(xβˆ’2)f'(x) = 4(x-2)^3 - 4(x-2)

    Step 2: Find the stationary points by setting fβ€²(x)=0f'(x)=0.

    4(xβˆ’2)3βˆ’4(xβˆ’2)=04(x-2)^3 - 4(x-2) = 0

    4(xβˆ’2)[(xβˆ’2)2βˆ’1]=04(x-2) [ (x-2)^2 - 1 ] = 0

    4(xβˆ’2)(xβˆ’2βˆ’1)(xβˆ’2+1)=04(x-2) (x-2-1) (x-2+1) = 0

    4(xβˆ’2)(xβˆ’3)(xβˆ’1)=04(x-2)(x-3)(x-1) = 0

    The stationary points are x=1,x=2,x=3x=1, x=2, x=3. Thus, the function has three distinct stationary points.

    Step 3: Find the second derivative fβ€²β€²(x)f''(x) to classify the points.

    fβ€²(x)=4(x3βˆ’6x2+11xβˆ’6)f'(x) = 4(x^3 - 6x^2 + 11x - 6)

    fβ€²β€²(x)=4(3x2βˆ’12x+11)f''(x) = 4(3x^2 - 12x + 11)

    Step 4: Evaluate fβ€²β€²(x)f''(x) at each stationary point.

    • At x=1x=1: fβ€²β€²(1)=4(3(1)2βˆ’12(1)+11)=4(3βˆ’12+11)=4(2)=8>0f''(1) = 4(3(1)^2 - 12(1) + 11) = 4(3 - 12 + 11) = 4(2) = 8 > 0. This is a local minimum.

    • At x=2x=2: fβ€²β€²(2)=4(3(2)2βˆ’12(2)+11)=4(12βˆ’24+11)=4(βˆ’1)=βˆ’4<0f''(2) = 4(3(2)^2 - 12(2) + 11) = 4(12 - 24 + 11) = 4(-1) = -4 < 0. This is a local maximum.

    • At x=3x=3: fβ€²β€²(3)=4(3(3)2βˆ’12(3)+11)=4(27βˆ’36+11)=4(2)=8>0f''(3) = 4(3(3)^2 - 12(3) + 11) = 4(27 - 36 + 11) = 4(2) = 8 > 0. This is a local minimum.


    Step 5: Evaluate the function at the extrema to check the values.
    • At x=1x=1: f(1)=(1βˆ’1)2(1βˆ’3)2=0f(1) = (1-1)^2(1-3)^2 = 0. This is a local minimum value.

    • At x=3x=3: f(3)=(3βˆ’1)2(3βˆ’3)2=0f(3) = (3-1)^2(3-3)^2 = 0. This is a local minimum value.

    • At x=2x=2: f(2)=(2βˆ’1)2(2βˆ’3)2=(1)2(βˆ’1)2=1f(2) = (2-1)^2(2-3)^2 = (1)^2(-1)^2 = 1. This is the local maximum value.


    Conclusion:
    • The function has a local maximum at x=2x=2. (TRUE)

    • The function has local minima at x=1x=1 and x=3x=3. (TRUE)

    • The function has three distinct stationary points (1,2,31, 2, 3). (TRUE)

    • The value of the local maximum is f(2)=1f(2) = 1. (TRUE)

    All four statements are correct.
    Answer: \boxed{\text{All four statements are correct.}}
    "
    :::

    :::question type="NAT" question="The absolute maximum value of the function f(x)=2x3βˆ’15x2+36x+1f(x) = 2x^3 - 15x^2 + 36x + 1 on the interval [1,5][1, 5] is ______." answer="56" hint="Follow the Closed Interval Method. Find critical points within the interval, then evaluate the function at these points and at the endpoints x=1x=1 and x=5x=5. The largest value is the answer." solution="
    Step 1: Find the first derivative of f(x)f(x).

    fβ€²(x)=6x2βˆ’30x+36f'(x) = 6x^2 - 30x + 36

    Step 2: Find the critical points by setting fβ€²(x)=0f'(x) = 0.

    6(x2βˆ’5x+6)=06(x^2 - 5x + 6) = 0

    6(xβˆ’2)(xβˆ’3)=06(x-2)(x-3) = 0

    The critical points are x=2x=2 and x=3x=3. Both of these points lie within the interval [1,5][1, 5].

    Step 3: Evaluate the function at the critical points.

    • At x=2x=2: f(2)=2(2)3βˆ’15(2)2+36(2)+1=16βˆ’60+72+1=29f(2) = 2(2)^3 - 15(2)^2 + 36(2) + 1 = 16 - 60 + 72 + 1 = 29.

    • At x=3x=3: f(3)=2(3)3βˆ’15(3)2+36(3)+1=54βˆ’135+108+1=28f(3) = 2(3)^3 - 15(3)^2 + 36(3) + 1 = 54 - 135 + 108 + 1 = 28.


    Step 4: Evaluate the function at the endpoints of the interval [1,5][1, 5].
    • At x=1x=1: f(1)=2(1)3βˆ’15(1)2+36(1)+1=2βˆ’15+36+1=24f(1) = 2(1)^3 - 15(1)^2 + 36(1) + 1 = 2 - 15 + 36 + 1 = 24.

    • At x=5x=5: f(5)=2(5)3βˆ’15(5)2+36(5)+1=250βˆ’375+180+1=56f(5) = 2(5)^3 - 15(5)^2 + 36(5) + 1 = 250 - 375 + 180 + 1 = 56.


    Step 5: Compare all the calculated values: {29,28,24,56}\{29, 28, 24, 56\}.
    The largest value is 56.

    Result: The absolute maximum value of the function on the given interval is 56.
    Answer: \boxed{56}
    "
    :::

    ---

    Summary

    ❗ Key Takeaways for GATE

    • Critical Points are Candidates: Local extrema can only occur at critical points, where fβ€²(x)=0f'(x)=0 or fβ€²(x)f'(x) is undefined. However, not every critical point is an extremum.

    • Use the Second Derivative Test First: For classifying stationary points (fβ€²(c)=0f'(c)=0), the Second Derivative Test (fβ€²β€²(c)>0β€…β€ŠβŸΉβ€…β€Šf''(c)>0 \implies min, fβ€²β€²(c)<0β€…β€ŠβŸΉβ€…β€Šf''(c)<0 \implies max) is typically the most efficient method. If fβ€²β€²(c)=0f''(c)=0, the test is inconclusive, and you must use the First Derivative Test.

    • Closed Interval Problems Require Endpoint Checks: To find the global (absolute) maximum or minimum on a closed interval [a,b][a, b], you must find the function values at all critical points inside the interval and also at the endpoints f(a)f(a) and f(b)f(b). The answer is the largest/smallest among these values.

    • Convexity Implies Uniqueness: A strictly convex function (fβ€²β€²(x)>0f''(x)>0 for all xx) can have at most one local minimum, which, if it exists, is also the unique global minimum.

    ---

    ---

    What's Next?

    πŸ’‘ Continue Learning

    This topic serves as a foundation for more advanced optimization concepts.

      • Multivariate Calculus: The principles of finding extrema extend to functions of multiple variables (f(x,y,… )f(x, y, \dots)), where we use partial derivatives to find critical points and the Hessian matrix (a matrix of second-order partial derivatives) to classify them. This is crucial for optimizing complex models.

      • Machine Learning Optimization: Algorithms like Gradient Descent are fundamentally based on the ideas discussed here. Gradient Descent iteratively moves towards a minimum of a loss function by taking steps in the direction of the negative gradient (the direction of steepest descent), which is a generalization of finding where fβ€²(x)=0f'(x)=0.

    ---

    πŸ’‘ Moving Forward

    Now that you understand Maxima and Minima, let's explore Optimization Involving a Single Variable which builds on these concepts.

    ---

    Part 2: Optimization Involving a Single Variable

    Introduction

    The application of differential calculus to problems of optimization is a cornerstone of mathematical analysis and a frequent subject of inquiry in engineering and data science. At its core, optimization seeks to find the "best" valueβ€”either the maximum or the minimumβ€”that a function can attain. In this section, we shall concern ourselves with the optimization of functions of a single variable, denoted f(x)f(x). This involves identifying points in the domain of a function where it reaches its highest or lowest values, either locally (in a neighborhood) or globally (over its entire domain).

    The methods we develop here are fundamental. They form the basis for more complex, multi-dimensional optimization algorithms that are central to machine learning, such as gradient descent. A firm grasp of how to locate and classify the extrema of a single-variable function is therefore an indispensable prerequisite for advanced studies. We will explore the role of the first and second derivatives in systematically identifying and classifying these points of interest.

    πŸ“– Local and Global Extrema

    Let ff be a function defined on an interval II, and let cc be a point in II.

      • We say that f(c)f(c) is a local maximum value of ff if f(c)β‰₯f(x)f(c) \ge f(x) for all xx in some open interval containing cc.
      • We say that f(c)f(c) is a local minimum value of ff if f(c)≀f(x)f(c) \le f(x) for all xx in some open interval containing cc.
      • We say that f(c)f(c) is a global maximum value of ff on II if f(c)β‰₯f(x)f(c) \ge f(x) for all xx in II.
      • We say that f(c)f(c) is a global minimum value of ff on II if f(c)≀f(x)f(c) \le f(x) for all xx in II.
    A local maximum or minimum is referred to collectively as a local extremum (plural: extrema).

    ---

    Key Concepts

    The search for extrema begins with identifying candidate points. A crucial insight, often attributed to Fermat, is that at a local maximum or minimum of a differentiable function, the tangent to the curve must be horizontal. This leads directly to the concept of critical points.

    1. Critical Points

    For a function f(x)f(x), the candidates for local extrema occur at points where the derivative is either zero or undefined. These are known as the critical points of the function.

    πŸ“– Critical Point

    A number cc in the domain of a function ff is called a critical point of ff if either fβ€²(c)=0f'(c) = 0 or fβ€²(c)f'(c) does not exist.

    It is essential to understand that while all local extrema of a differentiable function occur at critical points, not all critical points correspond to local extrema. A point where fβ€²(c)=0f'(c) = 0 might also be a point of inflection, as seen with f(x)=x3f(x) = x^3 at x=0x=0. Therefore, we require further tests to classify these points.

    2. The First Derivative Test

    The First Derivative Test provides a method for classifying critical points by examining the sign of the first derivative, fβ€²(x)f'(x), on either side of the critical point cc. The sign of fβ€²(x)f'(x) tells us whether the function f(x)f(x) is increasing or decreasing.

    • If fβ€²(x)>0f'(x) > 0 on an interval, then f(x)f(x) is increasing on that interval.
    • If fβ€²(x)<0f'(x) < 0 on an interval, then f(x)f(x) is decreasing on that interval.
    By observing the change in sign of fβ€²(x)f'(x) as we pass through a critical point cc, we can determine the nature of the extremum at cc.






    Local Max
    f'(x) > 0
    f'(x) < 0



    Local Min
    f'(x) < 0
    f'(x) > 0

    πŸ“ The First Derivative Test

    Suppose cc is a critical point of a continuous function ff.

    • If fβ€²(x)f'(x) changes from positive to negative at cc, then ff has a local maximum at cc.

    • If fβ€²(x)f'(x) changes from negative to positive at cc, then ff has a local minimum at cc.

    • If fβ€²(x)f'(x) does not change sign at cc (that is, fβ€²(x)f'(x) is positive on both sides of cc or negative on both sides), then ff has no local extremum at cc.

    When to use: This test is robust and works even when the second derivative does not exist. It is particularly useful when fβ€²β€²(c)f''(c) is zero or difficult to compute.

    3. The Second Derivative Test

    An alternative, and often computationally simpler, method for classifying critical points is the Second Derivative Test. This test uses the sign of the second derivative, fβ€²β€²(x)f''(x), at the critical point itself. The second derivative provides information about the concavity of the function.

    • If fβ€²β€²(x)>0f''(x) > 0 on an interval, then f(x)f(x) is concave up on that interval.
    • If fβ€²β€²(x)<0f''(x) < 0 on an interval, then f(x)f(x) is concave down on that interval.
    πŸ“ The Second Derivative Test

    Suppose fβ€²β€²f'' is continuous near a point cc.

    • If fβ€²(c)=0f'(c) = 0 and fβ€²β€²(c)>0f''(c) > 0, then ff has a local minimum at cc.

    • If fβ€²(c)=0f'(c) = 0 and fβ€²β€²(c)<0f''(c) < 0, then ff has a local maximum at cc.

    • If fβ€²(c)=0f'(c) = 0 and fβ€²β€²(c)=0f''(c) = 0, the test is inconclusive. The point cc could be a local maximum, a local minimum, or neither. In this case, one must revert to the First Derivative Test.

    When to use: Use this test when the second derivative is easy to compute and evaluate. It is generally faster than the First Derivative Test for polynomial and trigonometric functions.

    Worked Example:

    Problem: Find the local extrema of the function f(x)=x3βˆ’6x2+9x+1f(x) = x^3 - 6x^2 + 9x + 1.

    Solution:

    Step 1: Find the first derivative of the function to identify critical points.

    fβ€²(x)=ddx(x3βˆ’6x2+9x+1)=3x2βˆ’12x+9f'(x) = \frac{d}{dx}(x^3 - 6x^2 + 9x + 1) = 3x^2 - 12x + 9

    Step 2: Set the first derivative to zero and solve for xx.

    3x2βˆ’12x+9=03x^2 - 12x + 9 = 0
    x2βˆ’4x+3=0x^2 - 4x + 3 = 0
    (xβˆ’1)(xβˆ’3)=0(x-1)(x-3) = 0

    The critical points are x=1x=1 and x=3x=3.

    Step 3: Find the second derivative to apply the Second Derivative Test.

    fβ€²β€²(x)=ddx(3x2βˆ’12x+9)=6xβˆ’12f''(x) = \frac{d}{dx}(3x^2 - 12x + 9) = 6x - 12

    Step 4: Evaluate the second derivative at each critical point to classify them.

    For x=1x=1:

    fβ€²β€²(1)=6(1)βˆ’12=βˆ’6f''(1) = 6(1) - 12 = -6

    Since fβ€²β€²(1)<0f''(1) < 0, the function has a local maximum at x=1x=1.
    The maximum value is:

    f(1)=(1)3βˆ’6(1)2+9(1)+1=5f(1) = (1)^3 - 6(1)^2 + 9(1) + 1 = 5

    For x=3x=3:

    fβ€²β€²(3)=6(3)βˆ’12=6f''(3) = 6(3) - 12 = 6

    Since fβ€²β€²(3)>0f''(3) > 0, the function has a local minimum at x=3x=3.
    The minimum value is:

    f(3)=(3)3βˆ’6(3)2+9(3)+1=1f(3) = (3)^3 - 6(3)^2 + 9(3) + 1 = 1

    Answer: The function has a local maximum at (1,5)(1, 5) and a local minimum at (3,1)(3, 1).

    ---

    ---

    Problem-Solving Strategies

    A systematic approach is essential for solving optimization problems efficiently under exam conditions.

    πŸ’‘ GATE Strategy for Optimization

    • Formulate the Objective Function: Identify the quantity to be maximized or minimized and express it as a function of a single variable, say f(x)f(x). Determine the feasible domain for xx.

    • Find Critical Points: Compute the first derivative, fβ€²(x)f'(x), and find all points cc in the domain where fβ€²(c)=0f'(c)=0 or fβ€²(c)f'(c) is undefined.

    • Classify Critical Points: Use either the First or Second Derivative Test to classify each critical point as a local maximum, local minimum, or neither. The Second Derivative Test is often faster if fβ€²β€²(x)f''(x) is simple to calculate.

    • Check Endpoints: If optimizing on a closed interval [a,b][a, b], evaluate the function at the endpoints, f(a)f(a) and f(b)f(b), as the global extremum can occur there. The global maximum/minimum is the largest/smallest value among the critical points and the endpoints.

    ---

    Common Mistakes

    ⚠️ Avoid These Errors
      • ❌ Forgetting to check endpoints: For problems on a closed interval [a,b][a, b], the global maximum or minimum can occur at x=ax=a or x=bx=b. Students often only check the critical points within the interval.
    βœ… Always evaluate the function at the endpoints in addition to the critical points when finding global extrema on a closed interval.
      • ❌ Assuming all critical points are extrema: A critical point where fβ€²(c)=0f'(c)=0 is not guaranteed to be a maximum or minimum. It could be an inflection point (e.g., f(x)=x3f(x)=x^3 at x=0x=0).
    βœ… Always use the First or Second Derivative Test to classify every critical point.
      • ❌ Misinterpreting the Second Derivative Test: If fβ€²β€²(c)=0f''(c)=0, the test is inconclusive. It does not mean there is no extremum.
    βœ… If fβ€²β€²(c)=0f''(c)=0, revert to the First Derivative Test for a definitive classification.

    ---

    ---

    Practice Questions

    :::question type="MCQ" question="The function f(x)=2x3βˆ’3x2βˆ’36x+10f(x) = 2x^3 - 3x^2 - 36x + 10 has a local maximum at which value of xx?" options=["3", "-2", "2", "-3"] answer="-2" hint="Find the critical points by setting fβ€²(x)=0f'(x)=0. Then use the Second Derivative Test to determine which one corresponds to a local maximum." solution="
    Step 1: Find the first derivative.

    fβ€²(x)=6x2βˆ’6xβˆ’36f'(x) = 6x^2 - 6x - 36

    Step 2: Set the derivative to zero to find critical points.

    6x2βˆ’6xβˆ’36=06x^2 - 6x - 36 = 0

    x2βˆ’xβˆ’6=0x^2 - x - 6 = 0

    (xβˆ’3)(x+2)=0(x-3)(x+2) = 0

    The critical points are x=3x=3 and x=βˆ’2x=-2.

    Step 3: Find the second derivative.

    fβ€²β€²(x)=12xβˆ’6f''(x) = 12x - 6

    Step 4: Test each critical point with the second derivative.
    For x=3x=3:

    fβ€²β€²(3)=12(3)βˆ’6=30>0f''(3) = 12(3) - 6 = 30 > 0

    This corresponds to a local minimum.

    For x=βˆ’2x=-2:

    fβ€²β€²(βˆ’2)=12(βˆ’2)βˆ’6=βˆ’30<0f''(-2) = 12(-2) - 6 = -30 < 0

    This corresponds to a local maximum.

    Result: The local maximum occurs at x=βˆ’2x=-2.
    Answer: βˆ’2\boxed{-2}
    "
    :::

    :::question type="NAT" question="A rectangular field is to be enclosed by a fence. The field's area must be 800 square meters. One side of the field is along a straight river and needs no fencing. What is the minimum length of fencing (in meters) required for the other three sides?" answer="80" hint="Let the side parallel to the river be of length xx and the other two sides be of length yy. Express the total fencing length as a function of one variable and find its minimum." solution="
    Step 1: Define the variables and formulate the equations.
    Let xx be the length of the side parallel to the river and yy be the length of the two other sides.

    A=xy=800A = xy = 800

    L=x+2yL = x + 2y

    Step 2: Express the length LL as a function of a single variable.
    From the area equation, y=800xy = \frac{800}{x}.
    Substitute this into the length equation:

    L(x)=x+2(800x)=x+1600xL(x) = x + 2 \left( \frac{800}{x} \right) = x + \frac{1600}{x}

    Step 3: Find the derivative of L(x)L(x) and set it to zero to find critical points.

    Lβ€²(x)=1βˆ’1600x2L'(x) = 1 - \frac{1600}{x^2}

    Set Lβ€²(x)=0L'(x) = 0:
    1βˆ’1600x2=01 - \frac{1600}{x^2} = 0

    x2=1600x^2 = 1600

    x=40(sinceΒ lengthΒ mustΒ beΒ positive)x = 40 \quad (\text{since length must be positive})

    Step 4: Use the Second Derivative Test to confirm it is a minimum.

    Lβ€²β€²(x)=ddx(1βˆ’1600xβˆ’2)=3200xβˆ’3=3200x3L''(x) = \frac{d}{dx} \left( 1 - 1600x^{-2} \right) = 3200x^{-3} = \frac{3200}{x^3}

    At x=40x=40:
    Lβ€²β€²(40)=3200403>0L''(40) = \frac{3200}{40^3} > 0

    This confirms a local minimum.

    Step 5: Calculate the minimum length of fencing.
    When x=40x=40, y=80040=20y = \frac{800}{40} = 20.

    L=x+2y=40+2(20)=40+40=80L = x + 2y = 40 + 2(20) = 40 + 40 = 80

    Result: The minimum length of fencing required is 80 meters.
    Answer: 80\boxed{80}
    "
    :::

    :::question type="MSQ" question="For the function f(x)=x4βˆ’4x3+10f(x) = x^4 - 4x^3 + 10 on the interval [βˆ’1,4][-1, 4], which of the following statements are true?" options=["The function has a local minimum at x=3.","The function has a local maximum at x=0.","The global maximum value on the interval is 15.","The global minimum value on the interval is -17."] answer="The function has a local minimum at x=3.,The global maximum value on the interval is 15.,The global minimum value on the interval is -17." hint="Find the critical points. Then evaluate the function at the critical points and the interval endpoints to find the global extrema." solution="
    Step 1: Find the critical points.

    fβ€²(x)=4x3βˆ’12x2=4x2(xβˆ’3)f'(x) = 4x^3 - 12x^2 = 4x^2(x - 3)

    Set fβ€²(x)=0f'(x) = 0:
    4x2(xβˆ’3)=04x^2(x - 3) = 0

    The critical points are x=0x=0 and x=3x=3. Both are within the interval [βˆ’1,4][-1, 4].

    Step 2: Classify the critical points.
    We use the First Derivative Test.

    • For x<0x < 0 (e.g., x=βˆ’0.5x=-0.5), fβ€²(x)=4(βˆ’0.5)2(βˆ’0.5βˆ’3)<0f'(x) = 4(-0.5)^2(-0.5-3) < 0.

    • For 0<x<30 < x < 3 (e.g., x=1x=1), fβ€²(x)=4(1)2(1βˆ’3)<0f'(x) = 4(1)^2(1-3) < 0.

    • For x>3x > 3 (e.g., x=3.5x=3.5), fβ€²(x)=4(3.5)2(3.5βˆ’3)>0f'(x) = 4(3.5)^2(3.5-3) > 0.


    At x=0x=0, the derivative does not change sign (negative to negative). So, x=0x=0 is not a local extremum. It is a point of inflection.
    At x=3x=3, the derivative changes from negative to positive. So, x=3x=3 is a local minimum.

    Step 3: Evaluate the function at critical points and endpoints to find global extrema.

    f(βˆ’1)=(βˆ’1)4βˆ’4(βˆ’1)3+10=1+4+10=15f(-1) = (-1)^4 - 4(-1)^3 + 10 = 1 + 4 + 10 = 15

    f(0)=(0)4βˆ’4(0)3+10=10f(0) = (0)^4 - 4(0)^3 + 10 = 10

    f(3)=(3)4βˆ’4(3)3+10=81βˆ’108+10=βˆ’17f(3) = (3)^4 - 4(3)^3 + 10 = 81 - 108 + 10 = -17

    f(4)=(4)4βˆ’4(4)3+10=256βˆ’256+10=10f(4) = (4)^4 - 4(4)^3 + 10 = 256 - 256 + 10 = 10

    Step 4: Compare the values.
    The values are {15,10,βˆ’17,10}\{15, 10, -17, 10\}.
    The global maximum is 15.
    The global minimum is -17.

    Conclusion:

    • "The function has a local minimum at x=3x=3." is True.

    • "The function has a local maximum at x=0x=0." is False.

    • "The global maximum value on the interval is 15." is True.

    • "The global minimum value on the interval is -17." is True.

    Answer: OptionsΒ 1,Β 3,Β andΒ 4Β areΒ true.\boxed{\text{Options 1, 3, and 4 are true.}}
    "
    :::

    ---

    Summary

    ❗ Key Takeaways for GATE

    • Critical Points are Candidates: Local extrema of a function f(x)f(x) can only occur at critical points, where fβ€²(x)=0f'(x) = 0 or fβ€²(x)f'(x) is undefined.

    • Use Derivative Tests for Classification: The First Derivative Test (examining sign change of fβ€²f') and the Second Derivative Test (examining sign of fβ€²β€²f'') are used to classify critical points as local maxima, minima, or neither. The Second Derivative Test is often faster but can be inconclusive if fβ€²β€²(c)=0f''(c)=0.

    • Closed Interval Method: To find the global extrema of a continuous function on a closed interval [a,b][a, b], one must compare the function values at all critical points inside the interval with the values at the endpoints, f(a)f(a) and f(b)f(b).

    ---

    What's Next?

    πŸ’‘ Continue Learning

    This topic provides the foundation for more advanced optimization concepts.

      • Optimization with Multiple Variables: The concepts of setting derivatives to zero extend to partial derivatives and gradients to find extrema of functions like f(x,y)f(x, y). This is crucial for machine learning models.

      • Constrained Optimization: Often, we need to optimize a function subject to certain constraints (e.g., maximizing profit with a limited budget). Techniques like Lagrange Multipliers build upon the principles discussed here.


    Master these connections for comprehensive GATE preparation!

    ---

    Chapter Summary

    πŸ“– Optimization - Key Takeaways

    In our study of single-variable optimization, we have developed a systematic methodology for identifying and classifying the extreme values of a function. The following points encapsulate the essential concepts that must be mastered for the GATE examination.

    • Critical Points: A point cc in the domain of a function f(x)f(x) is a critical point if either fβ€²(c)=0f'(c) = 0 or fβ€²(c)f'(c) is undefined. These are the only candidates for local maxima or minima.

    • First Derivative Test: The necessary condition for a local extremum at a differentiable point cc is that fβ€²(c)=0f'(c) = 0. This test can also determine the nature of the extremum by examining the sign change of fβ€²(x)f'(x) as it passes through cc.

    • Second Derivative Test: For a critical point cc where fβ€²(c)=0f'(c) = 0, the second derivative provides a sufficient condition for classification. If fβ€²β€²(c)<0f''(c) < 0, the function has a local maximum at cc. If fβ€²β€²(c)>0f''(c) > 0, it has a local minimum at cc. If fβ€²β€²(c)=0f''(c) = 0, the test is inconclusive, and one must revert to the First Derivative Test or higher-order derivatives.

    • Global vs. Local Extrema: It is crucial to distinguish between a local extremum (the highest or lowest point in a local neighborhood) and a global extremum (the absolute highest or lowest point over the function's entire domain). A function may have multiple local extrema but at most one global maximum and one global minimum value.

    • The Closed Interval Method: To determine the global (absolute) maximum and minimum of a continuous function f(x)f(x) on a closed interval [a,b][a, b], we must evaluate the function at all critical points within (a,b)(a, b) and at the endpoints x=ax=a and x=bx=b. The largest of these values is the global maximum, and the smallest is the global minimum.

    • Points of Inflection: A point of inflection occurs where the concavity of the function changes. This corresponds to a point where fβ€²β€²(x)=0f''(x) = 0 or is undefined, and the sign of fβ€²β€²(x)f''(x) changes across that point. This concept is often linked to the failure of the Second Derivative Test.

    ---

    Chapter Review Questions

    :::question type="MCQ" question="The absolute minimum value of the function f(x)=2x3βˆ’9x2+12x+5f(x) = 2x^3 - 9x^2 + 12x + 5 on the interval [0,3][0, 3] is:" options=["5","9","10","14"] answer="5" hint="To find the absolute extrema on a closed interval, you must check the function's values at the critical points within the interval as well as at the endpoints of the interval." solution="
    To find the absolute minimum value of f(x)=2x3βˆ’9x2+12x+5f(x) = 2x^3 - 9x^2 + 12x + 5 on the interval [0,3][0, 3], we apply the Closed Interval Method.

    Step 1: Find the critical points.
    First, we compute the derivative of the function:

    fβ€²(x)=ddx(2x3βˆ’9x2+12x+5)=6x2βˆ’18x+12f'(x) = \frac{d}{dx}(2x^3 - 9x^2 + 12x + 5) = 6x^2 - 18x + 12

    Set the derivative to zero to find the critical points:
    6x2βˆ’18x+12=06x^2 - 18x + 12 = 0

    x2βˆ’3x+2=0x^2 - 3x + 2 = 0

    (xβˆ’1)(xβˆ’2)=0(x-1)(x-2) = 0

    The critical points are x=1x=1 and x=2x=2. Both of these points lie within the given interval [0,3][0, 3].

    Step 2: Evaluate the function at the critical points and endpoints.
    We must now evaluate f(x)f(x) at the critical points (x=1,x=2x=1, x=2) and at the endpoints of the interval (x=0,x=3x=0, x=3).

    • At the left endpoint, x=0x=0:

    f(0)=2(0)3βˆ’9(0)2+12(0)+5=5f(0) = 2(0)^3 - 9(0)^2 + 12(0) + 5 = 5

    • At the first critical point, x=1x=1:

    f(1)=2(1)3βˆ’9(1)2+12(1)+5=2βˆ’9+12+5=10f(1) = 2(1)^3 - 9(1)^2 + 12(1) + 5 = 2 - 9 + 12 + 5 = 10

    • At the second critical point, x=2x=2:

    f(2)=2(2)3βˆ’9(2)2+12(2)+5=16βˆ’36+24+5=9f(2) = 2(2)^3 - 9(2)^2 + 12(2) + 5 = 16 - 36 + 24 + 5 = 9

    • At the right endpoint, x=3x=3:

    f(3)=2(3)3βˆ’9(3)2+12(3)+5=54βˆ’81+36+5=14f(3) = 2(3)^3 - 9(3)^2 + 12(3) + 5 = 54 - 81 + 36 + 5 = 14

    Step 3: Determine the absolute minimum.
    We compare the values obtained in Step 2: {5,10,9,14}\{5, 10, 9, 14\}.
    The smallest value is 5, which occurs at x=0x=0. Therefore, the absolute minimum value of the function on the interval [0,3][0, 3] is 5.
    Answer: 5\boxed{5}
    "
    :::

    :::question type="NAT" question="A wire of length 24 meters is to be bent into the shape of a rectangle. What is the maximum possible area of such a rectangle in square meters?" answer="36" hint="Formulate an objective function for the area in terms of a single variable using the perimeter constraint. Then, find the value of the variable that maximizes this function." solution="
    Step 1: Define variables and formulate equations.
    Let the length of the rectangle be ll and the width be ww.
    The perimeter PP is given by the length of the wire, so P=24P = 24 m.

    P=2(l+w)P = 2(l+w)

    2(l+w)=24β€…β€ŠβŸΉβ€…β€Šl+w=122(l+w) = 24 \implies l+w = 12

    The area AA of the rectangle is the objective function we wish to maximize:
    A=lβ‹…wA = l \cdot w

    Step 2: Express the objective function in terms of a single variable.
    From the perimeter constraint, we can express ll in terms of ww: l=12βˆ’wl = 12 - w.
    Substitute this into the area formula:

    A(w)=(12βˆ’w)w=12wβˆ’w2A(w) = (12-w)w = 12w - w^2

    Step 3: Find the critical points of the area function.
    To find the maximum area, we take the derivative of A(w)A(w) with respect to ww and set it to zero.

    dAdw=12βˆ’2w\frac{dA}{dw} = 12 - 2w

    Setting the derivative to zero:
    12βˆ’2w=0β€…β€ŠβŸΉβ€…β€Š2w=12β€…β€ŠβŸΉβ€…β€Šw=612 - 2w = 0 \implies 2w = 12 \implies w = 6

    Step 4: Verify that this critical point corresponds to a maximum.
    We use the Second Derivative Test. The second derivative is:

    d2Adw2=βˆ’2\frac{d^2A}{dw^2} = -2

    Since d2Adw2<0\frac{d^2A}{dw^2} < 0, the function has a local maximum at w=6w=6. As the area function is a downward-opening parabola, this local maximum is also the global maximum.

    Step 5: Calculate the maximum area.
    When w=6w = 6 m, the length is l=12βˆ’w=12βˆ’6=6l = 12 - w = 12 - 6 = 6 m.
    The rectangle is a square, which is the expected result for maximizing area for a fixed perimeter.
    The maximum area is:

    Amax=lβ‹…w=6β‹…6=36 m2A_{max} = l \cdot w = 6 \cdot 6 = 36 \, \text{m}^2

    Answer: 36\boxed{36}
    "
    :::

    :::question type="MCQ" question="The function f(x)=xeβˆ’xf(x) = x e^{-x} has a local maximum at which value of xx?" options=["-1","0","1","e"] answer="1" hint="Find the first derivative of the function using the product rule, set it to zero to find the critical points, and then use the second derivative test to classify the point." solution="
    Step 1: Find the first derivative of the function.
    The function is f(x)=xeβˆ’xf(x) = x e^{-x}. We use the product rule, (uv)β€²=uβ€²v+uvβ€²(uv)' = u'v + uv', where u=xu=x and v=eβˆ’xv=e^{-x}.

    fβ€²(x)=(1)(eβˆ’x)+(x)(βˆ’eβˆ’x)f'(x) = (1)(e^{-x}) + (x)(-e^{-x})

    fβ€²(x)=eβˆ’xβˆ’xeβˆ’x=eβˆ’x(1βˆ’x)f'(x) = e^{-x} - x e^{-x} = e^{-x}(1-x)

    Step 2: Find the critical points.
    Set the first derivative to zero to find the critical points.

    eβˆ’x(1βˆ’x)=0e^{-x}(1-x) = 0

    Since eβˆ’xe^{-x} is always positive for any real xx, the only way for the product to be zero is if the other term is zero:
    1βˆ’x=0β€…β€ŠβŸΉβ€…β€Šx=11-x = 0 \implies x = 1

    Thus, x=1x=1 is the only critical point.

    Step 3: Use the Second Derivative Test to classify the critical point.
    We need to compute the second derivative, fβ€²β€²(x)f''(x). We differentiate fβ€²(x)=eβˆ’xβˆ’xeβˆ’xf'(x) = e^{-x} - x e^{-x}.

    fβ€²β€²(x)=ddx(eβˆ’xβˆ’xeβˆ’x)f''(x) = \frac{d}{dx}(e^{-x} - x e^{-x})

    fβ€²β€²(x)=βˆ’eβˆ’xβˆ’[(1)(eβˆ’x)+(x)(βˆ’eβˆ’x)]f''(x) = -e^{-x} - [ (1)(e^{-x}) + (x)(-e^{-x}) ]

    fβ€²β€²(x)=βˆ’eβˆ’xβˆ’eβˆ’x+xeβˆ’x=eβˆ’x(xβˆ’2)f''(x) = -e^{-x} - e^{-x} + x e^{-x} = e^{-x}(x-2)

    Now, we evaluate the second derivative at the critical point x=1x=1:
    fβ€²β€²(1)=eβˆ’1(1βˆ’2)=eβˆ’1(βˆ’1)=βˆ’1ef''(1) = e^{-1}(1-2) = e^{-1}(-1) = -\frac{1}{e}

    Since fβ€²β€²(1)=βˆ’1/e<0f''(1) = -1/e < 0, the function has a local maximum at x=1x=1.
    Answer: 1\boxed{1}
    "
    :::

    :::question type="NAT" question="A function is defined as f(x)=x3+ax2+bxf(x) = x^3 + ax^2 + bx. It is known to have a local extremum at x=βˆ’1x = -1 and a point of inflection at x=1x = 1. What is the value of bb?" answer="-9" hint="A local extremum implies the first derivative is zero at that point. A point of inflection implies the second derivative is zero at that point. Use these two conditions to create a system of equations to solve for the unknown constants." solution="
    The given function is f(x)=x3+ax2+bxf(x) = x^3 + ax^2 + bx.

    Step 1: Find the first and second derivatives.

    fβ€²(x)=3x2+2ax+bf'(x) = 3x^2 + 2ax + b

    fβ€²β€²(x)=6x+2af''(x) = 6x + 2a

    Step 2: Use the condition for the point of inflection.
    We are given that there is a point of inflection at x=1x = 1. This means that fβ€²β€²(1)=0f''(1) = 0.

    fβ€²β€²(1)=6(1)+2a=0f''(1) = 6(1) + 2a = 0

    6+2a=0β€…β€ŠβŸΉβ€…β€Š2a=βˆ’6β€…β€ŠβŸΉβ€…β€Ša=βˆ’36 + 2a = 0 \implies 2a = -6 \implies a = -3

    Step 3: Use the condition for the local extremum.
    We are given that there is a local extremum at x=βˆ’1x = -1. This means that fβ€²(βˆ’1)=0f'(-1) = 0.

    fβ€²(βˆ’1)=3(βˆ’1)2+2a(βˆ’1)+b=0f'(-1) = 3(-1)^2 + 2a(-1) + b = 0

    3βˆ’2a+b=03 - 2a + b = 0

    Step 4: Solve for bb.
    Now we substitute the value of a=βˆ’3a = -3 that we found in Step 2 into the equation from Step 3.

    3βˆ’2(βˆ’3)+b=03 - 2(-3) + b = 0

    3+6+b=03 + 6 + b = 0

    9+b=0β€…β€ŠβŸΉβ€…β€Šb=βˆ’99 + b = 0 \implies b = -9

    The value of bb is -9.
    Answer: βˆ’9\boxed{-9}
    "
    :::

    ---

    What's Next?

    πŸ’‘ Continue Your GATE Journey

    Having completed this chapter on single-variable optimization, you have established a firm foundation for several advanced topics in engineering mathematics. The principles we have discussed are not isolated; rather, they form the bedrock upon which more complex analytical techniques are built.

    Key connections:

      • Relation to Previous Chapters: This chapter was a direct and powerful application of the principles of Differential Calculus. The concepts of derivatives as rates of change, slopes of tangents, and measures of concavity were instrumental in our development of the first and second derivative tests. Without a solid understanding of differentiation, the optimization methods discussed here would be inaccessible.
      • Foundation for Future Chapters: The concepts mastered here are fundamental prerequisites for several subsequent topics:
    - Multivariable Calculus: The search for maxima and minima extends naturally to functions of several variables (e.g., f(x,y)f(x, y)). The first derivative test evolves into setting the gradient vector to zero (βˆ‡f=0\nabla f = \mathbf{0}), and the second derivative test is generalized by analyzing the Hessian matrix. - Numerical Methods: For many real-world engineering problems, the equation fβ€²(x)=0f'(x)=0 cannot be solved analytically. Chapters on numerical methods will introduce iterative techniques, such as the Newton-Raphson method, to find approximate solutions to such optimization problems. - Linear Programming: In many disciplines, particularly Industrial and Production Engineering, you will encounter optimization problems involving linear functions subject to linear constraints. This specialized field, known as Linear Programming, builds on the core idea of finding optimal values within a defined feasible region.

    🎯 Key Points to Remember

    • βœ“ Master the core concepts in Optimization before moving to advanced topics
    • βœ“ Practice with previous year questions to understand exam patterns
    • βœ“ Review short notes regularly for quick revision before exams

    Related Topics in Calculus and Optimization

    More Resources

    Why Choose MastersUp?

    🎯

    AI-Powered Plans

    Personalized study schedules based on your exam date and learning pace

    πŸ“š

    15,000+ Questions

    Verified questions with detailed solutions from past papers

    πŸ“Š

    Smart Analytics

    Track your progress with subject-wise performance insights

    πŸ”–

    Bookmark & Revise

    Save important questions for quick revision before exams

    Start Your Free Preparation β†’

    No credit card required β€’ Free forever for basic features