Acquiring the derivatives of the geometry residuals is more involved, but ultimately reduces to determining the first derivatives of the optimal geometric variables, Ω * s , with respect to parameters pk (∇ pΩ * s ). To determine this, we differentiate the optimality conditions imposed by Problem (LM) with respect to the variables in p. After simplification, this results in Equation ( ).