jsam98
IanStewart
It's naturally possible to solve algebraically, but I'd use the approach Regor60 used above, since the algebra looks annoying. Faster still is to plug in a = 1 and b = 0, because then we just get (1 - 0)/(1 + 1) = 1/2.
Why does this work??
The short answer is to recognize that you're being told there's only one solution.
Well, normally you couldn't arrive at the answer without knowing A and B.
Since you don't know A and B but are being told there's only one answer, logically A and B can't matter.
It works because if you were to go through the algebraic approach the A's and B's would be seen to cancel, leaving only 1/2 as a result, so that it wouldn't matter what you assumed for those variables.
How do we know they'd cancel ?
Well, there is no restriction in the problem statement as to what values A and B can take other than the standard restrictions on not dividing by 0 or finding square root of negative numbers, so it must be that these values don't matter.
So, rather than going through the algebra, we pick two numbers to plug into the equation that can be calculated easily, as above.