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)=4x7,g(x)=8x22x3,h(x)=4x3+9x2f(x) = 4x-7, \qquad g(x) = 8x^2-2x-3, \qquad h(x) = 4x^3+9x-2

find (a) (gf)(x)(g \circ f)(x), (b) (hf)(2)(h \circ f)(2), (c) (fh)(x)(f \circ h)(x).

Step-by-step solution

  1. Fix the convention. (gf)(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 (fg)(x)=32x28x19(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 4x74x-7:

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

    With (4x7)2=16x256x+49(4x-7)^2 = 16x^2 - 56x + 49:

    =128x2448x+3928x+143=128x2456x+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 (hf)(2)=11(h \circ f)(2) = 11. Composing symbolically first would mean expanding (4x7)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+9x2)7=16x3+36x87=16x3+36x15f(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.43=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: gfg \circ f is 2×1=22 \times 1 = 2, and fhf \circ h is 1×3=31 \times 3 = 3, matching the results above.

Answer

(gf)(x)=128x2456x+403,(hf)(2)=11,(fh)(x)=16x3+36x15(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 →