find the average rate of change from 1 to x

Find the average rate of change from 1 to 3

Using f(x) = -2x^2+6x

avg 1:3 = [f(3)-f(1)]/(3-1)

avg 1:x = [(f(x)-f(1)]/(x-1)