Math Atlas

합성과 역함수 심화Composition & Inverses, Deepened

Precalculus (AP)Precalculus (AP) · 1. 변화율과 함수 심화1. Rates of Change & Functions Revisited

학습 목표
  • 합성의 정의역을 정밀하게 다룬다 — 두 관문을 모두 통과해야 한다.
  • 함수를 합성으로 분해하는 눈을 기른다(미분 연쇄법칙의 사전 훈련).
  • f1(f(x))=xf^{-1}(f(x)) = x의 함정(x|x|!), 정의역 제한, (fg)1=g1f1(f \circ g)^{-1} = g^{-1} \circ f^{-1}을 증명한다.

합성의 정의역: 관문이 두 개다

(fg)(x)=f(g(x))(f \circ g)(x) = f(g(x))가 정의되려면 두 관문을 통과해야 한다 — xxgg의 정의역에 있고, 그 출력 g(x)g(x)가 다시 ff의 정의역에 있어야 한다.

x g g(x) f f(g(x))
두 기계를 통과하는 입력 — 각 기계의 관문을 모두 지나야 한다.
예제

f(x)=xf(x) = \sqrt x, g(x)=1xg(x) = \dfrac1x의 합성 (fg)(x)=1x(f \circ g)(x) = \sqrt{\dfrac1x}: 첫 관문 x0x \ne 0, 둘째 관문 1x0\dfrac1x \ge 0 — 합쳐서 x>0x > 0.

합성식을 먼저 계산해 놓고 그 식만 보면 관문 하나를 놓치기 쉽다 — 정의역은 합성 전의 두 함수가 정한다.

그리고 순서는 바꿀 수 없다: f(x)=2x+1f(x) = 2x + 1, g(x)=x2g(x) = x^2이면 (fg)(x)=2x2+1(f \circ g)(x) = 2x^2 + 1이지만 (gf)(x)=(2x+1)2(g \circ f)(x) = (2x+1)^2합성은 비가환이다.

분해: 겹을 읽는 눈

거꾸로, 겹쳐진 함수를 벗겨 읽는 훈련이 곧 온다(미분의 연쇄법칙). h(x)=x2+1h(x) = \sqrt{x^2 + 1}

g(x)=x2+1  (),f(x)=x  (바깥),h=fgg(x) = x^2 + 1 \;(\text{안}), \qquad f(x) = \sqrt x \;(\text{바깥}), \qquad h = f \circ g

— "마지막에 하는 연산이 바깥 함수"로 읽으면 된다. 분해는 유일하지 않다(g=x2g = x^2, f=x+1f = \sqrt{x + 1}도 가능) — 목적에 맞는 분해를 고르는 것까지가 기술이다.

왕복의 함정: x2=x\sqrt{x^2} = |x|

역함수의 왕복 항등식은 두 방향의 정의역이 다르다. f(x)=x2f(x) = x^2[0,)[0, \infty)로 제한해 f1(x)=xf^{-1}(x) = \sqrt x를 얻으면:

f(f1(x))=(x)2=x(x0에서),f1(f(x))=x2=xf(f^{-1}(x)) = (\sqrt x)^2 = x \quad (x \ge 0\text{에서}), \qquad f^{-1}(f(x)) = \sqrt{x^2} = |x|

— 제한을 잊고 음수 xx를 넣으면 되돌아오지 못한다: (3)2=33\sqrt{(-3)^2} = 3 \ne -3. 제한이 곧 계약이다: x2x^2은 전체 정의역에서 일대일이 아니므로(수평선 판정), 반쪽 [0,)[0, \infty)을 골라야 역함수 자격이 생긴다 — 삼각함수의 역함수(U3)가 이 기술의 대무대다.

신발과 양말: (fg)1=g1f1(f \circ g)^{-1} = g^{-1} \circ f^{-1}

합성을 되돌리려면 나중 것부터 거꾸로 벗겨야 한다 — 양말 신고 신발 신었으면, 벗을 때는 신발 먼저.

증명 — 후보 g1f1g^{-1} \circ f^{-1}를 합성해 항등이 되는지 확인한다:

(fg)(g1f1)(x)=f(g(g1(f1(x))))=f(f1(x))=x(f \circ g) \circ (g^{-1} \circ f^{-1})(x) = f\big(g(g^{-1}(f^{-1}(x)))\big) = f(f^{-1}(x)) = x

(안쪽부터 gg1g \circ g^{-1}가 지워지고 ff1f \circ f^{-1}가 지워진다). 반대 순서 합성도 같다 — 그러므로 이것이 역함수다. \blacksquare

주의

