### Video Transcript

Given π of π₯ equals three π₯ minus one and π of π₯ equals π₯ squared plus one, find π of π of two.

This thing here is the function π of π or π composed with π. And like normal for a function, we define it by saying what it does to the input π₯. π composed with π of π₯ is equal to π of π of π₯. Letβs use this definition to find π of π of two.

To find π of π of two, we replace π₯ by two in the definition, so we have π of π of two. We can use the definition of π of π₯ to find π of two. π of π₯ is π₯ squared plus one, so π of two is two squared plus one, and two squared plus one is five, so π of two is five and π of π of two is π of five.

And we know how to evaluate π of five: we replace π₯ in the definition of π of π₯ by five, giving us three times five minus one, which is 14. We couldβve found this a different way applying the definition of π of π₯ first. π of π₯ is three π₯ minus one, so π of π of two is three π of two minus one.

We still have to find the value of π of two of course. π of π₯ is π₯ squared plus one, so π of two is two squared plus one, which is five as we found before. And so as before, we get three times five minus one, which is 14. So whichever way round we do it, we get the same answer.