If y = y(x) is the solution of the differential equation dxdy + (tan x) y = sin x, 0≤x≤3π, with y(0) = 0, then y(4π) equal to :
Options
Solution
Key Concepts and Formulas
Linear First-Order Differential Equation: A differential equation of the form dxdy+P(x)y=Q(x), where P(x) and Q(x) are continuous functions of x.
Integrating Factor (IF): For a linear first-order differential equation, the integrating factor is given by IF=e∫P(x)dx.
General Solution: The general solution to the linear first-order differential equation is given by y⋅(IF)=∫Q(x)⋅(IF)dx+C, where C is the constant of integration.
Step-by-Step Solution
Step 1: Identify P(x) and Q(x)
We are given the differential equation:
dxdy+(tanx)y=sinx
We need to identify the functions P(x) and Q(x) by comparing this equation to the standard form of a linear first-order differential equation, dxdy+P(x)y=Q(x).
By direct comparison, we have:
P(x)=tanxQ(x)=sinxWhy? Correctly identifying P(x) and Q(x) is crucial for calculating the integrating factor and the general solution.
Step 2: Calculate the Integrating Factor (IF)
The integrating factor is given by:
IF=e∫P(x)dx
Substituting P(x)=tanx, we get:
IF=e∫tanxdx
We know that ∫tanxdx=∫cosxsinxdx. Let u=cosx, so du=−sinxdx. Then, the integral becomes:
∫cosxsinxdx=∫u−du=−ln∣u∣+C1=−ln∣cosx∣+C1=ln∣secx∣+C1
Since we only need the integrating factor, we can ignore the constant of integration C1. Therefore,
∫tanxdx=ln∣secx∣
Thus, the integrating factor is:
IF=eln∣secx∣=∣secx∣
Since 0≤x≤3π, cosx>0 and hence secx>0. Therefore, ∣secx∣=secx.
IF=secxWhy? The integrating factor simplifies the differential equation, making it easier to solve. The simplification using the domain is important.
Step 3: Find the General Solution
The general solution is given by:
y⋅(IF)=∫Q(x)⋅(IF)dx+C
Substituting IF=secx and Q(x)=sinx, we get:
ysecx=∫sinxsecxdx+Cysecx=∫sinxcosx1dx+Cysecx=∫tanxdx+Cysecx=ln∣secx∣+C
Since 0≤x≤3π, secx>0, so ∣secx∣=secx.
ysecx=ln(secx)+CWhy? Finding the general solution provides a family of solutions to the differential equation.
Step 4: Apply the Initial Condition
We are given the initial condition y(0)=0. Substituting x=0 and y=0 into the general solution:
0⋅sec(0)=ln(sec(0))+C
Since sec(0)=1 and ln(1)=0, we have:
0=0+CC=0
Therefore, the particular solution is:
ysecx=ln(secx)y=secxln(secx)=cosxln(secx)Why? The initial condition allows us to find a unique solution to the differential equation.
Step 5: Evaluate y(π/4)
We want to find y(4π). Substituting x=4π into the particular solution:
y(4π)=cos(4π)ln(sec(4π))
We know that cos(4π)=21 and sec(4π)=2. Therefore,
y(4π)=21ln(2)y(4π)=21ln(21/2)
Using the property ln(ab)=blna:
y(4π)=21⋅21ln2y(4π)=221ln2=(221)ln2Why? Evaluating the particular solution at the given point gives the final answer.
However, the provided correct answer is (A) 21ln2. Let's analyze if we can manipulate the equation to get this.
We have y=cosxln(secx). If the problem intended y(4π)=21ln2, then
21ln(2)=21ln2, which simplifies to 21⋅21ln2=21ln2. This implies 21=1, which is false.
There seems to be an error in the provided correct answer. Our derivation consistently yields y(4π)=221ln2, which matches option (B).
Common Mistakes & Tips
Forgetting the Constant of Integration: Always remember to add the constant of integration, C, when evaluating indefinite integrals.
Sign Errors: Be careful with signs, especially when using substitution or integration by parts.
Domain Restrictions: Consider the domain of the functions involved, especially when dealing with trigonometric functions and logarithms.
Summary
We solved the given linear first-order differential equation by finding the integrating factor, determining the general solution, applying the initial condition to find the particular solution, and finally evaluating the particular solution at x=4π. The result is y(4π)=221ln2, which corresponds to option (B).
Final Answer
The final answer is \boxed{\left( {{1 \over {2\sqrt 2 }}} \right) \log_e 2}, which corresponds to option (B).