합성 순서를 뒤집는 실수 두 곳 — (fg)(x)(f \circ g)(x)gg부터 적용한 것(ff가 바깥), 그리고 그 역은 순서가 뒤집힌 g1f1g^{-1} \circ f^{-1}이다. 또 f1f^{-1}1f\dfrac1f가 아니다 — 표기의 오랜 함정. 마지막으로 "그래프끼리 y=xy = x 대칭"은 항상 참이지만, "fff1f^{-1}교점y=xy = x 위"는 증가함수에서만 보장된다(연습 p11의 반례와 증명).

Goals
  • Treat composite domains precisely — two gates, both mandatory.
  • Train the eye that decomposes functions into layers (advance drill for the chain rule).
  • Prove the f1(f(x))=xf^{-1}(f(x)) = x trap (x|x|!), domain restriction, and (fg)1=g1f1(f \circ g)^{-1} = g^{-1} \circ f^{-1}.

The composite's domain: two gates

For (fg)(x)=f(g(x))(f \circ g)(x) = f(g(x)) to exist, two gates must open — xx in gg's domain, and the output g(x)g(x) in ff's domain.

x g g(x) f f(g(x))
Input through two machines — every machine's gate must be cleared.
Example

For f(x)=xf(x) = \sqrt x and g(x)=1xg(x) = \dfrac1x, the composite (fg)(x)=1x(f \circ g)(x) = \sqrt{\dfrac1x}: first gate x0x \ne 0, second gate 1x0\dfrac1x \ge 0 — together, x>0x > 0.

Compute the composite formula first and stare only at it, and a gate slips by — the domain is set by the two functions before composing.

And the order is immutable: with f(x)=2x+1f(x) = 2x + 1, g(x)=x2g(x) = x^2, (fg)(x)=2x2+1(f \circ g)(x) = 2x^2 + 1 while (gf)(x)=(2x+1)2(g \circ f)(x) = (2x+1)^2composition does not commute.

Decomposition: reading the layers

The reverse skill — peeling a layered function — is soon needed (the chain rule). h(x)=x2+1h(x) = \sqrt{x^2 + 1} splits as

g(x)=x2+1  (inner),f(x)=x  (outer),h=fgg(x) = x^2 + 1 \;(\text{inner}), \qquad f(x) = \sqrt x \;(\text{outer}), \qquad h = f \circ g

— read "the operation done last is the outer function." Decompositions aren't unique (g=x2g = x^2, f=x+1f = \sqrt{x + 1} also works) — choosing the one fit for purpose is part of the skill.

The round-trip trap: x2=x\sqrt{x^2} = |x|

The inverse round-trip identities carry different domains in the two directions. Restrict f(x)=x2f(x) = x^2 to [0,)[0, \infty) so that f1(x)=xf^{-1}(x) = \sqrt x:

f(f1(x))=(x)2=x(for x0),f1(f(x))=x2=xf(f^{-1}(x)) = (\sqrt x)^2 = x \quad (\text{for } x \ge 0), \qquad f^{-1}(f(x)) = \sqrt{x^2} = |x|

— forget the restriction, feed in a negative xx, and the trip fails to return: (3)2=33\sqrt{(-3)^2} = 3 \ne -3. The restriction is the contract: x2x^2 on its full domain is not one-to-one (horizontal line test), so a half, [0,)[0, \infty), must be chosen before an inverse exists — and the inverse trigonometric functions (U3) are this technique's grand stage.

Shoes and socks: (fg)1=g1f1(f \circ g)^{-1} = g^{-1} \circ f^{-1}

To undo a composition, peel from the outside in — socks then shoes on, means shoes then socks off.

Proof — compose the candidate g1f1g^{-1} \circ f^{-1} and check for the identity:

(fg)(g1f1)(x)=f(g(g1(f1(x))))=f(f1(x))=x(f \circ g) \circ (g^{-1} \circ f^{-1})(x) = f\big(g(g^{-1}(f^{-1}(x)))\big) = f(f^{-1}(x)) = x

(inside first, gg1g \circ g^{-1} cancels, then ff1f \circ f^{-1}). The opposite-order composition works the same — so this candidate is the inverse. \blacksquare

Watch out

Two places to flip an order wrongly — (fg)(x)(f \circ g)(x) applies gg first (ff is outer), and its inverse runs reversed: g1f1g^{-1} \circ f^{-1}. Also f1f^{-1} is not 1f\dfrac1f — notation's oldest trap. Finally, "the graphs mirror across y=xy = x" is always true, but "intersections of ff and f1f^{-1} lie on y=xy = x" is guaranteed only for increasing ff (counterexample and proof in p11).