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 functions of x.
- Integrating Factor (IF): For a first-order linear differential equation, the integrating factor is e∫P(x)dx. Multiplying the differential equation by the IF allows us to integrate both sides.
- Limit Definition: Understanding how limits can define constants of integration in differential equation solutions.
Step-by-Step Solution
Step 1: Rewrite the given differential equation.
We are given the differential equation:
(y+1)tan2xdx+tanxdy+ydx=0
We want to rearrange it into a standard form that allows us to identify P(x) and Q(x). First, we rewrite the equation:
tanxdy=−[(y+1)tan2x+y]dx
dxdy=−tanx(y+1)tan2x+y=−tanxytan2x+tan2x+y=−ytanx−tanx−tanxy
dxdy+ytanx+ycotx=−tanx
dxdy+y(tanx+cotx)=−tanx
Step 2: Simplify the coefficient of y.
Notice that tanx+cotx=cosxsinx+sinxcosx=sinxcosxsin2x+cos2x=sinxcosx1=2sinxcosx2=sin2x2=2csc2x.
Therefore, our differential equation becomes:
dxdy+2ycsc2x=−tanx
Step 3: Calculate the Integrating Factor (IF).
The integrating factor is given by IF=e∫P(x)dx, where P(x)=2csc2x.
IF=e∫2csc2xdx=e∫sin2x2dx
Let u=2x, then du=2dx, so
IF=e∫cscudu=eln∣tan2u∣=eln∣tanx∣=∣tanx∣
Since x∈(0,2π), tanx>0, so IF=tanx.
Step 4: Multiply the differential equation by the Integrating Factor.
Multiplying the differential equation by tanx, we get:
tanxdxdy+2ycsc2xtanx=−tan2x
tanxdxdy+2ysin2x1cosxsinx=−tan2x
tanxdxdy+2y2sinxcosx1cosxsinx=−tan2x
tanxdxdy+ycos2x1=−tan2x
tanxdxdy+ysec2x=−tan2x
Step 5: Recognize the left-hand side as a derivative.
Notice that dxd(ytanx)=tanxdxdy+ysec2x. Therefore, we can rewrite the equation as:
dxd(ytanx)=−tan2x
Step 6: Integrate both sides with respect to x.
Integrating both sides with respect to x, we get:
∫dxd(ytanx)dx=∫−tan2xdx
ytanx=−∫tan2xdx=−∫(sec2x−1)dx=−∫sec2xdx+∫1dx=−tanx+x+C
ytanx=−tanx+x+C
Step 7: Solve for y(x).
Dividing by tanx, we get:
y(x)=−1+xcotx+Ccotx
Step 8: Apply the limit condition to find C.
We are given that limx→0+xy(x)=1. Substituting our expression for y(x):
limx→0+x(−1+xcotx+Ccotx)=1
limx→0+(−x+x2cotx+Cxcotx)=1
We know that limx→0xcotx=limx→0xsinxcosx=limx→0cosx⋅sinxx=1⋅1=1. Also, limx→0x2cotx=limx→0x⋅xcotx=0⋅1=0.
Therefore,
limx→0+(−x+x2cotx+Cxcotx)=−0+0+C(1)=C
So, C=1.
Step 9: Write the particular solution.
The particular solution is:
y(x)=−1+xcotx+cotx
Step 10: Evaluate y(π/4).
We want to find y(4π).
y(4π)=−1+4πcot(4π)+cot(4π)=−1+4π(1)+1=4π−1+1=4π−1
Common Mistakes & Tips
- Trigonometric Identities: Make sure to correctly apply trigonometric identities, especially when simplifying the coefficient of y and when integrating.
- Integrating Factor: Double-check the calculation of the integrating factor, as errors here propagate through the rest of the solution.
- Limit Evaluation: Be careful when evaluating limits involving trigonometric functions. Recall that limx→0xsinx=1 and limx→0xcotx=1.
Summary
We solved the given differential equation by first rewriting it in the standard form of a first-order linear differential equation. We then calculated the integrating factor, multiplied the equation by it, and integrated both sides. Using the given limit condition, we found the value of the integration constant. Finally, we evaluated the particular solution at x=4π to get the answer 4π−1.
Final Answer
The final answer is 4π−1, which corresponds to option (B).