Math Atlas

역함수Inverse Functions

Algebra 2Algebra 2 · 1. 함수의 개념과 변환1. Functions & Transformations

학습 목표
  • 합성 (fg)(x)=f(g(x))(f \circ g)(x) = f(g(x))를 정식 연산으로 도입한다.
  • 역함수를 "되돌리는 함수"로 정의하고, xyx \leftrightarrow y 교환으로 구한다.
  • 역함수의 존재 조건(일대일, 가로선 검사)과 그래프의 y=xy = x 대칭을 이해한다.

합성: 함수를 이어 붙이다

첫 차시에서 f(f(x))f(f(x))를 맛봤다 — 함수의 출력을 다시 함수에 넣는 조작이 정식 이름을 얻을 차례다.

정의합성

두 함수 ff, gg합성 (fg)(x)=f(g(x))(f \circ g)(x) = f(g(x))gg를 먼저 적용하고 그 출력을 ff에 넣는다.

기호의 순서와 적용 순서가 반대로 읽히는 것에 주의하라 — fgf \circ g는 "gg 먼저"다(식 f(g(x))f(g(x))에서 xx에 가까운 쪽이 먼저). 그리고 순서는 결과를 바꾼다:

f(x)=x2,  g(x)=x3:(fg)(x)=(x3)2,(gf)(x)=x23.f(x) = x^2,\; g(x) = x - 3: \qquad (f \circ g)(x) = (x - 3)^2, \qquad (g \circ f)(x) = x^2 - 3.

낯익은 두 식이다 — 안쪽 이동과 바깥 이동. 지난 두 차시의 변환들은 사실 "이동·신축 함수와의 합성"이었던 셈이고, 합성의 비가환성이 곧 변환 순서의 비가환성이었다.

역함수: 되돌리는 함수

f(x)=2x+3f(x) = 2x + 3은 입력을 "22배 하고 33 더하기"로 가공한다. 출력에서 입력을 복원하려면 역순으로 벗긴다33 빼고, 22로 나눈다:

f1(x)=x32.f^{-1}(x) = \frac{x - 3}{2}.

양말 신고 신발 신은 것을 벗을 때는 신발부터 벗는 것과 같은 이치다 — 마지막에 한 일을 먼저 되돌린다.

정의역함수

함수 ff역함수 f1f^{-1}ff의 대응을 거꾸로 뒤집은 함수다: f(a)=b    f1(b)=af(a) = b \iff f^{-1}(b) = a. 두 함수는 서로를 상쇄한다 —

f1(f(x))=x,f(f1(x))=x.f^{-1}\big(f(x)\big) = x, \qquad f\big(f^{-1}(x)\big) = x.

구하는 절차는 "대응 뒤집기"를 식으로 실행한 것이다:

  1. y=f(x)y = f(x)로 적는다.
  2. xxyy맞바꾼다 — 입력과 출력의 역할 교대.
  3. yy에 대해 푼다.
예제

f(x)=x3+2f(x) = \dfrac{x}{3} + 2의 역함수: y=x3+2y = \dfrac x3 + 2에서 교환하면 x=y3+2x = \dfrac y3 + 2, 풀면 y=3(x2)y = 3(x - 2):

f1(x)=3x6.f^{-1}(x) = 3x - 6.

검증 — 합성으로: f(f1(x))=3x63+2=xf(f^{-1}(x)) = \dfrac{3x - 6}{3} + 2 = x ✓. 역함수 문제의 검산은 언제나 이 합성 한 줄이다.

존재 조건: 일대일

대응을 뒤집었을 때 함수가 되려면, 원래 함수에서 서로 다른 입력이 서로 다른 출력을 가져야 한다 — 출력 하나를 두 입력이 공유하면, 뒤집는 순간 "입력 하나에 출력 둘"이 되기 때문이다. 이런 함수를 일대일(one-to-one)이라 한다.

그래프 판별은 세로선 검사의 쌍둥이인 가로선 검사다: 어떤 가로선도 그래프와 많아야 한 번 만나면 일대일이다.

예제

f(x)=x2f(x) = x^2은 일대일이 아니다 — 가로선 y=4y = 4(±2,4)(\pm 2, 4) 두 점에서 만난다. 그래서 x2x^2 전체의 역함수는 없다.

그러나 정의역을 x0x \ge 0으로 제한하면 일대일이 되고, 그 역함수가 바로 x\sqrt{x}다 — 첫 차시에서 원과 누운 포물선을 "반쪽 내던" 조작의 정체가 여기서 밝혀진다: 역함수를 만들기 위한 제한이었다.

그래프: y=xy = x 거울

f(a)=bf(a) = b이면 f1(b)=af^{-1}(b) = a — 점 (a,b)(a, b)ff의 그래프에 있으면 (b,a)(b, a)f1f^{-1}의 그래프에 있다. 좌표 교환 (a,b)(b,a)(a, b) \mapsto (b, a)는 기하 변환 단원의 직선 y=xy = x에 대한 반사다:

f1의 그래프=f의 그래프를 y=x에 반사한 것.f^{-1}\text{의 그래프} = f\text{의 그래프를 } y = x\text{에 반사한 것.}

x y O 2 4 6 2 4 6 y = x y = x² y = √x (2, 4) (4, 2)
f와 f⁻¹ — 서로가 y = x 거울에 비친 상이다.

