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

Question

Let y = y(x) satisfies the equation dydxA=0{{dy} \over {dx}} - |A| = 0, for all x > 0, where A = \left[ {\matrix{ y & {\sin x} & 1 \cr 0 & { - 1} & 1 \cr 2 & 0 & {{1 \over x}} \cr } } \right]. If y(π)=π+2y(\pi ) = \pi + 2, then the value of y(π2)y\left( {{\pi \over 2}} \right) is :

Options

Solution

Key Concepts and Formulas

  • First-Order Linear 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 (I.F.): For a first-order linear differential equation, the integrating factor is given by I.F.=eP(x)dxI.F. = e^{\int P(x) dx}. The solution is then y(I.F.)=Q(x)(I.F.)dx+Cy \cdot (I.F.) = \int Q(x) \cdot (I.F.) dx + C.
  • Integration by Parts: udv=uvvdu\int u \, dv = uv - \int v \, du

Step-by-Step Solution

Step 1: Calculate the Determinant of Matrix A

We are given the differential equation dydxA=0\frac{dy}{dx} - |A| = 0, which means dydx=A\frac{dy}{dx} = |A|. We need to find the determinant of the matrix AA: A = \left[ {\matrix{ y & {\sin x} & 1 \cr 0 & { - 1} & 1 \cr 2 & 0 & {{1 \over x}} \cr } } \right] We expand the determinant along the first row: |A| = y \cdot \left| {\matrix{ { - 1} & 1 \cr 0 & {{1 \over x}} \cr } } \right| - \sin x \cdot \left| {\matrix{ 0 & 1 \cr 2 & {{1 \over x}} \cr } } \right| + 1 \cdot \left| {\matrix{ 0 & { - 1} \cr 2 & 0 \cr } } \right| Now we calculate the 2×22 \times 2 determinants:

  • \left| {\matrix{ { - 1} & 1 \cr 0 & {{1 \over x}} \cr } } \right| = (-1) \cdot \frac{1}{x} - (1)(0) = -\frac{1}{x}
  • \left| {\matrix{ 0 & 1 \cr 2 & {{1 \over x}} \cr } } \right| = (0) \cdot \frac{1}{x} - (1)(2) = -2
  • \left| {\matrix{ 0 & { - 1} \cr 2 & 0 \cr } } \right| = (0)(0) - (-1)(2) = 2 Substituting these values back into the expression for A|A|: A=y(1x)sinx(2)+1(2)|A| = y \left( - \frac{1}{x} \right) - \sin x (-2) + 1 (2) A=yx+2sinx+2|A| = - \frac{y}{x} + 2\sin x + 2

Step 2: Formulate the Differential Equation

We substitute the expression for A|A| back into the equation dydx=A\frac{dy}{dx} = |A|: dydx=yx+2sinx+2\frac{dy}{dx} = - \frac{y}{x} + 2\sin x + 2

Step 3: Rewrite the Equation in Standard Linear Form

We rearrange the differential equation into the standard linear form: dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)y = Q(x). dydx+yx=2sinx+2\frac{dy}{dx} + \frac{y}{x} = 2\sin x + 2 Comparing this with the standard form, we identify P(x)P(x) and Q(x)Q(x): P(x)=1xP(x) = \frac{1}{x} Q(x)=2sinx+2Q(x) = 2\sin x + 2

Step 4: Calculate the Integrating Factor (I.F.)

Using the formula for the integrating factor, I.F.=eP(x)dxI.F. = e^{\int P(x)dx}: I.F.=e1xdxI.F. = e^{\int \frac{1}{x}dx} The integral of 1x\frac{1}{x} is lnx\ln|x|. Since x>0x > 0, we can drop the absolute value. I.F.=elnx=xI.F. = e^{\ln x} = x

Step 5: Solve the Linear Differential Equation

