where (\lambda_k)_k and (\mu_j)_j are the vectors of multipliers. Taking the partial derivative of the Lagrangian with respect to each good x_j^k for j=1,\ldots,n and k=1,\ldots, m and gives the following system of first-order conditions:
