This section describes how to perform the familiar operations from algebra (eg add, subtract, multiply, and divide) on functions instead of numbers or variables.
With functions however, we can take this one step further and discuss algebraic combinations of functions. This may seem intimidating at first, but algebra with functions behaves (almost) identically to algebra of variables. Take, for example, the above formula we wrote; . But it’s not unreasonable to consider that and could depend on something else, like money. If this is the case, we could write that and are functions of the money () we spend, thus we would write and (since and depend on ; that’s exactly what this notation is saying). But is still the product of and , even though those are now both functions of money, ie . This motivates our question about how we should apply algebraic operations (like multiplication) to functions, rather than just numbers.
In reality, most things can be viewed as functions (after all, most things depend on something and that’s all we need for a mathematical relation!). The important part here however is that (in most contexts) functions can also be thought of as variables. Thus we can think of “adding”, “subtracting”, “multiplying”, or “dividing” functions as being the same as doing it with variables. In general terms, given functions and , we write the following notation:
- whenever
This is fancy notation
for saying: when we want to add, subtract, multiply, or divide functions it is equivalent to calculating each of the function values at the given value and applying the desired operation to the result.Here is a video with more!