Question:medium

If \( f(x) = 3x + 6 \), \( g(x) = 4x + k \), and \( f \circ g(x) = g \circ f(x) \), then find \( k \):

Show Hint

When solving problems with function compositions, equate the two expressions and solve for the unknowns. Pay attention to the structure of the functions to avoid mistakes.
Updated On: Jan 13, 2026
  • 3
  • 6
  • 9
  • 12
Show Solution

The Correct Option is C

Solution and Explanation

The functions \( f(x) = 3x + 6 \) and \( g(x) = 4x + k \) are given. It is stated that \( f \circ g(x) = g \circ f(x) \), which implies \( f(g(x)) = g(f(x)) \). The compositions are computed as follows:\[f(g(x)) = f(4x + k) = 3(4x + k) + 6 = 12x + 3k + 6.\]\[g(f(x)) = g(3x + 6) = 4(3x + 6) + k = 12x + 24 + k.\]Equating these two expressions yields:\[12x + 3k + 6 = 12x + 24 + k.\]After canceling the \( 12x \) terms, we get:\[3k + 6 = 24 + k.\]Solving for \( k \):\[3k - k = 24 - 6,\]\[2k = 18,\]\[k = 9.\]
Was this answer helpful?
0