jacobian calculates the symbolic Jacobian df/dx of a polynomial f(x).
With only 1 argument, the differentiation is performed with respect to all involved variables (more precisely, with respect to the variables recover(depends(f)))
x2 = sdpvar(1,1);
f = x1^2+5*x2^2;
Giving a second argument controls what variables to differentiate with respect to