A*x = B - C*(1-d1/x) solve for x