function J=Jac(x)
% EE362G Smart Grids
% Jacobian Matrix for State Estimation on 2-bus network 

J=[1 0 0; 0 1 0 ;
    15*x(2)*sin(x(3)), 15*x(1)*sin(x(3)), 15*x(1)*x(2)*cos(x(3));
   -15*x(2)*cos(x(3)), 30*x(2)-15*x(1)*cos(x(3)),  15*x(1)*x(2)*sin(x(3))];