Hey guys

Here's the solution to a question i had on a test

http://img832.imageshack.us/img832/5103/64344098.png

ok so i don't understand how they got from:

to

and i don't get how they find the "set numerator to 0" and "set denominator to 0" answers.

any help REALLY appreciated, thanks!