Detailed Explanation
This is a variables-separable differential equation. The idea is to rewrite the equation so that all terms with \(y\) are on one side and all terms with \(x\) are on the other side, then integrate both sides. Here the coefficient of \(\frac{dy}{dx}\) is a cubic polynomial that factors nicely, so we can integrate the right side using partial fractions. After integrating we get a general solution containing a constant \(C\). Since we are given that \(y = 1\) when \(x = 0\), we substitute these values to find \(C\), giving the particular solution.
Formula Used
Variables separable form: \[\frac{dy}{dx} = f(x) \implies \int dy = \int f(x)\, dx\] Standard integrals used: \[\int \frac{1}{x+a}\, dx = \ln|x+a| + C, \qquad \int \frac{1}{x^2+1}\, dx = \tan^{-1}x + C\]
Solution
- Step 1: Separate the variables. Divide both sides by \((x^3+x^2+x+1)\): \[\frac{dy}{dx} = \frac{2x^2+x}{x^3+x^2+x+1}\] So \[dy = \frac{2x^2+x}{x^3+x^2+x+1}\, dx\]
- Step 2: Factor the denominator. Group terms: \[x^3+x^2+x+1 = x^2(x+1) + (x+1) = (x+1)(x^2+1)\] So the right side becomes \[\frac{2x^2+x}{(x+1)(x^2+1)}\]
- Step 3: Set up partial fractions. Write \[\frac{2x^2+x}{(x+1)(x^2+1)} = \frac{A}{x+1} + \frac{Bx+C}{x^2+1}\] Multiplying through gives \[2x^2+x = A(x^2+1) + (Bx+C)(x+1)\]
- Step 4: Find the constants. Put \(x=-1\): \[2(1) + (-1) = A(1+1) \implies 1 = 2A \implies A = \tfrac{1}{2}\] Comparing coefficients of \(x^2\): \[2 = A + B \implies B = 2 - \tfrac{1}{2} = \tfrac{3}{2}\] Comparing constant terms: \[0 = A + C \implies C = -\tfrac{1}{2}\]
- Step 5: Rewrite and integrate. We now have \[dy = \left(\frac{1/2}{x+1} + \frac{\tfrac{3}{2}x - \tfrac{1}{2}}{x^2+1}\right) dx\] Integrating both sides: \[y = \frac{1}{2}\ln|x+1| + \frac{3}{2}\int \frac{x}{x^2+1}\, dx - \frac{1}{2}\int \frac{1}{x^2+1}\, dx\]
- Step 6: Evaluate the remaining integrals. Using \(\int \frac{x}{x^2+1}\, dx = \frac{1}{2}\ln(x^2+1)\) and \(\int \frac{1}{x^2+1}\, dx = \tan^{-1}x\): \[y = \frac{1}{2}\ln|x+1| + \frac{3}{4}\ln(x^2+1) - \frac{1}{2}\tan^{-1}x + C\]
- Step 7: Apply the initial condition. Put \(x=0\) and \(y=1\): \[1 = \frac{1}{2}\ln 1 + \frac{3}{4}\ln 1 - \frac{1}{2}\tan^{-1}0 + C\] Since \(\ln 1 = 0\) and \(\tan^{-1}0 = 0\), we get \[1 = C \implies C = 1\]
- Step 8: Write the particular solution by substituting \(C = 1\): \[y = \frac{1}{2}\ln|x+1| + \frac{3}{4}\ln(x^2+1) - \frac{1}{2}\tan^{-1}x + 1\]
Final Answer
\[y = \frac{1}{2}\ln|x+1| + \frac{3}{4}\ln(x^2+1) - \frac{1}{2}\tan^{-1}x + 1\]
Common Mistake
A common mistake is forgetting to correctly split the numerator \(\tfrac{3}{2}x - \tfrac{1}{2}\) over \(x^2+1\) — students often integrate \(\frac{x}{x^2+1}\) without the factor \(\frac{1}{2}\), or drop the \(\tan^{-1}x\) term entirely. Another frequent error is not applying the initial condition, leaving the answer as a general solution with the arbitrary constant \(C\) still in it.