정의역과 치역도 자리를 바꾼다 — ff의 치역이 f1f^{-1}의 정의역, ff의 정의역이 f1f^{-1}의 치역이다. x\sqrt x의 정의역 [0,)[0, \infty)가 제한된 x2x^2의 치역이었던 것이 그 표본이다.

주의

f1f^{-1}1f\dfrac{1}{f}가 아니다 — 지수 1-1이 역수가 아니라 역대응을 뜻하는 자리다. f(x)=2x+3f(x) = 2x + 3이면 f1(x)=x32f^{-1}(x) = \frac{x-3}{2}이지 12x+3\frac{1}{2x+3}이 아니다. 헷갈릴 때는 합성 검산 — f(f1(x))=xf(f^{-1}(x)) = x가 나와야 진짜 역함수다.

Goals
  • Introduce composition (fg)(x)=f(g(x))(f \circ g)(x) = f(g(x)) as an official operation.
  • Define inverse functions as "undoing functions," found by swapping xyx \leftrightarrow y.
  • Understand when inverses exist (one-to-one, horizontal line test) and the y=xy = x mirror symmetry.

Composition: chaining functions

The first lesson previewed f(f(x))f(f(x)) — feeding a function's output back into a function now earns its official name.

Definitioncomposition

The composition of ff and gg is (fg)(x)=f(g(x))(f \circ g)(x) = f(g(x)) — apply gg first, then feed its output to ff.

Mind that the symbol order and the application order read oppositelyfgf \circ g means "gg first" (in f(g(x))f(g(x)), the function nearer xx acts first). And order changes the result:

f(x)=x2,  g(x)=x3:(fg)(x)=(x3)2,(gf)(x)=x23.f(x) = x^2,\; g(x) = x - 3: \qquad (f \circ g)(x) = (x - 3)^2, \qquad (g \circ f)(x) = x^2 - 3.

Two familiar formulas — the inside shift and the outside shift. The past two lessons' transformations were compositions with shift-and-stretch functions all along, and the noncommutativity of composition was the noncommutativity of transformation order.

Inverse functions: the undoing function

f(x)=2x+3f(x) = 2x + 3 processes its input by "double, then add 33." To recover the input from the output, unwrap in reverse — subtract 33, then halve:

f1(x)=x32.f^{-1}(x) = \frac{x - 3}{2}.

The same logic as taking off socks and shoes — what went on last comes off first.

Definitioninverse function

The inverse f1f^{-1} of a function ff reverses its assignment: f(a)=b    f1(b)=af(a) = b \iff f^{-1}(b) = a. The two cancel each other —

f1(f(x))=x,f(f1(x))=x.f^{-1}\big(f(x)\big) = x, \qquad f\big(f^{-1}(x)\big) = x.

The procedure executes "reverse the assignment" on the formula:

  1. Write y=f(x)y = f(x).
  2. Swap xx and yy — input and output trade roles.
  3. Solve for yy.
Example

The inverse of f(x)=x3+2f(x) = \dfrac{x}{3} + 2: from y=x3+2y = \dfrac x3 + 2, swap to x=y3+2x = \dfrac y3 + 2, solve: y=3(x2)y = 3(x - 2):

f1(x)=3x6.f^{-1}(x) = 3x - 6.

Verify by composing: f(f1(x))=3x63+2=xf(f^{-1}(x)) = \dfrac{3x - 6}{3} + 2 = x ✓. The check for every inverse problem is always this one line of composition.

When inverses exist: one-to-one

For the reversed assignment to be a function, distinct inputs of the original must have distinct outputs — if two inputs share an output, reversing creates "one input, two outputs." Such functions are called one-to-one.

The graphical test is the vertical line test's twin — the horizontal line test: one-to-one exactly when every horizontal line meets the graph at most once.

Example

f(x)=x2f(x) = x^2 is not one-to-one — the horizontal line y=4y = 4 meets it at both (±2,4)(\pm 2, 4). So x2x^2 as a whole has no inverse.

But restrict the domain to x0x \ge 0 and it becomes one-to-one — and its inverse is precisely x\sqrt{x}. The "halving" of circles and sideways parabolas in the first lesson stands revealed: it was restriction in the service of inverses.

The graph: a y=xy = x mirror

f(a)=bf(a) = b means f1(b)=af^{-1}(b) = a — whenever (a,b)(a, b) is on ff's graph, (b,a)(b, a) is on f1f^{-1}'s. The coordinate swap (a,b)(b,a)(a, b) \mapsto (b, a) is, from the geometry transformations unit, reflection across the line y=xy = x:

the graph of f1=the graph of f reflected across y=x.\text{the graph of } f^{-1} = \text{the graph of } f \text{ reflected across } y = x.

x y O 2 4 6 2 4 6 y = x y = x² y = √x (2, 4) (4, 2)
f and f⁻¹ — each the other's image in the y = x mirror.

Domain and range trade places too — ff's range is f1f^{-1}'s domain and vice versa. The domain [0,)[0, \infty) of x\sqrt x being the range of restricted x2x^2 is the specimen.

Watch out

f1f^{-1} is not 1f\dfrac{1}{f} — in this seat, the exponent 1-1 means reversed assignment, not reciprocal. For f(x)=2x+3f(x) = 2x + 3, f1(x)=x32f^{-1}(x) = \frac{x-3}{2}, never 12x+3\frac{1}{2x+3}. When unsure, run the composition check — only a genuine inverse returns f(f1(x))=xf(f^{-1}(x)) = x.