Start with numbers. To add 41+61 you cannot just add the pieces, because quarters and sixths are different sizes. Cut both into twelfths: 123+122=125. Twelve is the smallest number that both 4 and 6 divide into, their least common multiple.
Rational expressions work the same way, except the denominators are polynomials. For x3+x+12 the LCD is x(x+1), so multiply the first fraction top and bottom by (x+1) and the second by x: x(x+1)3(x+1)+2x=x(x+1)5x+3. Multiplying top and bottom by the same factor is multiplying by 1, so no value changes. To build an LCD, factor each denominator and take every factor the greatest number of times it appears: for x2−1=(x−1)(x+1) and x+1, the LCD is just (x−1)(x+1).
Subtraction needs one extra habit. In x−2x−x−2x+4 the minus sign applies to the whole second numerator: x−2x−(x+4)=x−2−4. Put the numerator in brackets before you subtract.
Multiplying looks similar but needs no common denominator at all: x3⋅x+12=x(x+1)6, tops times tops and bottoms times bottoms. The plus or minus sign between the fractions is what tells you to build an LCD.
Think of it like this. Adding fractions with different denominators is like adding prices quoted in two currencies: convert both into one currency first, then add the amounts, and the currency label itself is not added. The comparison breaks down at the exchange rate, which here is a whole polynomial factor rather than a number.
Core idea. Build the LCD, rewrite each fraction over it, and add or subtract only the tops.