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

Question

Which of the following is true for y(x) that satisfies the differential equation dydx{{dy} \over {dx}} = xy - 1 + x - y; y(0) = 0 :

Options

Solution

Key Concepts and Formulas

  • Separable Differential Equations: A differential equation of the form dydx=f(x)g(y)\frac{dy}{dx} = f(x)g(y) is separable.
  • Solving Separable Equations: Separate variables and integrate both sides: dyg(y)=f(x)dx\int \frac{dy}{g(y)} = \int f(x) dx.
  • Exponential Integral: exdx=ex+C\int e^x dx = e^x + C

Step-by-Step Solution

Step 1: Separate the variables

We are given the differential equation: dydx=xy1+xy\frac{dy}{dx} = xy - 1 + x - y Rearrange the terms on the right-hand side to factor: dydx=x(y+1)(y+1)\frac{dy}{dx} = x(y+1) - (y+1) dydx=(x1)(y+1)\frac{dy}{dx} = (x-1)(y+1) Now, separate the variables by dividing both sides by (y+1)(y+1) and multiplying both sides by dxdx: dyy+1=(x1)dx\frac{dy}{y+1} = (x-1) dx The equation is now separated.

Step 2: Integrate both sides

Integrate both sides of the equation with respect to their respective variables: dyy+1=(x1)dx\int \frac{dy}{y+1} = \int (x-1) dx The integral on the left side is: dyy+1=lny+1+C1\int \frac{dy}{y+1} = \ln|y+1| + C_1 The integral on the right side is: (x1)dx=x22x+C2\int (x-1) dx = \frac{x^2}{2} - x + C_2 Combining these, we have: lny+1=x22x+C\ln|y+1| = \frac{x^2}{2} - x + C where C=C2C1C = C_2 - C_1 is an arbitrary constant.

Step 3: Apply the initial condition

We are given the initial condition y(0)=0y(0) = 0. Substitute x=0x=0 and y=0y=0 into the general solution: ln0+1=0220+C\ln|0+1| = \frac{0^2}{2} - 0 + C ln(1)=0+C\ln(1) = 0 + C 0=C0 = C Thus, C=0C = 0.

Step 4: Find the particular solution

Substitute C=0C=0 back into the general solution: lny+1=x22x\ln|y+1| = \frac{x^2}{2} - x Since we expect y(1) to be positive, we can drop the absolute value. Exponentiate both sides to solve for yy: eln(y+1)=ex22xe^{\ln(y+1)} = e^{\frac{x^2}{2} - x} y+1=ex22xy+1 = e^{\frac{x^2}{2} - x} y=ex22x1y = e^{\frac{x^2}{2} - x} - 1

Step 5: Evaluate y(1)

Substitute x=1x=1 into the particular solution to find y(1)y(1): y(1)=e12211y(1) = e^{\frac{1^2}{2} - 1} - 1 y(1)=e1211y(1) = e^{\frac{1}{2} - 1} - 1 y(1)=e121y(1) = e^{-\frac{1}{2}} - 1

Step 6: Check the options The correct answer is therefore y(1)=e121y(1) = e^{-\frac{1}{2}} - 1. However, the correct answer is given as y(1) = 1. Let's re-evaluate the solution.

Step 1: Re-examine the factorization. dydx=xy1+xy=xyy+x1=y(x1)+(x1)=(y+1)(x1) \frac{dy}{dx} = xy - 1 + x - y = xy - y + x - 1 = y(x-1) + (x-1) = (y+1)(x-1) Okay, the factorization is correct.

Step 2: Re-examine the Integration dyy+1=(x1)dx\int \frac{dy}{y+1} = \int (x-1) dx lny+1=x22x+Cln|y+1| = \frac{x^2}{2} - x + C

Step 3: Re-examine the initial condition y(0) = 0 ln0+1=020+Cln|0+1| = \frac{0}{2} - 0 + C 0=C0 = C

Step 4: Re-examine the solution for y(x) lny+1=x22xln|y+1| = \frac{x^2}{2} - x y+1=ex22xy+1 = e^{\frac{x^2}{2} - x} y=ex22x1y = e^{\frac{x^2}{2} - x} - 1

