solve ab+c=0 for a