3: For non-zero a one should get
Note that this approach would ot work for a equal to zero, we would get an indeterminate product.
For a = 0 one should get
Note that here we did not have to treat b = 0 as a special sub-case, as the procedure yields to correct answer for it.
Answer