Analyzing the Setup
Welcome, fellow traveler on the path of JEE mastery. Today, we are going to dissect a problem that, at first glance, might seem like a chaotic mess of trigonometric functions.
But I want you to take a deep breath. In the world of differential equations, chaos is often just order in disguise. Let us peel back the layers of this problem together.
Look at the equation:
Does it look familiar? It should! This is the classic, elegant structure of a first-order Linear Differential Equation:
In this arena, our P(x)=2tanx and our Q(x)=sinx. Identifying these two components is like finding the North Star in a dark sky. Once you have them, the path forward becomes clear.
We are not just solving an equation; we are building a bridge between the derivative of a function and the function itself.
The Magic of the Integrating Factor
Now, we need our secret weapon: the Integrating Factor (I.F.). The formula is defined as:
Here is where the beauty of calculus shines. We know that ∫tanxdx=ln(secx).
So, our exponent becomes 2ln(secx). Using the laws of logarithms, that coefficient of 2 jumps up to become an exponent: ln(sec2x).
And because e and ln are inverse functions, they vanish, leaving us with the elegant result:
This factor is the key that unlocks the entire equation.
The Integration
With our I.F. in hand, the general solution is given by:
y⋅(I.F.)=∫Q(x)⋅(I.F.)dx+C
Substituting our values, we get:
Do not be intimidated by that integral! If you rewrite sec2x as cos2x1, the integral becomes:
∫cos2xsinxdx=∫tanxsecxdx
We know this integral by heart—it is secx. Thus, our general solution is:
Finding the Constant and the Curve
We are given the initial condition y(3π)=0. This is our anchor.
Plugging in x=3π and y=0, we find:
Since sec(3π)=2, we get 0=2+C, which means C=−2.
Our specific solution is ysec2x=secx−2. Dividing by sec2x, we get the beautiful function:
The Quadratic Transformation
We are almost there. We need to maximize y=cosx−2cos2x for x∈(0,2π).
Instead of wrestling with derivatives of trigonometric functions, let us use a substitution. Let t=cosx.
As x ranges from 0 to 2π, t ranges from 1 to 0. Our function becomes a simple downward-opening parabola:
To find the maximum, we take the derivative with respect to t:
Setting this to zero, we find t=41. Since the second derivative is −4, we know this is a maximum.
Finally, substituting t=41 back into our quadratic, we get:
y=41−2(41)2=41−81=81
And there it is. The maximum value is 81. You have navigated the differential equation, mastered the integration, and conquered the optimization. Well done!