Compute the average rate of change of the function defined by `y=x^2` over each of the following intervals:
`[0, 2]`
`[3, 4]`
`[4.5, 5]`