uses eq1 and eq2 to predict