A shop's takings minus its costs, both for the same month, gives its profit. This lesson shows how to add, subtract, multiply and divide two functions, at one number and as one formula.
Core idea
Adding and subtracting outputs
Take two functions, and . Each one turns an input number into an output.
Give both the input . The outputs are and .
To add the two functions, add their outputs at the same input. That gives .
Subtracting works the same way, in the order the name gives. So . Swap the order and you get instead.
Multiplying and dividing outputs
Multiply the same two outputs to get the product. That gives .
To divide, put the output of over the output of . That gives . This only works where is not zero, because you cannot divide by zero.
One formula for the combination
You can also combine the formulas before any input goes in. Write each formula in brackets, then combine them. Here .
The minus sign sits in front of the whole bracket. It changes the sign of every term inside. So .
Check it with the input . The formula gives , the same as .
Most people take away only the first term in the bracket. The minus belongs to the whole bracket, which is why is wrong.
Worked example
Let and . Find .
To add two functions, find each output at the same input and add them:
So . Both outputs come from the same input.
Problems
Let and . Find .
Hint
Find and , then take the output of away from the output of .
Let and . Find .
Hint
Find the two outputs, then divide the output of by the output of .
Let and . Write as a single formula.
Hint
Write each formula in brackets, with the minus sign in front of the bracket for .