E(X)

Size of the pool

k = 20 (slider from 1 to 40, step 1)
f(x) = (1 - x)^(k) + ((k + 1) * (1 - (1 - x)^(k)))
g(x) = If[0 ≤ x ≤ 1, f(x)]
h: y = k