\((x^3 + x^2 + x + 1)\frac{dy}{dx} = 2x^2 + x;\ y = 1\ \text{when}\ x = 0\)
Show solutionHide solution
We need solve
\[ (x^3+x^2+x+1)\frac{dy}{dx}=2x^2+x,\qquad y=1\ \text{when }x=0. \]Factor the coefficient of \(\frac{dy}{dx}\):
\[ x^3+x^2+x+1=(x+1)(x^2+1). \]Thus
\[ \frac{dy}{dx}=\frac{2x^2+x}{(x+1)(x^2+1)}. \]Use partial fractions:
\[ \frac{2x^2+x}{(x+1)(x^2+1)} =\frac{A}{x+1}+\frac{Bx+C}{x^2+1}. \]Multiplying by \((x+1)(x^2+1)\),
\[ 2x^2+x=A(x^2+1)+(Bx+C)(x+1). \]Comparing coefficients gives
\[ A+B=2,\qquad B+C=1,\qquad A+C=0. \]Solving these equations gives
\[ A=\frac12,\qquad B=\frac32,\qquad C=-\frac12. \]Therefore
\[ \frac{dy}{dx} =\frac{1}{2(x+1)}+\frac{3x-1}{2(x^2+1)}. \]Integrating,
\[ y=\frac12\ln|x+1|+\frac34\ln(x^2+1)-\frac12\arctan x+C. \]Apply the initial condition \(y=1\) when \(x=0\):
\[ 1=\frac12\ln 1+\frac34\ln 1-\frac12\arctan 0+C=C. \]Since the initial point is \(x=0\), the solution is taken on the interval containing \(0\), namely \(x>-1\), so \(|x+1|=x+1\) there. Hence
\[ \boxed{y=1+\frac12\ln(x+1)+\frac34\ln(x^2+1)-\frac12\arctan x},\qquad x>-1. \]This satisfies \(y(0)=1\). Equivalently, on each interval not crossing \(x=-1\), one may write the antiderivative using \(\ln|x+1|\); for the required particular solution through \(x=0\), the displayed interval is \(x>-1\).