I need to compute the Lagrangian of the primal problem for hard margin SVMs by hand. This is an assignment for university!
I have vectors $$x_0 = (0, 0), x_1=(1, 2), x_2 = (-1, 2)$$ and $$y_1 = -1, y_2 = 1, y_3 = 1 $$ So I need to find a hyperplane that can divide the two classes ($-1, 1$) with a hard margin.
Now for this I need to solve the primal optimization problem which is:
$$ \text{min}_{w \in \mathbb{R^d}, b \in \mathbb{R}} \text{ } \frac{1}{2} ||w||^2 \\ \text{s.t.: } Y_i(\langle w, X_i \rangle + b) \geq 1\\ \text{or s.t.: } Y_i(\langle w, X_i \rangle + b) - 1 \geq 0 $$ With using the Lagrangian I get the following: $$ L(\omega, b, \alpha) = \frac{1}{2}||w||^2 - \sum^n_{i = 1} \alpha_i (Y_i(\langle w, X_i \rangle + b) - 1) $$ So I need to get all the derivatives of the Lagrangian , where I get my first problems. How do I derive for $\alpha$? $$ \frac{\partial L}{\partial w} : w - \sum^n_{i = 1} \alpha_i \cdot Y_i \cdot X_i = 0\\ \frac{\partial L}{\partial b} : \sum^n_{i = 1} \alpha_i \cdot Y_i = 0\\ \frac{\partial L}{\partial \alpha} : ?\\ $$
Now after I have all derivatives I will have a linear equation system with $w, b, \alpha$ being the unknowns. I even have problems to get to the linear equation system because I don't have much of a background on matrices in my study "career".
So my question is, what is the derivative of $\frac{\partial L}{\partial \alpha}$ (A clue would be good enough) and how do I create the equation system to solve this problem?
Regarding the Lagrangian
$$ L(\omega, b, \alpha) = \frac{1}{2}||\omega||^2 - \sum^n_{i = 1} \alpha_i (\langle \omega, X_i \rangle + b - y_i) $$
we have
$$ \partial_{\omega} L = \omega-\sum_i \alpha_iX_i = 0\\ \partial_{\alpha_i}L = \langle \omega, X_i\rangle +b - y_i = 0\\ \partial_b L = \sum_i\alpha_i = 0 $$
In our case it gives the separation plane $y-1=0$
NOTE
The system to solve is
$$ \left\{ \begin{array}{rcl} \alpha_2-\alpha_3+\omega_1&=&0 \\ 2 \alpha_2+2 \alpha_2+\omega_2&=&0 \\ b+1&=&0 \\ b+\omega_1+2 \omega_2-1&=&0 \\ b-\omega_1+2 \omega_2-1&=&0 \\ \alpha_1+\alpha_2+\alpha_3&=&0 \\ \end{array} \right. $$
giving
$$ \omega=(0,1),\ \ b=-1,\ \ \alpha =\left(\frac 12,-\frac 14, -\frac 14\right) $$