Determining initial value and change rate of a graph