Evaluation of $\int_{0}^{2}\frac{(2x-2)dx}{2x-x^2}$ Evaluate $$I=\int_{0}^{2}\frac{(2x-2)dx}{2x-x^2}$$
I used two different methods to solve this. 
Method $1.$  Using the property that if $f(2a-x)=-f(x)$ Then $$\int_{0}^{2a}f(x)dx=0$$
Now $$f(x)=\frac{(2x-2)}{2x-x^2}$$ So
$$f(2-x)=\frac{2(2-x)-2}{2(2-x)-(2-x)^2}=\frac{2-2x}{2x-x^2}=-f(x)$$
Hence $$I=0$$
Method $2.$ By partial fractions $$I=\int_{0}^{2}\frac{-1}{x}-\frac{1}{x-2} dx$$
So
$$I=-\log |x| -\log |x-2| \vert_{0}^{2}$$ which gives $$I=\infty$$
which is correct?

Hint: $u=2x-x^2$ and $du=(2-2x)dx$.
You will get:
$$I=-\ln(2x-x^2)|_{x=0}^{x=2}$$
Lets treat both boundary values as variables $a$ and $b$
$$I_{a,b}=-\ln(2x-x^2)|_{x=a}^{x=b}=-\ln(2b-b^2)+\ln(2a-a^2)=\ln\left(\frac{2a-a^2}{2b-b^2}\right)=\ln\left(\frac{a(2-a)}{b(2-b)}\right)$$
Now take the limit $(a,b)\to(0,2)$:
$$\lim_{(a,b)\to(0,2)}I_{a,b}=\lim_{(a,b)\to(0,2)}\ln\left(\frac{a(2-a)}{b(2-b)}\right)$$
Notice that you can set $a=0$ in $2-a$ and $b=2$ in $b$.
$$\lim_{(a,b)\to(0,2)}I_{a,b}=\lim_{(a,b)\to(0,2)}\ln\left(\frac{2a}{2(2-b)}\right)=\lim_{(a,b)\to(0,2)}\ln\left(\frac{a}{2-b}\right)$$
In the last step we substitute $b=u+2$ and then $u=ka$ (to show that the limit does not exist).
$$\lim_{(a,b)\to(0,2)}I_{a,b}=\lim_{(a,u)\to (0,0)}\ln\left(\frac{a}{u}\right)=\lim_{(a,u)\to (0,0)}\ln\left(\frac{1}{k}\right)=-\ln(k)$$
The limit is depending on $k$, hence the limit does not exist.
