Longtime lurker here, composite function problem

AI Thread Summary
The discussion revolves around solving the composite function f(g(h(x))) = 1/(2-x) with given functions f(x) = (x^2) - 1 and h(x) = 3x + 12. Participants guide the original poster in deriving g(x) from g(h(x)), emphasizing the need to express g(h(x)) in terms of y = h(x). The solution involves recognizing that g(h(x)) = ±sqrt((3-x)/(2-x)), leading to the final form g(x) = sqrt((10-x)/(7-x)). Additionally, it is noted that the function f is not one-to-one, which affects the uniqueness of g(x), and the composite function's domain is more restricted than that of k(x) = 1/(2-x).
Poset
Messages
3
Reaction score
0

Homework Statement



Let f(g(h(x))) = 1/(2-x)

Find g(x) if:

f(x) = (x^2) - 1
h(x) = 3x+12. The attempt at a solution

This is what I have:

g(h(x))^2 -1 = 1/(2-x)
g(h(x) = sqrt((3-x)/(2-x))

I'm not sure how to get the h(x) out of this to leave me with just g(x). Please point me in the right direction.

Thank you!
 
Physics news on Phys.org
The obvious thing to do is to set y = h(x) and find g(y) = g(h(x)) in terms of y.
 
Thank you for your reply. Am I right to assume that the calculations to g(h(x)) I did are correct? And what you are implying is that to get g(x) I need to go backwards from h(x) using the inverse of g(h(x)) and y = h(x) = 3x+1? I'm sorry it's not that obvious to me.
 
Your second line isn't far off. Then if you replace x there with y=h-1 you'll get g(y).
 
Poset said:

Homework Statement



Let f(g(h(x))) = 1/(2-x)

Find g(x) if:

f(x) = (x^2) - 1
h(x) = 3x+12. The attempt at a solution

This is what I have:

g(h(x))^2 -1 = 1/(2-x)
g(h(x) = sqrt((3-x)/(2-x))

I'm not sure how to get the h(x) out of this to leave me with just g(x). Please point me in the right direction.

Thank you!

You've got:

##g(h(x)) = \sqrt{\frac{3-x}{2-x}}##

Why not take one more step?

##g(3x+1) = \sqrt{\frac{3-x}{2-x}}##

Can you see what to do to finish things off?
 
On your last step I see you substituted x with y=3x+1 on the left-hand side, but not the right-hand side. In other words it should be 3-y (etc). Then you should have g(y) but you can set y=x to get g(x). To check your answer calculate f(g(h(x))) & see what you get.
 
Nice I just got this. Thank you all for your help

g(x) = sqrt((10-x)/(7-x))

I spent this entire time trying to figure this out. I really couldn't find any similar examples on the internet.
 
Poset said:

Homework Statement



Let f(g(h(x))) = 1/(2-x)

Find g(x) if:

f(x) = (x^2) - 1
h(x) = 3x+12. The attempt at a solution

This is what I have:

g(h(x))^2 -1 = 1/(2-x)
g(h(x) = sqrt((3-x)/(2-x))

I'm not sure how to get the h(x) out of this to leave me with just g(x). Please point me in the right direction.

Thank you!

Do it systematically: ##f(g(h(x)) = g(h(x))^2 - 1## and ##g(h(x)) = g(3x+1)##, so ##f(g(h(x)) = g(3x-1)^2 - 1##.
 
PeroK said:
You've got:

##g(h(x)) = \sqrt{\frac{3-x}{2-x}}##

Why not take one more step?

##g(3x+1) = \sqrt{\frac{3-x}{2-x}}##

Can you see what to do to finish things off?
I like PeroK's reply here.

Two things to point out to Poset:

First of all; f(x) is not a 1 to 1 function.

So, when you find ##g(h(x)) = \sqrt{\frac{3-x}{2-x}}## , you should include a ± , so you can choose either sign in finding g(x). Thus the choice for g(x) is not unique.

##\displaystyle g(h(x)) = \pm\sqrt{\frac{3-x}{2-x}}##​

Second: The composite function, ##\ f\circ g\circ h\ ##, may have a more restricted domain than the implicit domain of ##\ \displaystyle k(x)=\frac{1}{2-x}\ ##.

Added in Edit: I've been working on this while the recent posts have come in.

Note: ##\displaystyle\ \frac{10-x}{7-x}=\frac{x-10}{x-7}##
 
Last edited:
  • #10
I thought this might be of interest.

Below is a graph of the composite function y = f(g(h(x))), (in black). The range is restricted to y ≥ -1, because the final function, f, has a range, [-1,∞) .

The missing piece of the graph for y =1/(2-x) is shown dotted in grey.

Triple composition.png

.
 
  • #11
SammyS said:
I thought this might be of interest.

Below is a graph of the composite function y = f(g(h(x))), (in black). The range is restricted to y ≥ -1, because the final function, f, has a range, [-1,∞) .

The missing piece of the graph for y =1/(2-x) is shown dotted in grey.

View attachment 80159
.

Just as a matter of interest: what package did you use to make the graph?
 
  • #12
Ray Vickson said:
Just as a matter of interest: what package did you use to make the graph?
Ray,

It's called Graph - appropriately enough.

Graph_prgm.PNG

It's not perfect, but usually gets the job done.
 
  • #13
SammyS said:
Ray,

It's called Graph - appropriately enough.

View attachment 80164
It's not perfect, but usually gets the job done.

Thank you for that.
 

Similar threads

Replies
10
Views
2K
Replies
3
Views
2K
Replies
23
Views
3K
Replies
4
Views
2K
Replies
15
Views
2K
Replies
13
Views
2K
Back
Top