Fractions with letters in them
Cancelling is legal for factors and never for terms, and everything else follows from ordinary fraction arithmetic.
A rational expression is one polynomial divided by another, such as . Somebody claims that this one is the same as . Test the claim before believing it.
Add 3.0 to the list and run it again. Every other row agrees and that one fails. Then try 2.999999 and 3.000001 and watch the fraction come very close to a particular number.
The claim is right everywhere except at , where the fraction is and is a perfectly ordinary 6. The algebra shows why: , and the matching factor cancels, leaving with the note that cannot be 3.
The value that has to be excluded is not a technicality. Producing a fraction that says , cancelling, and reading off the value the tidy version gives is the whole mechanism of a derivative.
Cancelling: factors yes, terms no
A factor is something being multiplied. A term is something being added. Cancelling means dividing top and bottom by the same quantity, and that only works on factors, because only a factor divides the whole numerator.
Only one value of x makes the two columns agree. Find it by editing the list. Then change both 3s to 5s and find the value that works for those.
Multiplying and dividing
Multiplying rational expressions is the same as multiplying numeric fractions: tops times tops, bottoms times bottoms. The work is all in factoring first so that the cancelling can happen before anything is multiplied out.
That example collapsed to 1 because every factor found a partner, which is tidier than the usual case. Here is one where something survives, every step.
Simplify .
- Factor every top and every bottom before touching anything else. is a difference of squares, so it is .
- needs two numbers multiplying to 3 and adding to 4, which are 1 and 3, so it is .
- The other two pieces, and , are already as factored as they get.
- Write the whole thing as one fraction, tops multiplied and bottoms multiplied: .
- Cancel the factors that appear top and bottom. appears in both, so it goes. appears in both, so it goes too.
- What is left is .
- Check at : the original is , and the answer is .
- Note what is excluded. The cancelled factors were zero at and , and the on the bottom rules out , so the answer holds for every except those three.
Dividing is multiplying by the reciprocal, that is, by the fraction turned upside down. . Flip the second one only, never the first.
Simplify .
- Turn the division into a multiplication by flipping the second fraction: .
- Factor what is left. , a difference of squares.
- needs two numbers multiplying to 9 and adding to 6, which are 3 and 3, so it is .
- As one fraction: .
- Cancel from top and bottom, and cancel one against one of the two on the bottom. One stays behind on the bottom, because there were two down there and only one up top.
- The answer is .
- Check at : the original is , and the answer is .
Change (x - 1) / x to (x + 1) / x and run it again. Every row now disagrees, which is what cancelling the wrong bracket looks like. Put it back, then change 2.0 to -0.999 and run it again: the two columns still agree, even a thousandth of a step away from the value that the original cannot handle at all.
Adding and subtracting: the common denominator
Fractions can only be added when their denominators match, because needs the same in both. When they do not match, each fraction is multiplied by a disguised 1 until they do.
The lowest common denominator, or LCD, is built from the factorisations: take every distinct factor that appears anywhere, each raised to the highest power it reaches in any one denominator.
Work all the way through.
- Factor every denominator. is a difference of squares, so it is . The second denominator is already factored: .
- Collect the distinct factors: and . Each appears to the first power at most, so the LCD is .
- The first fraction already has that denominator, so it is left alone: .
- The second is missing the factor , so multiply it by , which is 1: it becomes .
- Now the denominators match, so add the numerators: .
- The sum is , which can also be written .
- Can it simplify further? The top would have to share a factor with the bottom, and is zero at while the bottom is zero at and at , so no.
- Check at : the original is , and the answer is .
Change the 2 / to 5 / and run it again. The columns disagree. Redo step 5 with a 5 in it, then edit combined until they match.
Simplify and state the value of that must be excluded.
Factor both. The top is , since and 2 multiply to and add to . The bottom is a difference of squares, . The factor cancels, leaving , valid for . The value was never allowed in the first place and is still not allowed, since the simplified form is also undefined there.