Data Science, Machine Learning, Statistics, Artificial Intelligence.
Squaring both of the above equation. Rewriting the above equation which forms the constraint of the maximization of the objective function. There is a mathematical trick to achieve this which is known as the Lagrange Multiplier. Recall; So, Finding the derivative of J with respect to phi and lambda