SOLVER7 Study. Nothing Else.
2026 Board Paper Q24(a)

Find the absolute maximum value of \( f(x) = cos\ x+sin^2\ x,x\in[0,\pi]\)

CBSE Class 12 Maths · Application of Derivatives

Solution

👶 Simple Explanation

Simple Explanation

Imagine you are walking up and down a hilly road that starts and ends at fixed gates. You want to find the highest point on that road. The function \( f(x) = \cos x + \sin^2 x \) is like that hilly road on the interval from \( 0 \) to \( \pi \). We check where the road stops climbing (those are called critical points) and also peek at both gates. Comparing all those heights, the tallest one wins. Here, the highest point turns out to be \( \dfrac{5}{4} \), reached at \( x = \dfrac{\pi}{3} \).

Answer: The absolute maximum value is \(\dfrac{5}{4}\), attained at \(x = \dfrac{\pi}{3}\).

📖 Absolute Maximum of f(x) = cos x + sin²x on [0, π]

Detailed Explanation

To find the absolute (global) maximum of a continuous function on a closed interval \([a, b]\), we use the Closed Interval Method. Since a continuous function on a closed interval always attains its maximum and minimum, these extreme values occur either at critical points inside the interval (where \(f'(x) = 0\) or is undefined) or at the endpoints. So the plan is: differentiate the function, find the critical points that lie inside the interval, and then compare the values of \(f\) at all critical points and both endpoints. The largest of these values is the absolute maximum. Here we also use the identity \(\sin^2 x = 1 - \cos^2 x\) to simplify differentiation.

Formula Used

Closed Interval Method: compare \(f\) at all critical points (where \(f'(x)=0\)) and at the endpoints \(a\) and \(b\). Identity used: \(\sin^2 x = 1 - \cos^2 x\).

Solution

  1. Step 1: Write the function and simplify using an identity. We have \(f(x) = \cos x + \sin^2 x\). Using \(\sin^2 x = 1 - \cos^2 x\), we get \[f(x) = \cos x + 1 - \cos^2 x.\]
  2. Step 2: Differentiate to find \(f'(x)\). \[f'(x) = -\sin x + 2\cos x \cdot (-(-\sin x))\] Actually, differentiate the original form directly: \[f'(x) = -\sin x + 2\sin x \cos x.\]
  3. Step 3: Set \(f'(x) = 0\) to find critical points. \[-\sin x + 2\sin x \cos x = 0\] Factor out \(\sin x\): \[\sin x\,(2\cos x - 1) = 0.\] So either \(\sin x = 0\) or \(\cos x = \tfrac{1}{2}\).
  4. Step 4: Solve for \(x\) in \([0, \pi]\). From \(\sin x = 0\) we get \(x = 0\) and \(x = \pi\). From \(\cos x = \tfrac{1}{2}\) we get \(x = \tfrac{\pi}{3}\). So the points to check are \(x = 0,\ \tfrac{\pi}{3},\ \pi\).
  5. Step 5: Evaluate \(f\) at each point. At \(x = 0\): \[f(0) = \cos 0 + \sin^2 0 = 1 + 0 = 1.\] At \(x = \tfrac{\pi}{3}\): \[f\left(\tfrac{\pi}{3}\right) = \cos\tfrac{\pi}{3} + \sin^2\tfrac{\pi}{3} = \tfrac{1}{2} + \left(\tfrac{\sqrt{3}}{2}\right)^2 = \tfrac{1}{2} + \tfrac{3}{4} = \tfrac{5}{4}.\] At \(x = \pi\): \[f(\pi) = \cos\pi + \sin^2\pi = -1 + 0 = -1.\]
  6. Step 6: Compare the values. The values are \(1,\ \tfrac{5}{4},\ -1\). The largest is \(\tfrac{5}{4}\), which occurs at \(x = \tfrac{\pi}{3}\). Therefore this is the absolute maximum.

Final Answer

The absolute maximum value is \(\dfrac{5}{4}\), attained at \(x = \dfrac{\pi}{3}\).

Common Mistake

A common mistake is to forget to check the endpoints \(x = 0\) and \(x = \pi\), or to stop at solving \(f'(x) = 0\) without comparing the function values. The absolute maximum on a closed interval can occur at an endpoint, so you must always evaluate and compare \(f\) at every critical point AND both endpoints.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Rewrite the function using a trigonometric identity: Start with \( f(x) = \cos x + \sin^2 x \). Replace \( \sin^2 x \) with \( 1 - \cos^2 x \) to get \[ f(x) = \cos x + 1 - \cos^2 x. \] Reason: Expressing everything in terms of \( \cos x \) is not strictly necessary, but it confirms the structure. We will differentiate the original form directly in the next step.
  2. Step 2: Differentiate to obtain \( f'(x) \): Differentiate \( f(x) = \cos x + \sin^2 x \) term by term. The derivative of \( \cos x \) is \( -\sin x \), and by the chain rule the derivative of \( \sin^2 x \) is \( 2 \sin x \cos x \). Therefore \[ f'(x) = -\sin x + 2 \sin x \cos x. \] Reason: We need \( f'(x) \) to locate the points where the rate of change is zero — those are the candidates for extreme values.
  3. Step 3: Solve \( f'(x) = 0 \) to find critical points: Set \( f'(x) = 0 \): \[ -\sin x + 2 \sin x \cos x = 0. \] Factor out \( \sin x \): \[ \sin x \left(2\cos x - 1\right) = 0. \] This gives two cases: \( \sin x = 0 \) or \( \cos x = \dfrac{1}{2} \). Reason: Factoring reduces the equation to simpler sub-equations, each of which can be solved individually.
  4. Step 4: Identify which critical points lie in \( [0, \pi] \): From \( \sin x = 0 \) on \( [0, \pi] \): solutions are \( x = 0 \) and \( x = \pi \) (these are the endpoints). From \( \cos x = \dfrac{1}{2} \) on \( [0, \pi] \): the unique solution is \( x = \dfrac{\pi}{3} \). So the only interior critical point is \( x = \dfrac{\pi}{3} \). Reason: We discard solutions outside the given interval because only values inside \( [0, \pi] \) are relevant to the problem.
  5. Step 5: Evaluate \( f \) at the critical point and at both endpoints: At \( x = 0 \): \[ f(0) = \cos 0 + \sin^2 0 = 1 + 0 = 1. \] At \( x = \dfrac{\pi}{3} \): \( \cos\dfrac{\pi}{3} = \dfrac{1}{2} \) and \( \sin\dfrac{\pi}{3} = \dfrac{\sqrt{3}}{2} \), so \[ f\!\left(\frac{\pi}{3}\right) = \frac{1}{2} + \left(\frac{\sqrt{3}}{2}\right)^2 = \frac{1}{2} + \frac{3}{4} = \frac{5}{4}. \] At \( x = \pi \): \[ f(\pi) = \cos\pi + \sin^2\pi = -1 + 0 = -1. \] Reason: The Closed Interval Method requires us to compare function values at every candidate point; computation is the only way to determine which is largest.
  6. Step 6: Compare values and state the absolute maximum: The three values are \( f(0) = 1 \), \( f\!\left(\dfrac{\pi}{3}\right) = \dfrac{5}{4} \), and \( f(\pi) = -1 \). Since \( \dfrac{5}{4} > 1 > -1 \), the largest value is \( \dfrac{5}{4} \), attained at \( x = \dfrac{\pi}{3} \). Reason: Direct comparison of the computed values identifies the global (absolute) maximum on the closed interval.

Final Answer

The absolute maximum value is \(\dfrac{5}{4}\), attained at \(x = \dfrac{\pi}{3}\).

Common Mistake

One common mistake: forgetting to check the endpoints \( x = 0 \) and \( x = \pi \) — students sometimes only evaluate \( f \) at the interior critical point \( x = \dfrac{\pi}{3} \) and incorrectly declare it the absolute maximum without confirming that the endpoint values are smaller.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Rewrite using \(\sin^2 x = 1 - \cos^2 x\): \[f(x) = \cos x + 1 - \cos^2 x\] Differentiate: \[f'(x) = -\sin x + 2\sin x\cos x = \sin x(2\cos x - 1)\]
  2. Step 2: Set \(f'(x) = 0\): either \(\sin x = 0\) giving \(x = 0,\, \pi\), or \(\cos x = \dfrac{1}{2}\) giving \(x = \dfrac{\pi}{3}\). Critical points in \([0, \pi]\): \(x = 0,\, \dfrac{\pi}{3},\, \pi\).
  3. Step 3: Evaluate: \[f(0) = 1 + 0 = 1,\quad f\!\left(\frac{\pi}{3}\right) = \frac{1}{2} + \frac{3}{4} = \frac{5}{4},\quad f(\pi) = -1 + 0 = -1\]

Answer: The absolute maximum value is \(\dfrac{5}{4}\), attained at \(x = \dfrac{\pi}{3}\).

➕ More Examples

More Examples

Example 1

Question: Find the absolute maximum value of \( f(x) = \sin x + \cos^2 x \) on \( \left[0, \pi\right] \).

Solution: Step 1: Differentiate f(x). \[ f(x) = \sin x + \cos^2 x \] \[ f'(x) = \cos x + 2\cos x(-\sin x) = \cos x - 2\sin x \cos x = \cos x(1 - 2\sin x) \] Step 2: Set f'(x) = 0. \[ \cos x(1 - 2\sin x) = 0 \] So either \( \cos x = 0 \) or \( 1 - 2\sin x = 0 \). From \( \cos x = 0 \): in \( [0, \pi] \), we get \( x = \dfrac{\pi}{2} \). From \( 1 - 2\sin x = 0 \), i.e., \( \sin x = \dfrac{1}{2} \): in \( [0, \pi] \), we get \( x = \dfrac{\pi}{6} \) and \( x = \dfrac{5\pi}{6} \). Step 3: Evaluate f at the critical points and endpoints. At \( x = 0 \): \[ f(0) = \sin 0 + \cos^2 0 = 0 + 1 = 1 \] At \( x = \dfrac{\pi}{6} \): \[ f\!\left(\frac{\pi}{6}\right) = \sin\frac{\pi}{6} + \cos^2\frac{\pi}{6} = \frac{1}{2} + \frac{3}{4} = \frac{5}{4} \] At \( x = \dfrac{\pi}{2} \): \[ f\!\left(\frac{\pi}{2}\right) = \sin\frac{\pi}{2} + \cos^2\frac{\pi}{2} = 1 + 0 = 1 \] At \( x = \dfrac{5\pi}{6} \): \[ f\!\left(\frac{5\pi}{6}\right) = \sin\frac{5\pi}{6} + \cos^2\frac{5\pi}{6} = \frac{1}{2} + \frac{3}{4} = \frac{5}{4} \] At \( x = \pi \): \[ f(\pi) = \sin\pi + \cos^2\pi = 0 + 1 = 1 \] Step 4: Compare all values. The values are 1, \( \dfrac{5}{4} \), 1, \( \dfrac{5}{4} \), 1. The largest value is \( \dfrac{5}{4} \), attained at \( x = \dfrac{\pi}{6} \) and \( x = \dfrac{5\pi}{6} \).

Answer: The absolute maximum value is \( \dfrac{5}{4} \).

Example 2

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

Solution: Step 1: Differentiate g(x). \[ g(x) = 2\cos x + \sin 2x \] \[ g'(x) = -2\sin x + 2\cos 2x \] Step 2: Set g'(x) = 0. \[ -2\sin x + 2\cos 2x = 0 \] \[ \cos 2x = \sin x \] Using the identity \( \cos 2x = 1 - 2\sin^2 x \): \[ 1 - 2\sin^2 x = \sin x \] \[ 2\sin^2 x + \sin x - 1 = 0 \] Factorising: \[ (2\sin x - 1)(\sin x + 1) = 0 \] So \( \sin x = \dfrac{1}{2} \) or \( \sin x = -1 \). In \( \left[0, \dfrac{\pi}{2}\right] \), \( \sin x = -1 \) has no solution. From \( \sin x = \dfrac{1}{2} \): \( x = \dfrac{\pi}{6} \). Step 3: Evaluate g at the critical point and endpoints. At \( x = 0 \): \[ g(0) = 2\cos 0 + \sin 0 = 2 + 0 = 2 \] At \( x = \dfrac{\pi}{6} \): \[ g\!\left(\frac{\pi}{6}\right) = 2\cos\frac{\pi}{6} + \sin\frac{\pi}{3} = 2 \cdot \frac{\sqrt{3}}{2} + \frac{\sqrt{3}}{2} = \sqrt{3} + \frac{\sqrt{3}}{2} = \frac{3\sqrt{3}}{2} \] At \( x = \dfrac{\pi}{2} \): \[ g\!\left(\frac{\pi}{2}\right) = 2\cos\frac{\pi}{2} + \sin\pi = 0 + 0 = 0 \] Step 4: Compare all values. We have \( \dfrac{3\sqrt{3}}{2} \approx 2.598 \), which is greater than 2 and 0. Therefore, the absolute maximum value is \( \dfrac{3\sqrt{3}}{2} \), attained at \( x = \dfrac{\pi}{6} \).

Answer: The absolute maximum value is \( \dfrac{3\sqrt{3}}{2} \).

🎯 Try a Similar Question

Try a Similar Question

Question: Find the absolute maximum value of \(f(x) = \sin x + \cos^2 x\) on \(\left[0, \pi\right]\).

Solution

  1. Step 1: Differentiate the function: We have \(f(x) = \sin x + \cos^2 x\). Differentiating with respect to \(x\): \[f'(x) = \cos x + 2\cos x(-\sin x) = \cos x - 2\sin x \cos x = \cos x(1 - 2\sin x)\]
  2. Step 2: Find the critical points: Set \(f'(x) = 0\): \[\cos x(1 - 2\sin x) = 0\] This gives two cases. Case 1: \(\cos x = 0\), so \(x = \dfrac{\pi}{2}\) in \([0, \pi]\). Case 2: \(1 - 2\sin x = 0\), so \(\sin x = \dfrac{1}{2}\), giving \(x = \dfrac{\pi}{6}\) and \(x = \dfrac{5\pi}{6}\) in \([0, \pi]\). The critical points in the open interval are \(x = \dfrac{\pi}{6},\; \dfrac{\pi}{2},\; \dfrac{5\pi}{6}\).
  3. Step 3: Evaluate f at the critical points and the endpoints: At \(x = 0\): \[f(0) = \sin 0 + \cos^2 0 = 0 + 1 = 1\] At \(x = \dfrac{\pi}{6}\): \[f\!\left(\frac{\pi}{6}\right) = \sin\frac{\pi}{6} + \cos^2\frac{\pi}{6} = \frac{1}{2} + \left(\frac{\sqrt{3}}{2}\right)^2 = \frac{1}{2} + \frac{3}{4} = \frac{5}{4}\] At \(x = \dfrac{\pi}{2}\): \[f\!\left(\frac{\pi}{2}\right) = \sin\frac{\pi}{2} + \cos^2\frac{\pi}{2} = 1 + 0 = 1\] At \(x = \dfrac{5\pi}{6}\): \[f\!\left(\frac{5\pi}{6}\right) = \sin\frac{5\pi}{6} + \cos^2\frac{5\pi}{6} = \frac{1}{2} + \left(-\frac{\sqrt{3}}{2}\right)^2 = \frac{1}{2} + \frac{3}{4} = \frac{5}{4}\] At \(x = \pi\): \[f(\pi) = \sin\pi + \cos^2\pi = 0 + 1 = 1\]
  4. Step 4: Compare all values: The values obtained are: \(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 of these values is \(\dfrac{5}{4}\).
  5. Step 5: State the absolute maximum: The absolute maximum value of \(f(x) = \sin x + \cos^2 x\) on \([0, \pi]\) is \(\dfrac{5}{4}\), attained at both \(x = \dfrac{\pi}{6}\) and \(x = \dfrac{5\pi}{6}\).

Answer: The absolute maximum value is \(\dfrac{5}{4}\), attained at \(x = \dfrac{\pi}{6}\) and \(x = \dfrac{5\pi}{6}\).

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 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) Chapter 6 Examples Q29