Sum, difference, and product of two functions