Instead of treating f # as a constant, we can treat it as a function of x j and y.
let f # (x, y) = i f i (x, y) Then, solve numerically for δ i in the equation Notice that in the special case where f # (x, y) is a constant f # , Equation 4 reduces to Equation 2.