first section of equations, solving for slant range