This was given in the Vedas(or Shastras) about a year ago.
You can't differentiate the LHS like that since x is a variable.While differentiating,
\mathbf{\frac{d (x+x+\cdots +x)}{dx}=\frac{d(x\cdot x)}{dx}}
Now comes the mistake,we are taking one of the x out of the product and treating it like a constant.(This is the x given as "x times").Hence we get the result,
\mathbf{\frac{x\cdot dx}{dx}=x}
which is not equal to the RHS.