Is ab and -ab like terms?
Are a squared b and b squared a like or unlike terms?
Yes, ab and – ab are like terms.
Factors of ab are 1, a and b
Factors of – ab are – 1 , a and b.
Their algebraic (i.e., those which contain variables) factors are the same. Hence, they are like terms.
a2b and b2a are not like terms.
Factors of a2b are 1, a, a and b.
Factors of b2a are 1, b, b and a.
Their algebraic factors are different. Hence, they are unlike terms.