# Video: AQA GCSE Mathematics Higher Tier Pack 3 β’ Paper 3 β’ Question 27

Consider the functions π(π₯) = π₯ β 2 and π(π₯) = 5 β π₯Β². a) Show that ππ(π₯) = 1 + 4π₯ β π₯Β². b) Solve ππ(π₯) = ππ(π₯).

05:25

### Video Transcript

Consider the functions π of π₯ equals π₯ minus two and π of π₯ equals five minus π₯ squared.

Part a) Show that π of π of π₯ equals one plus four π₯ minus π₯ squared.

π of π of π₯ is a composite function. It means that we take an input value π₯, apply the function π first, and then apply π to the result. In this case though, weβre looking to find a general algebraic expression for the composite function π of π of π₯.

We start with an π₯-value. The function π of π₯ is π₯ minus two, meaning we subtract two from our π₯-value. This then becomes the input for the second function, π. The function π of π₯ is five minus π₯ squared. So we take our new input of π₯ minus two and replace π₯ with it, giving five minus π₯ minus two all squared.

We need to simplify this algebraic expression. So first, weβll expand the brackets. π₯ minus two all squared means π₯ minus two multiplied by π₯ minus two. You can use the FOIL method to help with this expansion if you wish. π₯ multiplied by π₯ gives π₯ squared. π₯ multiplied by negative two gives negative two π₯. Negative two multiplied by π₯ gives another lot of negative two π₯. And negative two multiplied by negative two gives positive four.

We can then simplify this expansion by grouping like terms. In the centre, we have negative two π₯ minus two π₯, which is equal to negative four π₯. So we can replace π₯ minus two all squared with our expanded version of π₯ squared minus four π₯ plus four.

Now we need to expand this larger bracket which has a negative sign in front of it. This means that weβre multiplying the whole bracket by negative one, which just has the effect of changing all of the signs. So the five stays the same. We then have negative π₯ squared plus four π₯ minus four.

Weβre nearly there with the simplification. But we just have one final step, which is to group the like terms. In this case, the only like terms are the five and negative four, which are both constant terms. They have no π₯s or π₯ squareds. Five minus four is one. And weβll just swap the order of the other two terms around to be consistent with the way π of π of π₯ is written in the question. Weβve shown then that π of π of π₯ is equal to one plus four π₯ minus π₯ squared as required.

Part b) of the question says, βSolve π of π of π₯ equals π of π of π₯.β

Here the two functions have been composed in different orders. π of π of π₯, remember, means we apply π first and then apply π, whereas π of π of π₯ means we apply π first and then apply π. Applying functions in different orders does not give the same result in general.

We have an algebraic expression for π of π of π₯ from part a). Itβs one plus four π₯ minus π₯ squared. But we donβt have one for π of π of π₯. So our first step is going to be to find this composite function. π of π₯ is the function five minus π₯ squared, and then weβre applying π to this. π of π₯ is the function π₯ minus two, meaning we take our input value and subtract two.

So if our input value is five minus π₯ squared, then we now have five minus π₯ squared minus two. This simplifies to three minus π₯ squared. So this is our algebraic expression for π of π of π₯.

Next, weβll take our two algebraic expressions for π of π of π₯ and π of π of π₯ and substitute them into the two sides of the equation. π of π of π₯ is one plus four π₯ minus π₯ squared, and π of π of π₯ is three minus π₯ squared. So we have the equation one plus four π₯ minus π₯ squared equals three minus π₯ squared.

Notice that both sides of this equation have a term of negative π₯ squared. So these will cancel each other out. You could also see this by adding π₯ squared to each side of the equation. Once these terms have been cancelled out, weβre left with the linear equation one plus four π₯ equals three, which we need to solve for π₯.

To do so, we first subtract one from each side, giving four π₯ equals two, and then divide both sides of the equation by four, giving π₯ equals two over four. But of course, the fraction two over four should be simplified to one over two or one-half by dividing both the numerator and denominator by two.

So weβve solved the equation π of π of π₯ equals π of π of π₯ and found that π₯ is equal to a half. You could of course substitute this value of a half back into the two composite functions and confirm that they do indeed give the same answer.