I know that $$\frac{1}{(1-x)} = x^0 + x^1 + x^2 + x^3 + \space ... \space\space\space\space\space\space\space\space (1)$$
When I differentiate $(1)$ with respect to $x$ I get the following function : $$\frac{x}{(1-x)^2} = 1 + 2x + 3x^2 + 4x^3 + \space ...\space\space\space\space\space (2)$$
If I divide LHS and RHS of $(2)$ by $x$ I would get :
$$\frac{1}{(1-x)^2} = \frac{1}{x} + 2 + 3x + 4x^2 + \space...$$
But from what I have seen from here my derivation of the function $ \frac{1}{(1-x)^2}$ is completely wrong.
What is it that I am doing wrong here?
Try redoing the derivative of $1/(1-x)$ more carefully.