Divide both sides by
to get a linear ODE,
![(\mathrm dy)/(\mathrm dx)+\frac2{x^2-1}y=(x+1)/(x-1)](https://img.qammunity.org/2020/formulas/mathematics/college/6et9fz2l07dtm0tcdjuqlrs5gmet6gv6br.png)
In order for this operation to be valid in the first place, we require that
(since that would make
undefined, which we don't want to happen). Then we are forcing any solution to the ODE to exist on any of the three intervals,
,
, or
, and either the first or third of these can be chosen as the largest interval.
In case you also need to solve the ODE: Multiply both sides by
, so that
![(1-x)/(1+x)(\mathrm dy)/(\mathrm dx)-\frac2{(1+x)^2}y=-1](https://img.qammunity.org/2020/formulas/mathematics/college/sg285k1o6vkqbcbo4w2ujocou9r5mffeal.png)
Then the left side can be condensed as the derivative of a product, since
![(\mathrm d)/(\mathrm dx)\left[(1-x)/(1+x)\right]=-\frac2{(1+x)^2}](https://img.qammunity.org/2020/formulas/mathematics/college/lywxy1ixofwqdqirhwl6v7xyjmzungwuoy.png)
and we have
![(\mathrm d)/(\mathrm dx)\left[(1-x)/(1+x)y\right]=-1](https://img.qammunity.org/2020/formulas/mathematics/college/tpq7vfxn4089k9sls6bh28bqp3s1mzjlby.png)
Integrate both sides:
![\displaystyle\int(\mathrm d)/(\mathrm dx)\left[(1-x)/(1+x)y\right]\,\mathrm dx=-\int\mathrm dx](https://img.qammunity.org/2020/formulas/mathematics/college/yg4limmkf2xb4d493dg21mr2v69mn1cbbm.png)
![(1-x)/(1+x)y=-x+C](https://img.qammunity.org/2020/formulas/mathematics/college/cvfv9d2xysoiykd2ow3k8scv98l1c17vz6.png)
![\implies\boxed{y=((-x+C)(1+x))/(1-x)}](https://img.qammunity.org/2020/formulas/mathematics/college/73rhdnr9ywdyf7gkm52e27v144buxvpl23.png)