# Thread:

1. ## Composition of Two Functions

Let $f(x) = x + 4$ and $h(x) = 4x - 1$. Find a function $g$ such that $g \circ f = h$.

$g(f(x)) = h$

$g(f) = h$

$g(x + 4) = 4x - 1$

$g = \frac {4x - 1}{x + 4}$

And textbook answer is $g(x) = 4x - 17$

I don't know how to get the textbook answer.......?

2. Originally Posted by Macleef
Let $f(x) = x + 4$ and $h(x) = 4x - 1$. Find a function $g$ such that $g \circ f = h$.

$g(f(x)) = h$

$g(f) = h$

$g(x + 4) = 4x - 1$

$\color{red}g = \frac {4x - 1}{x + 4}$

And textbook answer is $g(x) = 4x - 17$
the line in red is just wrong. g(x + 4) is NOT a product. you do not think of it as g times (x + 4). it is g of (x + 4), it is function notation, you cannot manipulate it as you did.

now when you have g(x + 4), it means you took some function g(x) and shifted it 4 units to the left. so given g(x + 4), we must replace x with x - 4, that way, we have g(x - 4 + 4) = g(x), what we did here was shift the function back to the right. thus we know that to get g from h, we must replace the x in h(x) with x - 4 (essentially what we are doing is shifting the h(x) function to the right to match up with the g(x)).

so, we have:

g(x + 4) = h(x)

replace x everywhere with x - 4, we get:

g(x) = h(x - 4)

=> g(x) = 4(x - 4) - 1

=> g(x) = 4x - 17
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 18, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9394038319587708, "perplexity_flag": "middle"}