%the system is always consistent for any f and g(a is not zero), what can you infer syms a b c d f g K=[a,b,f;c,d,g] K(1,:)=K(1,:)/a K(2,:)=K(2,:)-c*K(1,:)