SVM finds the hyperplane with maximum geometric margin. In the separable case the constraint
yi(wTxi+b)≥1 (normalized functional margin) yields geometric margin
∥w∥2, so maximizing it is equivalent to minimizing
21∥w∥2. With Lagrange multipliers
αi≥0,
L(w,b,α)=21∥w∥2−∑i=1nαi[yi(wTxi+b)−1]; setting derivatives w.r.t.
w,b to zero gives
w=∑iαiyixi and
∑iαiyi=0, and substituting back yields the dual
maxα∑iαi−21∑i,jαiαjyiyjxiTxj s.t.
αi≥0, ∑iαiyi=0. The KKT complementary-slackness condition
αi[yi(wTxi+b)−1]=0 means only samples on the margin boundary (
yi(wTxi+b)=1) have
αi>0; these are the support vectors, and
f(x)=∑i∈SVαiyixiTx+b depends only on them.