To find the equation of the curve that passes through the point \((1,0)\) and has a slope given by the expression \(\frac{y-1}{x^2+x}\), we need to follow these steps:
- The slope of the curve \( \frac{dy}{dx} \) is given as \(\frac{y-1}{x^2+x}\).
- This translates into the differential equation: \(\frac{dy}{dx} = \frac{y-1}{x^2+x}\).
- To solve it, we can rewrite the differential equation in a separable form. Multiplying both sides by \((x^2+x)\) and integrating both sides gives us: \((x^2+x) dy = (y-1) dx\).
- Separating variables, we have: \(\frac{dy}{y-1} = \frac{dx}{x^2+x}\).
- The right side can be integrated using partial fractions: \(\frac{1}{x^2+x} = \frac{1}{x} - \frac{1}{x+1}\). Integrate both sides: \(\int \frac{dy}{y-1} = \int \left(\frac{1}{x} - \frac{1}{x+1}\right) dx\).
- Integrating each term, we get:
- Left side: \(\ln{|y-1|}\)
- Right side: \(\ln{|x|} - \ln{|x+1|} + C\) (where \( C \) is the constant of integration)
- This integration gives us: \(\ln{|y-1|} = \ln{\left|\frac{x}{x+1}\right|} + C\).
- Exponentiating both sides, we have: \(|y-1| = A \cdot \left|\frac{x}{x+1}\right|\) where \( A = e^C \).
- Since the curve passes through the point \( (1, 0) \), substitute: \(0 - 1 = A \cdot \frac{1}{2}\) which gives \( A = -2 \).
- Substituting back, we have: \(y - 1 = -2 \cdot \frac{x}{x+1}\).
- Simplifying, the equation becomes: \((x+1)(y-1) + 2x = 0\).
Therefore, the correct equation of the curve is \((x+1)(y-1)+2x=0\), which matches the given correct answer.