Curiosity about why this is not a Function composition

In summary: But, I'll give a brief summary.First, note that the solutions to the functional equation [itex]f:[a,b]\to[a,b],\,f(f(f(x))) = x[/itex] are just the permutations of [itex][a,b][/itex]. So there are [itex](b-a+1)! = 3! = 6[/itex] solutions. If you want to find the solutions to the functional equation [itex]f:[a,b]\to[a,b],\,f(f(f(x))) = x[/itex] more generally, then you'd have to consider the group [itex]S_n[/itex] and its subgroups. But I
  • #1
ecastro
254
8

Homework Statement


If ##f\left(x\right) = x^2 + 2x + 2##, find two functions ##g## for which ##\left(f \circ g\right)\left(x\right) = x^2 - 4x + 5##.

Homework Equations


If ##f\left(x\right) = x^2 + 2x + 2##, then ##\left(f \circ g\right)\left(x\right) = g\left(x\right)^2 + 2g\left(x\right) + 2##, so ##g\left(x\right)^2 + 2g\left(x\right) + 2 = x^2 - 4x + 5##

The Attempt at a Solution


By solving for ##g\left(x\right)##,
\begin{align*}
g\left(x\right)^2 + 2g\left(x\right) + 2 - 2&= x^2 - 4x + 5 - 2 \\
g\left(x\right)^2 + 2g\left(x\right) &= x^2 - 4x + 3 \\
g\left(x\right)\left[g\left(x\right) + 2\right] &= \left(x - 3\right)\left(x - 1\right)
\end{align*}

From here ##\left(x - 3\right)## is a solution, but ##\left(x - 1\right)## is not. Now, according to the answers provided, another function ##g## is ##1 - x##, which is the negative of ##x - 1##. How do you arrive at this solution?

I know that it is possible to let ##\left(x - 3\right)\left(x - 1\right) = -\left(x - 3\right)\left(1 - x\right)##, but what is the intuition behind it?
 
  • Like
Likes Leo Consoli
Physics news on Phys.org
  • #2
Well, you have ##g(x) \left [ g(x) + 2 \right ] = (x - 3)(x - 1)## but you could flip the signs and also write ##g(x) \left [ g(x) + 2 \right ] = (3 - x)(1 - x)## and since ##(3 - x)## = ##(1 - x) + 2## you can then identify ##g(x)## with ##(1 - x)## and ##g(x) + 2## with ##(3 - x)##
 
  • Like
Likes SammyS, Leo Consoli and mfb
  • #3
ecastro said:

Homework Statement


If ##f\left(x\right) = x^2 + 2x + 2##, find two functions ##g## for which ##\left(f \circ g\right)\left(x\right) = x^2 - 4x + 5##.

Homework Equations


If ##f\left(x\right) = x^2 + 2x + 2##, then ##\left(f \circ g\right)\left(x\right) = g\left(x\right)^2 + 2g\left(x\right) + 2##, so ##g\left(x\right)^2 + 2g\left(x\right) + 2 = x^2 - 4x + 5##

The Attempt at a Solution


By solving for ##g\left(x\right)##,
\begin{align*}
g\left(x\right)^2 + 2g\left(x\right) + 2 - \color{red}2 & = x^2 - 4x + 5 - \color{red}2 \\

\end{align*}
That's a good start.

Rather than subtracting 2, subtract 1. That gives the following.

## \left(g(x)\right)^2 + 2g\left(x\right) + 1 = x^2 - 4x + 4 ##​

The expression on each side of the equation is a perfect square.
 
Last edited:
  • Like
Likes Leo Consoli and mfb
  • #4
RPinPA said:
Well, you have g(x)[g(x)+2]=(x−3)(x−1)g(x)[g(x)+2]=(x−3)(x−1)g(x) \left [ g(x) + 2 \right ] = (x - 3)(x - 1) but you could flip the signs and also write g(x)[g(x)+2]=(3−x)(1−x)g(x)[g(x)+2]=(3−x)(1−x)g(x) \left [ g(x) + 2 \right ] = (3 - x)(1 - x) and since (3−x)(3−x)(3 - x) = (1−x)+2(1−x)+2(1 - x) + 2 you can then identify g(x)g(x)g(x) with (1−x)(1−x)(1 - x) and g(x)+2g(x)+2g(x) + 2 with (3−x)

