SOLVER7 Study. Nothing Else.
Miscellaneous Exercise Chapter 6 Q11

Find the absolute maximum and minimum values of the function \(f\) given by
\(f(x) = cos^2 x + sin\ x, x\ \in[0,\pi].\)

CBSE Class 12 Maths · Application of Derivatives

Solution

📖 Absolute Maximum and Minimum of a Function on a Closed Interval

Detailed Explanation

To find absolute extrema of a continuous function \( f \) on a closed interval \([a,b]\), we use the Closed Interval Method. Since \( f \) is continuous on a closed interval, it must attain both an absolute maximum and an absolute minimum. These extreme values can occur only at critical points (where \( f'(x) = 0 \) or \( f'(x) \) does not exist) inside the interval, or at the endpoints \( a \) and \( b \). So we simply evaluate \( f \) at all such candidate points and compare the values. The largest value is the absolute maximum and the smallest is the absolute minimum. For this problem we first simplify \( \cos^2 x \) using the identity \( \cos^2 x = 1 - \sin^2 x \), so that the whole function depends only on \( \sin x \).

Formula Used

Closed Interval Method: absolute extrema of continuous \( f \) on \([a,b]\) occur at critical points (where \( f'(x)=0 \)) or at endpoints. Identity used: \( \cos^2 x = 1 - \sin^2 x \).

Solution

  1. Step 1: Write the given function. \[ f(x) = \cos^2 x + \sin x, \quad x \in [0, \pi] \] This function is continuous on the closed interval \([0, \pi]\), so by the Closed Interval Method it will attain both an absolute maximum and an absolute minimum.
  2. Step 2: Differentiate \( f(x) \) with respect to \( x \). Using \( \frac{d}{dx}(\cos^2 x) = 2\cos x \cdot (-\sin x) = -2\sin x \cos x \) and \( \frac{d}{dx}(\sin x) = \cos x \), we get \[ f'(x) = -2\sin x \cos x + \cos x. \] Factor out \( \cos x \): \[ f'(x) = \cos x\,(1 - 2\sin x). \]
  3. Step 3: Find the critical points by setting \( f'(x) = 0 \). \[ \cos x\,(1 - 2\sin x) = 0 \] This gives either \( \cos x = 0 \) or \( 1 - 2\sin x = 0 \). From \( \cos x = 0 \) in \([0, \pi]\) we get \( x = \frac{\pi}{2} \). From \( \sin x = \frac{1}{2} \) in \([0, \pi]\) we get \( x = \frac{\pi}{6} \) and \( x = \frac{5\pi}{6} \).
  4. Step 4: List all candidate points: the critical points \( x = \frac{\pi}{6},\ \frac{\pi}{2},\ \frac{5\pi}{6} \) and the endpoints \( x = 0 \) and \( x = \pi \). We must evaluate \( f \) at each of these to compare.
  5. Step 5: Evaluate \( f \) at each candidate point. At \( x = 0 \): \[ f(0) = \cos^2 0 + \sin 0 = 1 + 0 = 1. \] At \( x = \frac{\pi}{6} \): \[ f\left(\tfrac{\pi}{6}\right) = \left(\tfrac{\sqrt{3}}{2}\right)^2 + \tfrac{1}{2} = \tfrac{3}{4} + \tfrac{1}{2} = \tfrac{5}{4}. \] At \( x = \frac{\pi}{2} \): \[ f\left(\tfrac{\pi}{2}\right) = 0 + 1 = 1. \] At \( x = \frac{5\pi}{6} \): \[ f\left(\tfrac{5\pi}{6}\right) = \left(-\tfrac{\sqrt{3}}{2}\right)^2 + \tfrac{1}{2} = \tfrac{3}{4} + \tfrac{1}{2} = \tfrac{5}{4}. \] At \( x = \pi \): \[ f(\pi) = \cos^2 \pi + \sin \pi = 1 + 0 = 1. \]
  6. Step 6: Compare all the values obtained: \( 1,\ \tfrac{5}{4},\ 1,\ \tfrac{5}{4},\ 1 \). The largest value is \( \tfrac{5}{4} \) and the smallest value is \( 1 \). Therefore the absolute maximum is \( \tfrac{5}{4} \) and the absolute minimum is \( 1 \).

Final Answer

Absolute maximum value \( = \dfrac{5}{4} \) (attained at \( x = \dfrac{\pi}{6} \) and \( x = \dfrac{5\pi}{6} \)). Absolute minimum value \( = 1 \) (attained at \( x = 0,\ \dfrac{\pi}{2},\ \pi \)).

Common Mistake

A common mistake is to check only the critical points and forget to evaluate \( f \) at the endpoints \( x = 0 \) and \( x = \pi \). On a closed interval the absolute extrema can occur at the endpoints, so they must always be included in the comparison.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: State the function and note continuity: We are given \[ f(x) = \cos^2 x + \sin x, \quad x \in [0,\, \pi]. \] — Reason: Writing the function clearly on its domain confirms it is continuous on the closed interval \( [0, \pi] \), which guarantees that absolute extrema exist and can be found by the Closed Interval Method.
  2. Step 2: Differentiate to find the derivative: Differentiating term by term using the chain rule, \( \dfrac{d}{dx}(\cos^2 x) = 2\cos x \cdot (-\sin x) = -2\sin x \cos x \), and \( \dfrac{d}{dx}(\sin x) = \cos x \), so \[ f'(x) = -2\sin x \cos x + \cos x. \] — Reason: We need \( f'(x) \) to locate the critical points inside the interval.
  3. Step 3: Factor the derivative and solve f'(x) = 0: Factoring out \( \cos x \) from the derivative gives \[ f'(x) = \cos x\,(1 - 2\sin x). \] Setting \( f'(x) = 0 \), either \( \cos x = 0 \) or \( 1 - 2\sin x = 0 \). From \( \cos x = 0 \) on \( [0, \pi] \): \( x = \dfrac{\pi}{2} \). From \( 1 - 2\sin x = 0 \), i.e. \( \sin x = \dfrac{1}{2} \), on \( [0, \pi] \): \( x = \dfrac{\pi}{6} \) and \( x = \dfrac{5\pi}{6} \). — Reason: Critical points are the only interior locations where the function can change direction, so they are candidates for extrema.
  4. Step 4: List all candidate points: The candidates are: endpoints \( x = 0 \) and \( x = \pi \), and critical points \( x = \dfrac{\pi}{6} \), \( x = \dfrac{\pi}{2} \), and \( x = \dfrac{5\pi}{6} \). — Reason: The Closed Interval Method requires us to check every one of these five points; none can be skipped.
  5. Step 5: Evaluate f at each candidate point: At \( x = 0 \): \( f(0) = \cos^2 0 + \sin 0 = 1 + 0 = 1 \). At \( x = \dfrac{\pi}{6} \): \( f\!\left(\dfrac{\pi}{6}\right) = \cos^2\!\left(\dfrac{\pi}{6}\right) + \sin\!\left(\dfrac{\pi}{6}\right) = \dfrac{3}{4} + \dfrac{1}{2} = \dfrac{5}{4} \). At \( x = \dfrac{\pi}{2} \): \( f\!\left(\dfrac{\pi}{2}\right) = \cos^2\!\left(\dfrac{\pi}{2}\right) + \sin\!\left(\dfrac{\pi}{2}\right) = 0 + 1 = 1 \). At \( x = \dfrac{5\pi}{6} \): \( f\!\left(\dfrac{5\pi}{6}\right) = \cos^2\!\left(\dfrac{5\pi}{6}\right) + \sin\!\left(\dfrac{5\pi}{6}\right) = \dfrac{3}{4} + \dfrac{1}{2} = \dfrac{5}{4} \). At \( x = \pi \): \( f(\pi) = \cos^2\pi + \sin\pi = 1 + 0 = 1 \). — Reason: Substituting exact values lets us directly compare the function's output at every candidate.
  6. Step 6: Compare all values and identify extrema: Collecting the results: \( f(0) = 1 \), \( f\!\left(\dfrac{\pi}{6}\right) = \dfrac{5}{4} \), \( f\!\left(\dfrac{\pi}{2}\right) = 1 \), \( f\!\left(\dfrac{5\pi}{6}\right) = \dfrac{5}{4} \), \( f(\pi) = 1 \). The largest value is \( \dfrac{5}{4} \) and the smallest is \( 1 \). — Reason: A direct numerical comparison is the final step of the Closed Interval Method; the biggest output is the absolute maximum and the smallest is the absolute minimum.

Final Answer

Absolute maximum value \( = \dfrac{5}{4} \) (attained at \( x = \dfrac{\pi}{6} \) and \( x = \dfrac{5\pi}{6} \)). Absolute minimum value \( = 1 \) (attained at \( x = 0,\ \dfrac{\pi}{2},\ \pi \)).

Common Mistake

One common mistake: forgetting to check the endpoints \( x = 0 \) and \( x = \pi \). Students who only evaluate \( f \) at the critical points miss these endpoint values and may incorrectly identify the absolute minimum.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Differentiate and factorise: \[ f(x) = \cos^2 x + \sin x, \quad x \in [0,\pi] \] \[ f'(x) = -2\sin x \cos x + \cos x = \cos x\,(1 - 2\sin x) \]
  2. Step 2: Solve \( f'(x) = 0 \): \( \cos x = 0 \Rightarrow x = \dfrac{\pi}{2} \) and \( 1 - 2\sin x = 0 \Rightarrow \sin x = \dfrac{1}{2} \Rightarrow x = \dfrac{\pi}{6},\ \dfrac{5\pi}{6} \)
  3. Step 3: Evaluate \( f \) at all candidates: \[ f(0) = 1 + 0 = 1, \quad f\!\left(\tfrac{\pi}{6}\right) = \tfrac{3}{4} + \tfrac{1}{2} = \tfrac{5}{4}, \quad f\!\left(\tfrac{\pi}{2}\right) = 0 + 1 = 1, \quad f\!\left(\tfrac{5\pi}{6}\right) = \tfrac{3}{4} + \tfrac{1}{2} = \tfrac{5}{4}, \quad f(\pi) = 1 + 0 = 1 \]

Answer: Absolute maximum value \( = \dfrac{5}{4} \) (attained at \( x = \dfrac{\pi}{6} \) and \( x = \dfrac{5\pi}{6} \)). Absolute minimum value \( = 1 \) (attained at \( x = 0,\ \dfrac{\pi}{2},\ \pi \)).

➕ More Examples

More Examples

Example 1

Question: Find the absolute maximum and minimum values of the function \( f(x) = \sin^2 x - \cos x \) on the interval \( \left[0, \pi\right] \).

Solution: We begin by differentiating \( f(x) = \sin^2 x - \cos x \). Using the chain rule, \( \frac{d}{dx}(\sin^2 x) = 2\sin x \cos x = \sin 2x \) and \( \frac{d}{dx}(-\cos x) = \sin x \). So the derivative is \[ f'(x) = 2\sin x \cos x + \sin x = \sin x(2\cos x + 1). \] Setting \( f'(x) = 0 \): \[ \sin x(2\cos x + 1) = 0. \] This gives two cases. Case 1: \( \sin x = 0 \). On \( [0,\pi] \) this yields \( x = 0 \) and \( x = \pi \), which are the endpoints. Case 2: \( 2\cos x + 1 = 0 \), so \( \cos x = -\dfrac{1}{2} \). On \( [0,\pi] \) this gives \( x = \dfrac{2\pi}{3} \), which is an interior critical point. Now we evaluate \( f \) at the critical point and both endpoints. At \( x = 0 \): \[ f(0) = \sin^2(0) - \cos(0) = 0 - 1 = -1. \] At \( x = \dfrac{2\pi}{3} \): We have \( \sin\left(\dfrac{2\pi}{3}\right) = \dfrac{\sqrt{3}}{2} \) and \( \cos\left(\dfrac{2\pi}{3}\right) = -\dfrac{1}{2} \). \[ f\!\left(\frac{2\pi}{3}\right) = \left(\frac{\sqrt{3}}{2}\right)^2 - \left(-\frac{1}{2}\right) = \frac{3}{4} + \frac{1}{2} = \frac{5}{4}. \] At \( x = \pi \): \[ f(\pi) = \sin^2(\pi) - \cos(\pi) = 0 - (-1) = 1. \] Comparing the values \( -1,\; \dfrac{5}{4},\; 1 \): The absolute maximum value is \( \dfrac{5}{4} \), attained at \( x = \dfrac{2\pi}{3} \). The absolute minimum value is \( -1 \), attained at \( x = 0 \).

Answer: Absolute maximum: \( \dfrac{5}{4} \) at \( x = \dfrac{2\pi}{3} \); Absolute minimum: \( -1 \) at \( x = 0 \).

Example 2

Question: Find the absolute maximum and minimum values of the function \( g(x) = \sin x + \cos 2x \) on the interval \( \left[0, \dfrac{\pi}{2}\right] \).

Solution: We differentiate \( g(x) = \sin x + \cos 2x \). Recall \( \frac{d}{dx}(\cos 2x) = -2\sin 2x \) and use \( \sin 2x = 2\sin x \cos x \). \[ g'(x) = \cos x - 2\sin 2x = \cos x - 4\sin x \cos x = \cos x(1 - 4\sin x). \] Setting \( g'(x) = 0 \): \[ \cos x(1 - 4\sin x) = 0. \] Case 1: \( \cos x = 0 \). On \( \left[0,\dfrac{\pi}{2}\right] \) this gives \( x = \dfrac{\pi}{2} \), which is an endpoint. Case 2: \( 1 - 4\sin x = 0 \), so \( \sin x = \dfrac{1}{4} \), giving the interior critical point \( x = \sin^{-1}\!\left(\dfrac{1}{4}\right) \). Now we evaluate \( g \) at the critical point and both endpoints. At \( x = 0 \): \[ g(0) = \sin 0 + \cos 0 = 0 + 1 = 1. \] At \( x = \sin^{-1}\!\left(\dfrac{1}{4}\right) \): Let \( \sin x = \dfrac{1}{4} \). Then \( \cos 2x = 1 - 2\sin^2 x = 1 - 2 \cdot \dfrac{1}{16} = 1 - \dfrac{1}{8} = \dfrac{7}{8} \). \[ g\!\left(\sin^{-1}\!\left(\frac{1}{4}\right)\right) = \frac{1}{4} + \frac{7}{8} = \frac{2}{8} + \frac{7}{8} = \frac{9}{8}. \] At \( x = \dfrac{\pi}{2} \): \[ g\!\left(\frac{\pi}{2}\right) = \sin\!\left(\frac{\pi}{2}\right) + \cos(\pi) = 1 + (-1) = 0. \] Comparing the values \( 1,\; \dfrac{9}{8},\; 0 \): The absolute maximum value is \( \dfrac{9}{8} \), attained at \( x = \sin^{-1}\!\left(\dfrac{1}{4}\right) \). The absolute minimum value is \( 0 \), attained at \( x = \dfrac{\pi}{2} \).

Answer: Absolute maximum: \( \dfrac{9}{8} \) at \( x = \sin^{-1}\!\left(\dfrac{1}{4}\right) \); Absolute minimum: \( 0 \) at \( x = \dfrac{\pi}{2} \).

🎯 Try a Similar Question

Try a Similar Question

Question: Find the absolute maximum and minimum values of the function \(f\) given by \(f(x) = \sin^2 x + \cos x\), where \(x \in [0, \pi]\).

Solution

  1. Step 1: Differentiate the function: We have \(f(x) = \sin^2 x + \cos x\). Differentiating with respect to \(x\): \[f'(x) = 2 \sin x \cos x - \sin x\] Using the identity \(2 \sin x \cos x = \sin 2x\), this can also be written as \[f'(x) = \sin 2x - \sin x\] but we will factor it directly: \[f'(x) = \sin x (2 \cos x - 1)\]
  2. Step 2: Find critical points: Set \(f'(x) = 0\): \[\sin x (2 \cos x - 1) = 0\] This gives either \(\sin x = 0\) or \(2 \cos x - 1 = 0\). From \(\sin x = 0\) on \([0, \pi]\): \(x = 0\) and \(x = \pi\) (these are endpoints). From \(2 \cos x - 1 = 0\), we get \(\cos x = \dfrac{1}{2}\), so \(x = \dfrac{\pi}{3}\) on \([0, \pi]\). The interior critical point is \(x = \dfrac{\pi}{3}\).
  3. Step 3: Evaluate f at the critical point and the endpoints: Evaluate \(f\) at \(x = 0\): \[f(0) = \sin^2 0 + \cos 0 = 0 + 1 = 1\] Evaluate \(f\) at \(x = \dfrac{\pi}{3}\): \[f\\!\left(\frac{\pi}{3}\right) = \sin^2\\!\left(\frac{\pi}{3}\right) + \cos\\!\left(\frac{\pi}{3}\right) = \left(\frac{\sqrt{3}}{2}\right)^2 + \frac{1}{2} = \frac{3}{4} + \frac{1}{2} = \frac{5}{4}\] Evaluate \(f\) at \(x = \pi\): \[f(\pi) = \sin^2 \pi + \cos \pi = 0 + (-1) = -1\]
  4. Step 4: Compare all values: The values obtained are: \(f(0) = 1\), \(f\\!\left(\dfrac{\pi}{3}\right) = \dfrac{5}{4}\), and \(f(\pi) = -1\). Comparing: the largest value is \(\dfrac{5}{4}\) and the smallest value is \(-1\).
  5. Step 5: State the conclusion: The absolute maximum value of \(f\) on \([0, \pi]\) is \(\dfrac{5}{4}\), attained at \(x = \dfrac{\pi}{3}\). The absolute minimum value of \(f\) on \([0, \pi]\) is \(-1\), attained at \(x = \pi\).

Answer: Absolute maximum value \(= \dfrac{5}{4}\) attained at \(x = \dfrac{\pi}{3}\). Absolute minimum value \(= -1\) attained at \(x = \pi\).

Everything you get with Solver7

More questions in Application of Derivatives

Chapter 6 Examples Q1 Chapter 6 Examples Q2 Chapter 6 Examples Q3 Chapter 6 Examples Q4 65/1/1 2024 / Section A Q4 Chapter 6 Examples Q5 65(B) 2026 / Section A Q5 65/2/1 2024 / Section A Q5 65/3/1 2024 / Section A Q5 Chapter 6 Examples Q6 65/4/1 2026 / Section A Q6 Chapter 6 Examples Q7 65/1/1 2026 / Section A Q7 Chapter 6 Examples Q8 Chapter 6 Examples Q9(i) 65/3/1 2026 / Section A Q9 65/5/1 2026 / Section A Q9 Chapter 6 Examples Q9(ii) Chapter 6 Examples Q9(iii) Chapter 6 Examples Q10 Chapter 6 Examples Q11 65/2/3 2026 / Section A Q13 Chapter 6 Examples Q12 Chapter 6 Examples Q13 Chapter 6 Examples Q14 65/1/1 2023 / Section A Q16 Chapter 6 Examples Q15 Chapter 6 Examples Q16 65/4/2 2024 / Section A Q18 Chapter 6 Examples Q17 65(B) 2026 / Section A Q19 Chapter 6 Examples Q18 Chapter 6 Examples Q19 65/4/2 2024 / Section B Q21 Chapter 6 Examples Q20 65/3/1 2026 / Section B Q22 Chapter 6 Examples Q21 65(B) 2026 / Section B Q22(a) 65/1/1 2024 / Section B Q22 65/1/1 2026 / Section B Q22 65/3/1 2023 / Section B Q23 Chapter 6 Examples Q22 65(B) 2026 / Section B Q22(b) 65/4/1 2023 / Section B Q23 65/4/1 2026 / Section B Q23 65/4/2 2024 / Section B Q23 65/5/1 2026 / Section B Q23 Chapter 6 Examples Q23 65/2/1 2024 / Section B Q23 65/2/3 2026 / Section B Q24(a) Chapter 6 Examples Q24 65/2/3 2026 / Section B Q24(b) Chapter 6 Examples Q25 65/1/1 2023 / Section B Q25 65/2/1 2024 / Section B Q25 65/2/2 2023 / Section B Q25 Chapter 6 Examples Q26 Chapter 6 Examples Q27 Chapter 6 Examples Q28 65/3/1 2024 / Section C Q27(a)