Skip to main content
Back to Differential Equations
JEE Main 2021
Differential Equations
Differential Equations
Hard

Question

If y = y(x) is the solution of the differential equation dydx{{dy} \over {dx}} + (tan x) y = sin x, 0xπ30 \le x \le {\pi \over 3}, with y(0) = 0, then y(π4)y\left( {{\pi \over 4}} \right) equal to :

Options

Solution

Key Concepts and Formulas

  • Linear First-Order Differential Equation: A differential equation of the form dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)y = Q(x), where P(x)P(x) and Q(x)Q(x) are continuous functions of xx.
  • Integrating Factor (IF): For a linear first-order differential equation, the integrating factor is given by IF=eP(x)dxIF = e^{\int P(x) dx}.
  • General Solution: The general solution to the linear first-order differential equation is given by y(IF)=Q(x)(IF)dx+Cy \cdot (IF) = \int Q(x) \cdot (IF) dx + C, where CC is the constant of integration.

Step-by-Step Solution

Step 1: Identify P(x) and Q(x)

We are given the differential equation: dydx+(tanx)y=sinx\frac{dy}{dx} + (\tan x) y = \sin x We need to identify the functions P(x)P(x) and Q(x)Q(x) by comparing this equation to the standard form of a linear first-order differential equation, dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)y = Q(x). By direct comparison, we have: P(x)=tanxP(x) = \tan x Q(x)=sinxQ(x) = \sin x Why? Correctly identifying P(x)P(x) and Q(x)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=eP(x)dxIF = e^{\int P(x) dx} Substituting P(x)=tanxP(x) = \tan x, we get: IF=etanxdxIF = e^{\int \tan x \, dx} We know that tanxdx=sinxcosxdx\int \tan x \, dx = \int \frac{\sin x}{\cos x} dx. Let u=cosxu = \cos x, so du=sinxdxdu = -\sin x \, dx. Then, the integral becomes: sinxcosxdx=duu=lnu+C1=lncosx+C1=lnsecx+C1\int \frac{\sin x}{\cos x} dx = \int \frac{-du}{u} = -\ln |u| + C_1 = -\ln |\cos x| + C_1 = \ln |\sec x| + C_1 Since we only need the integrating factor, we can ignore the constant of integration C1C_1. Therefore, tanxdx=lnsecx\int \tan x \, dx = \ln |\sec x| Thus, the integrating factor is: IF=elnsecx=secxIF = e^{\ln |\sec x|} = |\sec x| Since 0xπ30 \le x \le \frac{\pi}{3}, cosx>0\cos x > 0 and hence secx>0\sec x > 0. Therefore, secx=secx|\sec x| = \sec x. IF=secxIF = \sec x Why? 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+Cy \cdot (IF) = \int Q(x) \cdot (IF) dx + C Substituting IF=secxIF = \sec x and Q(x)=sinxQ(x) = \sin x, we get: ysecx=sinxsecxdx+Cy \sec x = \int \sin x \sec x \, dx + C ysecx=sinx1cosxdx+Cy \sec x = \int \sin x \frac{1}{\cos x} dx + C ysecx=tanxdx+Cy \sec x = \int \tan x \, dx + C ysecx=lnsecx+Cy \sec x = \ln |\sec x| + C Since 0xπ30 \le x \le \frac{\pi}{3}, secx>0\sec x > 0, so secx=secx|\sec x| = \sec x. ysecx=ln(secx)+Cy \sec x = \ln (\sec x) + C Why? 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)=0y(0) = 0. Substituting x=0x = 0 and y=0y = 0 into the general solution: 0sec(0)=ln(sec(0))+C0 \cdot \sec(0) = \ln (\sec(0)) + C Since sec(0)=1\sec(0) = 1 and ln(1)=0\ln(1) = 0, we have: 0=0+C0 = 0 + C C=0C = 0 Therefore, the particular solution is: ysecx=ln(secx)y \sec x = \ln (\sec x) y=ln(secx)secx=cosxln(secx)y = \frac{\ln (\sec x)}{\sec x} = \cos x \ln(\sec x) 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)y(\frac{\pi}{4}). Substituting x=π4x = \frac{\pi}{4} into the particular solution: y(π4)=cos(π4)ln(sec(π4))y\left(\frac{\pi}{4}\right) = \cos\left(\frac{\pi}{4}\right) \ln\left(\sec\left(\frac{\pi}{4}\right)\right) We know that cos(π4)=12\cos\left(\frac{\pi}{4}\right) = \frac{1}{\sqrt{2}} and sec(π4)=2\sec\left(\frac{\pi}{4}\right) = \sqrt{2}. Therefore, y(π4)=12ln(2)y\left(\frac{\pi}{4}\right) = \frac{1}{\sqrt{2}} \ln(\sqrt{2}) y(π4)=12ln(21/2)y\left(\frac{\pi}{4}\right) = \frac{1}{\sqrt{2}} \ln(2^{1/2}) Using the property ln(ab)=blna\ln(a^b) = b \ln a: y(π4)=1212ln2y\left(\frac{\pi}{4}\right) = \frac{1}{\sqrt{2}} \cdot \frac{1}{2} \ln 2 y(π4)=122ln2=(122)ln2y\left(\frac{\pi}{4}\right) = \frac{1}{2\sqrt{2}} \ln 2 = \left(\frac{1}{2\sqrt{2}}\right) \ln 2 Why? Evaluating the particular solution at the given point gives the final answer.

However, the provided correct answer is (A) 12ln2\frac{1}{2} \ln 2. Let's analyze if we can manipulate the equation to get this. We have y=cosxln(secx)y = \cos x \ln(\sec x). If the problem intended y(π4)=12ln2y(\frac{\pi}{4}) = \frac{1}{2} \ln 2, then 12ln(2)=12ln2\frac{1}{\sqrt{2}} \ln(\sqrt{2}) = \frac{1}{2} \ln 2, which simplifies to 1212ln2=12ln2\frac{1}{\sqrt{2}} \cdot \frac{1}{2} \ln 2 = \frac{1}{2} \ln 2. This implies 12=1\frac{1}{\sqrt{2}} = 1, which is false.

There seems to be an error in the provided correct answer. Our derivation consistently yields y(π4)=122ln2y(\frac{\pi}{4}) = \frac{1}{2\sqrt{2}} \ln 2, which matches option (B).

Common Mistakes & Tips

  • Forgetting the Constant of Integration: Always remember to add the constant of integration, CC, 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=π4x = \frac{\pi}{4}. The result is y(π4)=122ln2y\left(\frac{\pi}{4}\right) = \frac{1}{2\sqrt{2}} \ln 2, 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).

Practice More Differential Equations Questions

View All Questions