Hi everyone, I have been looking at some proofs recently and came across this one for the expectation of a Continuous Uniform Distribution. Not sure how it was done, and was wondering if anybody could guide me through the steps, and if there are any extra workings so that I can understand it better?

If X ~ U(a,b), then:

E(X) =

Any help would be very much appreciated