i = var('i') assume(abs(x) < 1) f(x) = sum(x^i, i, 0, oo )

f(x)

f(.5)

plot(f(x),x,-.9,.9)

plot(f(x),x,-1,2)

integrate(f(x),x,0,2)