We apply the formula for the general solution: y(I.F.)=Q(x)(I.F.)dx+Cy \cdot (I.F.) = \int Q(x) \cdot (I.F.) dx + C. Substitute the calculated I.F.I.F. and identified Q(x)Q(x): yx=(2sinx+2)xdx+Cy \cdot x = \int (2\sin x + 2) \cdot x \, dx + C xy=(2xsinx+2x)dx+Cxy = \int (2x\sin x + 2x) \, dx + C We split the integral into two simpler integrals: (2xsinx+2x)dx=2xsinxdx+2xdx\int (2x\sin x + 2x) \, dx = \int 2x\sin x \, dx + \int 2x \, dx The second integral is straightforward: 2xdx=x2\int 2x \, dx = x^2 For the first integral, 2xsinxdx\int 2x\sin x \, dx, we use integration by parts. Let u=2xu = 2x and dv=sinxdxdv = \sin x \, dx. Then, du=2dxdu = 2 \, dx and v=sinxdx=cosxv = \int \sin x \, dx = -\cos x. Applying the integration by parts formula: 2xsinxdx=(2x)(cosx)(cosx)(2dx)\int 2x\sin x \, dx = (2x)(-\cos x) - \int (-\cos x)(2 \, dx) =2xcosx+2cosxdx= -2x\cos x + 2\int \cos x \, dx =2xcosx+2sinx= -2x\cos x + 2\sin x Combine the results of both integrals: (2xsinx+2x)dx=2xcosx+2sinx+x2\int (2x\sin x + 2x) \, dx = -2x\cos x + 2\sin x + x^2 Substitute this back into our general solution equation: xy=x22xcosx+2sinx+Cxy = x^2 - 2x\cos x + 2\sin x + C

Step 6: Use the Initial Condition to Find the Constant C

We are given the initial condition y(π)=π+2y(\pi) = \pi + 2. Substituting x=πx = \pi and y=π+2y = \pi + 2: (π)(π+2)=(π)22(π)cos(π)+2sin(π)+C(\pi)(\pi + 2) = (\pi)^2 - 2(\pi)\cos(\pi) + 2\sin(\pi) + C Recall that cos(π)=1\cos(\pi) = -1 and sin(π)=0\sin(\pi) = 0. π2+2π=π22π(1)+2(0)+C\pi^2 + 2\pi = \pi^2 - 2\pi(-1) + 2(0) + C π2+2π=π2+2π+C\pi^2 + 2\pi = \pi^2 + 2\pi + C C=0C = 0

Step 7: Write the Particular Solution

Since C=0C=0, the particular solution is: xy=x22xcosx+2sinxxy = x^2 - 2x\cos x + 2\sin x

Step 8: Evaluate y(π2)y\left( {{\pi \over 2}} \right)

We substitute x=π2x = \frac{\pi}{2} into our particular solution: (π2)y(π2)=(π2)22(π2)cos(π2)+2sin(π2)\left( \frac{\pi}{2} \right) y\left( \frac{\pi}{2} \right) = \left( \frac{\pi}{2} \right)^2 - 2\left( \frac{\pi}{2} \right)\cos\left( \frac{\pi}{2} \right) + 2\sin\left( \frac{\pi}{2} \right) Recall that cos(π2)=0\cos\left( \frac{\pi}{2} \right) = 0 and sin(π2)=1\sin\left( \frac{\pi}{2} \right) = 1. π2y(π2)=π24π(0)+2(1)\frac{\pi}{2} y\left( \frac{\pi}{2} \right) = \frac{\pi^2}{4} - \pi(0) + 2(1) π2y(π2)=π24+2\frac{\pi}{2} y\left( \frac{\pi}{2} \right) = \frac{\pi^2}{4} + 2 Multiply both sides by 2π\frac{2}{\pi}: y(π2)=(π24+2)2πy\left( \frac{\pi}{2} \right) = \left( \frac{\pi^2}{4} + 2 \right) \cdot \frac{2}{\pi} y(π2)=π2+4πy\left( \frac{\pi}{2} \right) = \frac{\pi}{2} + \frac{4}{\pi}

Common Mistakes & Tips

  • Sign Errors: Be extremely careful with signs when calculating determinants and applying integration by parts. A small sign error can propagate through the entire solution.
  • Integration by Parts: Remember the integration by parts formula udv=uvvdu\int u \, dv = uv - \int v \, du. Choose uu and dvdv strategically to simplify the integral.
  • Integrating Factor: Ensure the differential equation is in the standard linear form before calculating the integrating factor.

Summary

We solved the given differential equation by first calculating the determinant of matrix AA, then rewriting the equation in standard linear form. We found the integrating factor, solved the equation, and used the given initial condition to find the particular solution. Finally, we evaluated the solution at x=π2x = \frac{\pi}{2} to find the desired value.

The final answer is \boxed{{\pi \over 2} + {4 \over \pi}}, which corresponds to option (A).

Practice More Differential Equations Questions

View All Questions