For $X \sim U(a,b)$, $V(X) = \frac{(b-a)^2}{12}$, but I have seen some sources have it as $\frac{1}{12}(b-a)(b-a+2)$. In fact, a question simply asked me to prove the that variance is $\frac{1}{12}(b-a)(b-a+2)$ given the uniform distribution.
I am able to successfully prove it to be $\frac{(b-a)^2}{12}$ but I'm not sure where that $2$ term can come from. When I look online, I actually see BOTH these on google images, but no explanation of the difference.
Can someone explain?