1. Key Concepts and Formulas
- First-Order Linear Differential Equation: A differential equation of the form dxdy+P(x)y=Q(x), where P(x) and Q(x) are continuous functions.
- Integrating Factor (I.F.): The integrating factor for a first-order linear differential equation is given by I.F.=e∫P(x)dx.
- General Solution: The general solution to a first-order linear differential equation is given by y⋅(I.F.)=∫Q(x)⋅(I.F.)dx+C, where C is the constant of integration.
2. Step-by-Step Solution
Step 1: Rearrange the given differential equation into the standard form.
We are given the differential equation:
f(x)sin2x+sinx−(1+cos2x)f′(x)=0
Our goal is to rewrite this in the standard form f′(x)+P(x)f(x)=Q(x).
First, we isolate the f′(x) term:
(1+cos2x)f′(x)=f(x)sin2x+sinx
Next, we divide both sides by (1+cos2x) to get the coefficient of f′(x) to be 1:
f′(x)=1+cos2xf(x)sin2x+sinx
Now, we separate the terms involving f(x) and the remaining terms:
f′(x)=1+cos2xsin2xf(x)+1+cos2xsinx
Finally, we move the term with f(x) to the left side:
f′(x)−1+cos2xsin2xf(x)=1+cos2xsinx
Comparing this with f′(x)+P(x)f(x)=Q(x), we identify:
P(x)=−1+cos2xsin2x
Q(x)=1+cos2xsinx
Step 2: Calculate the Integrating Factor (I.F.).
The Integrating Factor is given by I.F.=e∫P(x)dx.
First, we need to calculate the integral ∫P(x)dx:
∫P(x)dx=∫−1+cos2xsin2xdx
We use the substitution u=1+cos2x.
Then, dxdu=−2cosxsinx=−sin2x.
So, du=−sin2xdx.
Substituting u and du into the integral:
∫−1+cos2xsin2xdx=∫udu=ln∣u∣
Since 1+cos2x is always positive, we have:
∫P(x)dx=ln(1+cos2x)
Now, we calculate the Integrating Factor:
I.F.=e∫P(x)dx=eln(1+cos2x)
Using the property elnA=A:
I.F.=1+cos2x
Step 3: Find the general solution.
The general solution is given by f(x)⋅(I.F.)=∫Q(x)⋅(I.F.)dx+C.
Substituting the values we found:
f(x)⋅(1+cos2x)=∫(1+cos2xsinx)⋅(1+cos2x)dx+C
Simplifying the integral:
f(x)⋅(1+cos2x)=∫sinxdx+C
Integrating:
f(x)⋅(1+cos2x)=−cosx+C
Step 4: Apply the initial condition to find the constant of integration, C.
We are given the condition f(0)=0.
Substituting x=0 and f(0)=0 into the general solution:
0⋅(1+cos20)=−cos0+C
Since cos0=1:
0=−1+C
C=1
Step 5: Write the particular solution.
Substituting C=1 back into the general solution:
f(x)⋅(1+cos2x)=−cosx+1
Solving for f(x):
f(x)=1+cos2x1−cosx
Step 6: Evaluate f(2π).
We need to find the value of the function at x=2π. Substituting x=2π into the particular solution:
f(2π)=1+cos2(2π)1−cos(2π)
Since cos(2π)=0:
f(2π)=1+021−0=11=1
3. Common Mistakes & Tips
- Sign Errors: Be extremely careful with signs when rearranging the equation and calculating the integrating factor. A misplaced negative sign can lead to an incorrect solution.
- Integration Techniques: Remember common integration techniques like u-substitution. Recognizing patterns can significantly simplify the process.
- Initial Conditions: Don't forget to use the initial condition to find the constant of integration. This is crucial for obtaining the particular solution.
4. Summary
We solved the given differential equation by first rearranging it into standard form, then finding the integrating factor, and subsequently obtaining the general solution. We then used the initial condition f(0)=0 to find the particular solution. Finally, we evaluated the particular solution at x=2π to find that f(2π)=1.
5. Final Answer
The final answer is \boxed{1}, which corresponds to option (B).