Travou nisso? Resolva com IA
Algebra · real student question

Given f(x) = 4x - 7, g(x) = 8x^2 - 2x - 3 and h(x) = 4x^3 + 9x - 2, find (g of f)(x), (h of f)(2) and (f of h)(x).

Question

Given

f(x)=4x−7,g(x)=8x2−2x−3,h(x)=4x3+9x−2f(x) = 4x-7, \qquad g(x) = 8x^2-2x-3, \qquad h(x) = 4x^3+9x-2

find (a) (g∘f)(x)(g \circ f)(x), (b) (h∘f)(2)(h \circ f)(2), (c) (f∘h)(x)(f \circ h)(x).

Step-by-step solution

  1. Fix the convention. (g∘f)(x)(g \circ f)(x) means g(f(x))g(f(x)): the right function acts first. Reversing the order gives a different answer in general, and here (f∘g)(x)=32x2−8x−19(f \circ g)(x) = 32x^2 - 8x - 19, nothing like part (a).

  2. Part (a): substitute f into g. Replace every xx in gg by 4x−74x-7:

    g(f(x))=8(4x−7)2−2(4x−7)−3g(f(x)) = 8(4x-7)^2 - 2(4x-7) - 3

    With (4x−7)2=16x2−56x+49(4x-7)^2 = 16x^2 - 56x + 49:

    =128x2−448x+392−8x+14−3=128x2−456x+403= 128x^2 - 448x + 392 - 8x + 14 - 3 = 128x^2 - 456x + 403

  3. Part (b): evaluate inside first. For a numerical composition there is no need to build the general formula:

    f(2)=4(2)−7=1,h(1)=4(1)3+9(1)−2=11f(2) = 4(2) - 7 = 1, \qquad h(1) = 4(1)^3 + 9(1) - 2 = 11

    so (h∘f)(2)=11(h \circ f)(2) = 11. Composing symbolically first would mean expanding (4x−7)3(4x-7)^3 for no gain.

  4. Part (c): substitute h into f. Because ff is linear, this composition is easy — just scale and shift:

    f(h(x))=4(4x3+9x−2)−7=16x3+36x−8−7=16x3+36x−15f(h(x)) = 4\left(4x^3 + 9x - 2\right) - 7 = 16x^3 + 36x - 8 - 7 = 16x^3 + 36x - 15

  5. Check the answers numerically. At x=1.7x = 1.7: f(1.7)=−0.2f(1.7) = -0.2 and g(−0.2)=0.32+0.4−3=−2.28g(-0.2) = 0.32 + 0.4 - 3 = -2.28, while the formula gives 128(2.89)−456(1.7)+403=−2.28128(2.89) - 456(1.7) + 403 = -2.28. For (c) at x=−2.3x = -2.3: h(−2.3)=−71.368h(-2.3) = -71.368 and f(−71.368)=−292.472f(-71.368) = -292.472, while 16(−12.167)+36(−2.3)−15=−292.47216(-12.167) + 36(-2.3) - 15 = -292.472. Both match.

  6. Note the degree pattern. Composing a degree-mm with a degree-nn polynomial gives degree mnmn: g∘fg \circ f is 2×1=22 \times 1 = 2, and f∘hf \circ h is 1×3=31 \times 3 = 3, matching the results above.

Answer

(g∘f)(x)=128x2−456x+403,(h∘f)(2)=11,(f∘h)(x)=16x3+36x−15(g\circ f)(x) = 128x^2 - 456x + 403, \quad (h\circ f)(2) = 11, \quad (f\circ h)(x) = 16x^3 + 36x - 15

Need to solve a different problem like this? Open the solver →