Can someone explain how find the average rate change for these functions?

1.) f(x)=x^3+1
a (2,3) b.(-1,1)

2.) h(t)= cot t
a. pie/4, 3pie/4 b. pie/6, pie/2

I am so lost. T_T please help!