### Video Transcript

Given that π of π₯ equals three π₯
plus two, find π΅ so that π of π₯ equals negative three π₯ plus π΅ satisfies π of
π equals π of π.

Letβs take a moment to understand
the notation being used in this question. We have two functions, π of π₯ and
π of π₯. Weβre then given this equation
here: π of π equals π of π. On the left-hand side, we have π
of π, which means the composite function we get when we take an input, apply the
function π, and then apply the function π to the result, whereas on the right-hand
side we have π of π, which means the composite function we get when we take an
input, apply the function π first, and then apply the function π to the
result.

The order in which we apply these
functions is really important because in general composition of functions is not
commutative, by which we mean the order does matter. In this specific case of these two
functions π and π, weβre told that π of π of π₯ is equal to π of π of π₯ for a
particular value of this unknown π΅. And we need to work out what that
value is. To do this, letβs find algebraic
expressions for π of π and π of π of π₯.

Letβs start with π of π of
π₯. When we take an input π₯ and apply
the function π, we get negative three π₯ plus π΅. We then take this as the input to
the function π. So, we have π of negative three π₯
plus π΅. Now, π is the function that takes
an input, multiplies it by three, and then adds two. So, weβre going to replace the
input π₯ with negative three π₯ plus π΅. So, we multiply negative three π₯
plus π΅ by three and then add two. Distributing the parentheses, we
have that π of π of π₯ is equal to negative nine π₯ plus three π΅ plus two.

Now letβs see what happens when we
compose the two functions in the other order. So, weβre going to take an input
π₯, apply the function π, and then apply the function π. Applying the function π first
gives three π₯ plus two. And then we take this as our input
to the function π. We multiply this expression by
negative three and add the unknown π΅. Distributing the parentheses, we
have π of π of π₯ is equal to negative nine π₯ minus six plus π΅.

Now, we want these two expressions
to be equal to each other for a particular value of π΅. So, we have negative nine π₯ plus
three π΅ plus two equals negative nine π₯ minus six plus π΅. We can see straightaway that the
π₯-terms cancel, leaving three π΅ plus two equals negative six plus π΅. Collecting all of the π΅s on the
left-hand side of the equation by subtracting π΅ from each side gives two π΅ plus
two equals negative six. Then, we subtract two from each
side to give two π΅ equals negative eight and finally divide both sides of the
equation by two to give π΅ equals negative four. We found then that the value of
this unknown π΅ such that π of π of π₯ is equal to π of π of π₯ for all values
of π₯ is negative four.

This question does also illustrate
a general point, which is that when we compose two linear functions, such as those
we have here, the coefficient of π₯ will be the same no matter which order we
compose them in, in this case itβs equal to negative nine, whereas the constant term
will in general be different.

We found that for the given
functions π and π of π₯, the value of π΅ that satisfies π of π of π₯ equals π
of π of π₯ is negative four.