Since the we can choose the basis of ϕ ϕ i ( x i ) , we choose a basis in which the Lagrange multiplier matrix λ λ i j becomes diagonal, i.e. λ λ i j = ϵ ϵ i δ δ i j . Performing the variation, we obtain