Step 5: Re-examine y(1) y(1)=e1211=e121y(1) = e^{\frac{1}{2} - 1} - 1 = e^{-\frac{1}{2}} - 1

Okay, we have made no errors. However, the answer provided is y(1) = 1. Let's consider if the question actually had a typo. Suppose the equation was dydx=1x+yxy\frac{dy}{dx} = 1 - x + y - xy. This would yield dydx=(1x)+y(1x)=(1x)(1+y)\frac{dy}{dx} = (1-x) + y(1-x) = (1-x)(1+y) dy1+y=(1x)dx\int \frac{dy}{1+y} = \int (1-x) dx ln1+y=xx22+Cln|1+y| = x - \frac{x^2}{2} + C y(0)=0    ln(1)=00+C    C=0y(0) = 0 \implies ln(1) = 0 - 0 + C \implies C = 0 ln1+y=xx22ln|1+y| = x - \frac{x^2}{2} y=exx221y = e^{x - \frac{x^2}{2}} - 1 y(1)=e1121=e121y(1) = e^{1 - \frac{1}{2}} - 1 = e^{\frac{1}{2}} - 1

This corresponds to option D.

However, if the question was dydx=y+xxy1=y(1x)+(x1)=(y1)(1x)\frac{dy}{dx} = y + x - xy - 1 = y(1-x) + (x-1) = (y-1)(1-x), then dyy1=(1x)dx\frac{dy}{y-1} = (1-x) dx lny1=xx22+Cln|y-1| = x - \frac{x^2}{2} + C y(0) = 0, so ln1=00+Cln|-1| = 0 - 0 + C 0=C0 = C lny1=xx22ln|y-1| = x - \frac{x^2}{2} y1=exx22y-1 = e^{x - \frac{x^2}{2}} y=exx22+1y = e^{x - \frac{x^2}{2}} + 1 y(1)=e112+1=e12+1y(1) = e^{1 - \frac{1}{2}} + 1 = e^{\frac{1}{2}} + 1

Still not giving us the right answer.

Let's assume that y(1) = 1 is correct. 1=e12111 = e^{\frac{1}{2} - 1} - 1 2=e122 = e^{-\frac{1}{2}} ln(2)=12ln(2) = -\frac{1}{2} Which is not true.

Let's assume that the differential equation is dydx=xyy+1x\frac{dy}{dx} = xy - y + 1 - x dydx=y(x1)(x1)=(y1)(x1) \frac{dy}{dx} = y(x-1) - (x-1) = (y-1)(x-1) dyy1=(x1)dx\int \frac{dy}{y-1} = \int (x-1) dx ln(y1)=x22x+C ln(y-1) = \frac{x^2}{2} - x + C y(0)=0,ln(1)=0+C y(0) = 0, ln(-1) = 0 + C This is impossible.

Common Mistakes & Tips

  • Double-check your factorization and integration steps.
  • Be careful with signs when separating variables.
  • Remember to apply the initial condition to find the particular solution.

Summary

We separated the variables, integrated both sides, and applied the initial condition to solve the differential equation. The solution we obtained is y=ex22x1y = e^{\frac{x^2}{2} - x} - 1. Evaluating at x=1x=1 gives y(1)=e121y(1) = e^{-\frac{1}{2}} - 1. Since none of the options match this result, and we have checked and re-checked the solution, we must conclude that the answer key given is incorrect. There appears to be an error in the question or answer key. If we assume y(1)=1, this contradicts our derived solution. Thus, we assume the correct differential equation is dydx=1x+yxy\frac{dy}{dx} = 1 - x + y - xy, which would result in y(1)=e121y(1) = e^{\frac{1}{2}} - 1.

Final Answer

The final answer should be y(1)=e121y(1) = e^{-\frac{1}{2}} - 1 for the given equation. The correct answer provided, y(1)=1y(1) = 1, is incorrect. Given the choices, there is no correct option.

Practice More Differential Equations Questions

View All Questions