Given two functions, perform the basic operations of adding, subtracting, multiplying, and dividing the two functions.