Is there any particular reason why we should flip signs?

SammyS said:
That's a good start.

Rather than subtracting 2, subtract 1. That gives the following.

## \left(g(x)\right)^2 + 2g\left(x\right) + 1 = x^2 - 4x + 4 ##​

The expression on each side of the equation is a perfect square.

Oh, I never thought of this. Thanks!
 
  • #5
ecastro said:
Is there any particular reason why we should flip signs?

Because it gives another solution. It's just a thing to try, an equivalent equation with potentially a different solution. Which turns out to be the case.
 
  • #6
Sorry if this is too far of an aside, but I always wondered how to determine the number of solution to functional equations, or a method that exhausts all solutions. What if we, e.g., have the equation f(x)^3 =Id, aka, find all f with fofof(x) =x (where o means function composition).
 
  • #7
ecastro said:
Is there any particular reason why we should flip signs?
RPinPA said:
Because it gives another solution. It's just a thing to try, an equivalent equation with potentially a different solution. Which turns out to be the case.
To further answer OP's question:

Rather than saying "flip the signs", consider the following.

You can write ##\ (x-3)\ ## as ##\ -(-x+3)\ ##.

Similarly write ##\ (x-1)\ ## as ##\ -(-x+1)\ ##.

So, ##\ (x-3)(x-1) =(-(-x+3))(-(-x+1)) = (-x+3)(-x+1) \ ##.

To finish things off:
Write this as ##(-x+1)(-x+3) = ((-x+1))((-x+1)+2) \ ##.
Combine this with what you have done in the OP.
 
  • Like
Likes Leo Consoli
  • #8
WWGD said:
Sorry if this is too far of an aside, but I always wondered how to determine the number of solution to functional equations, or a method that exhausts all solutions. What if we, e.g., have the equation f(x)^3 =Id, aka, find all f with fofof(x) =x (where o means function composition).
This is complicated and way beyond the scope of this thread if treated properly.
 
  • Like
Likes WWGD

1. Why is it important to understand function composition in science?

Function composition is a fundamental concept in mathematics and science that allows us to break down complex systems into smaller, more manageable parts. By understanding function composition, scientists can better analyze and model real-world phenomena, make predictions, and develop new theories.

2. What is the difference between a function and a composition of functions?

A function is a rule that maps one set of values to another set of values. A composition of functions is the combination of two or more functions, where the output of one function becomes the input of another. In other words, a composition of functions is a function within a function.

3. How do you determine if a given set of functions can be composed?

To determine if a given set of functions can be composed, you need to check if the output of one function matches the input of another function. If the output of one function can be used as the input of another, then the functions can be composed.

4. Can any two functions be composed?

No, not all functions can be composed. For two functions to be composed, the output of one function must match the input of the other function. Additionally, the domain of the first function must contain the range of the second function.

5. How can understanding function composition help in problem-solving?

Understanding function composition can help in problem-solving by breaking down a complex problem into smaller, more manageable parts. By identifying the functions involved and how they can be composed, scientists can approach problem-solving in a systematic and logical manner, leading to more accurate and efficient solutions.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
4
Views
909
  • Precalculus Mathematics Homework Help
Replies
3
Views
602
  • Precalculus Mathematics Homework Help
Replies
10
Views
600
  • Precalculus Mathematics Homework Help
Replies
13
Views
292
  • Precalculus Mathematics Homework Help
Replies
21
Views
1K
  • Precalculus Mathematics Homework Help
Replies
11
Views
1K
  • Precalculus Mathematics Homework Help
Replies
10
Views
834
  • Precalculus Mathematics Homework Help
Replies
17
Views
1K
  • Precalculus Mathematics Homework Help
Replies
3
Views
1K
  • Precalculus Mathematics Homework Help
Replies
2
Views
832
Back
Top