MATH-14 · LINEAR ALGEBRA

행렬·연립방정식·랭크와 식별Matrices, linear systems, rank and identification

행과 열의 계산에서 해집합·정보 소실·실제 공시 행렬까지From row-column calculations to solution sets, lost information and actual filing matrices

실습 6종 · 풀이 포함 연습문제 35개6 labs · 35 exercises with solutions

기초Foundations

1. 여러 계산을 한 번에 묶는 표1. A table that organizes several calculations

두 상품을 만드는 데 재료가 얼마나 필요한지 생각해 봅시다. 상품마다 필요한 재료의 양을 열로, 재료 종류를 행으로 정리하면 표 하나로 여러 계산을 할 수 있습니다. 표의 숫자뿐 아니라 행과 열의 이름도 계산의 일부입니다. 서로 다른 열을 바꾸면 상품의 의미가 바뀝니다.

행렬은 숫자를 직사각형으로 배열한 것입니다. 단순히 표처럼 보인다는 사실보다, 어떤 입력을 어떤 출력으로 바꾸는지와 각 칸을 어떻게 계산하는지가 중요합니다. 13장의 벡터 여러 개를 나란히 놓아 만든 대상으로 시작하겠습니다.

Imagine a table listing the materials needed for each product: products are columns and materials are rows. It organizes several calculations at once. Row and column labels belong to the calculation; changing their order changes meaning.

A matrix is a rectangular array of numbers. Its purpose is more than its table-like appearance: ask which input it takes, which output it returns and how entries are combined. Begin by placing vectors from Chapter 13 side by side.

기초Foundations

2. 행·열·차원과 각 칸의 주소2. Rows, columns, shape and entry addresses

가로줄을 행, 세로줄을 열이라고 부릅니다. m행 n열인 행렬의 크기는 m×n입니다. aᵢⱼ는 i번째 행, j번째 열의 숫자입니다. 아래 A는 2×3이고 a₂₃=1입니다. 첨자의 순서를 바꾸면 다른 칸을 읽습니다.

A=(102−131)∈R2×3,a23=1A=\begin{pmatrix}1&0&2\\-1&3&1\end{pmatrix}\in\mathbb R^{2\times3},\qquad a_{23}=1

행 하나를 따로 읽으면 길이 n인 행벡터이고, 열 하나는 길이 m인 열벡터입니다. 이 장에서는 입력 x를 기본적으로 열벡터로 씁니다. 자료표에서 한 관측을 한 행으로 저장하는 관행과 구별하세요. 같은 숫자라도 행인지 열인지에 따라 곱셈 가능한 방향이 달라집니다.

0행렬은 모든 칸이 0인 행렬이고 정방행렬은 행 수와 열 수가 같습니다. 0이라는 이름만으로 크기를 지우면 안 됩니다. 2×3의 0행렬과 3×2의 0행렬은 서로 다른 입력·출력 구조를 갖습니다.

A matrix with m rows and n columns has shape m×n. Entry aᵢⱼ is in row i, column j. The displayed matrix is 2×3 with a₂₃=1; reversing subscripts reads a different location.

A=(102−131)∈R2×3,a23=1A=\begin{pmatrix}1&0&2\\-1&3&1\end{pmatrix}\in\mathbb R^{2\times3},\qquad a_{23}=1

A row has n components, and a column has m. Inputs here are column vectors by default. Data tables commonly store observations as rows; that convention must be distinguished from a column-vector input.

A zero matrix has only zero entries, while a square matrix has equal row and column counts. Keep shape labels: zero matrices of shapes 2×3 and 3×2 describe different input-output structures.

기초Foundations

3. 같은 모양끼리 더하고 상수배하기3. Add matching shapes and multiply by scalars

행렬의 덧셈은 같은 주소끼리 더합니다. 두 표에서 행과 열의 뜻과 순서가 같아야 실질적인 합이 됩니다. 2×3과 3×2는 칸 수가 6으로 같아도 대응 구조가 달라 그대로 더하지 않습니다.

(A+B)ij=aij+bij,(cA)ij=caij(A+B)_{ij}=a_{ij}+b_{ij},\qquad (cA)_{ij}=ca_{ij}

상수 c를 곱할 때는 모든 칸에 곱합니다. 예를 들어 [[1,2],[0,1]]의 2배는 [[2,4],[0,2]]입니다. 대각선만 바꾸는 것은 다른 연산입니다. 실수 하나와 행렬의 곱은 다음에 배울 두 행렬의 곱과도 다릅니다.

같은 크기에서 A+B=B+A이고, A+(−A)=0입니다. 이 성질이 있다고 두 행렬의 곱까지 순서를 바꿀 수 있는 것은 아닙니다. 새로운 연산을 배울 때마다 어떤 성질이 유지되는지 따로 확인해야 합니다.

Matrix addition pairs matching entry addresses. Application labels and order must match too. Shapes 2×3 and 3×2 cannot be added merely because both contain six numbers.

(A+B)ij=aij+bij,(cA)ij=caij(A+B)_{ij}=a_{ij}+b_{ij},\qquad (cA)_{ij}=ca_{ij}

Scalar multiplication affects every entry. Twice [[1,2],[0,1]] is [[2,4],[0,2]], not a change to its diagonal alone. This differs from the matrix-matrix product introduced below.

Addition commutes for matching shapes, and A+(−A)=0. These facts do not automatically transfer to multiplication. Check each new operation's properties separately.

기초Foundations

4. 행렬×벡터: 각 행과 내적하기4. Matrix-vector multiplication uses row dot products

A=[[2,1],[1,−1]]을 입력 x=(3,1)에 적용해 봅시다. 첫 출력은 첫 행과 x의 내적 2·3+1·1=7이고, 둘째는 1·3−1·1=2입니다. 출력은 (7,2)입니다. 성분별 곱만 계산하고 멈추면 출력 하나에 필요한 합을 빠뜨립니다.

Ax=(211−1)(31)=(72),(Ax)i=∑j=1naijxjA\mathbf x=\begin{pmatrix}2&1\\1&-1\end{pmatrix}\begin{pmatrix}3\\1\end{pmatrix}=\begin{pmatrix}7\\2\end{pmatrix},\qquad (A\mathbf x)_i=\sum_{j=1}^{n}a_{ij}x_j

m×n 행렬은 n개 입력을 받아 m개 출력을 만듭니다. 안쪽 수 n이 맞는지 먼저 확인하세요. 2×3 행렬에 길이 2의 열벡터를 넣으면 계산 규칙의 대응 칸이 부족합니다. 실습의 2×2 그림은 이 일반 규칙의 작은 예입니다.

실습에서 한 행을 바꾸면 어떤 출력이 바뀌는지, 입력 성분 하나를 바꾸면 어느 출력들이 함께 바뀌는지 관찰하세요. 원자료·계수·출력의 역할을 구별하는 연습이 뒤의 회귀식에도 도움이 됩니다.

Apply A=[[2,1],[1,−1]] to x=(3,1). Each row takes a dot product with the input: the outputs are 7 and 2. Stopping at componentwise products omits the required sums.

Ax=(211−1)(31)=(72),(Ax)i=∑j=1naijxjA\mathbf x=\begin{pmatrix}2&1\\1&-1\end{pmatrix}\begin{pmatrix}3\\1\end{pmatrix}=\begin{pmatrix}7\\2\end{pmatrix},\qquad (A\mathbf x)_i=\sum_{j=1}^{n}a_{ij}x_j

An m×n matrix maps n inputs to m outputs. Check the shared dimension before calculating. The lab's 2×2 picture illustrates this general rule; a 2×3 matrix instead needs a three-component input.

Change a row, then change one input component. Identify which outputs respond in each experiment. Distinguish data, coefficients and computed outputs before interpreting an application.

기초Foundations

5. 같은 계산을 열의 선형결합으로 읽기5. Read the same product as a combination of columns

앞 행렬의 첫 열은 a₁=(2,1), 둘째 열은 a₂=(1,−1)입니다. 입력 x=(3,1)은 첫 열을 3배, 둘째 열을 1배 해서 더하라는 뜻입니다. 3(2,1)+(1,−1)=(7,2)로 같은 출력을 얻습니다.

Ax=x1a1+⋯+xnan,Aej=ajA\mathbf x=x_1\mathbf a_1+\cdots+x_n\mathbf a_n,\qquad A\mathbf e_j=\mathbf a_j

왜 두 방법이 같을까요? i번째 성분만 보면 열의 조합은 x₁aᵢ₁+⋯+xₙaᵢₙ입니다. 바로 i번째 행과 입력의 내적입니다. 행별 계산은 숫자 검산에, 열별 해석은 가능한 출력과 역문제를 이해하는 데 유용합니다.

기준 입력 eⱼ는 j번째만 1인 벡터입니다. 이 입력에 대한 출력이 j번째 열이므로, 선형변환이 각 기준 방향을 어디로 보내는지 알면 행렬의 모든 열을 알 수 있습니다. 열이 같은 방향으로 겹치면 서로 다른 입력이 같은 출력으로 합쳐질 수 있습니다.

The example's columns are a₁=(2,1), a₂=(1,−1). Input (3,1) means 3a₁+a₂=(7,2), giving the same result as the row calculation.

Ax=x1a1+⋯+xnan,Aej=ajA\mathbf x=x_1\mathbf a_1+\cdots+x_n\mathbf a_n,\qquad A\mathbf e_j=\mathbf a_j

Component i of the column combination is x₁aᵢ₁+⋯+xₙaᵢₙ, exactly the row dot product. Row calculations help arithmetic; columns explain achievable outputs and inverse questions.

The standard input eⱼ selects column j. Knowing where all standard directions go therefore determines a linear map's matrix. Overlapping column directions can merge different inputs into the same output.

기초Foundations

6. 선형변환과 아핀 변환을 구별하기6. Distinguish linear maps from affine maps

T(x)=Ax는 입력의 합과 상수배를 보존합니다. A(u+v)를 각 행에서 전개하면 Au+Av이고, A(cu)=cAu입니다. 이를 선형성이라 부릅니다. 특히 T(0)=0이어야 합니다.

T(αu+βv)=αT(u)+βT(v),T(0)=0T(\alpha\mathbf u+\beta\mathbf v)=\alpha T(\mathbf u)+\beta T(\mathbf v),\qquad T(\mathbf0)=\mathbf0

고정된 벡터 b를 더한 T(x)=Ax+b는 아핀 변환입니다. b≠0이면 원점이 b로 이동하므로 선형변환은 아닙니다. 일상에서 ‘직선 모양’이라는 뜻으로 선형이라고 부르는 것과 선형대수의 정의가 다를 수 있습니다.

13장의 표준화를 떠올려 보세요. 고정된 평균을 빼는 중심화까지 포함한 x↦D(x−μ)는 일반적으로 아핀입니다. 중심화 이후의 z↦Dz 같은 고정 배율 연산은 선형입니다. 평균과 척도를 매번 새 자료에서 다시 추정하는 절차까지 모두 같은 고정 행렬이라고 가정해서는 안 됩니다.

T(x)=Ax preserves sums and scalar multiples: expansion gives A(u+v)=Au+Av and A(cu)=cAu. This is linearity, which in particular requires T(0)=0.

T(αu+βv)=αT(u)+βT(v),T(0)=0T(\alpha\mathbf u+\beta\mathbf v)=\alpha T(\mathbf u)+\beta T(\mathbf v),\qquad T(\mathbf0)=\mathbf0

T(x)=Ax+b with fixed b is affine. If b≠0, the origin moves, so the map is not linear in the linear-algebra sense even when its graph looks straight.

With fixed nonzero scales, standardization x↦D(x−μ) generally includes an affine centering step. Pure multiplication by a fixed diagonal matrix is linear. Re-estimating centers and scales from each new dataset is not the same fixed map.

기초Foundations

7. 늘이기·뒤집기·전단과 정보의 소실7. Stretching, reflection, shear and lost information

대각행렬 [[2,0],[0,1]]은 가로 좌표만 2배 합니다. [[1,0],[0,−1]]은 세로 좌표를 뒤집습니다. [[1,1],[0,1]]은 (x,y)를 (x+y,y)로 보내는 전단입니다. 격자의 모양이 달라져도 각 출력은 정해진 입력의 선형결합입니다.

(1101)(xy)=(x+yy),(1000)(xy)=(x0)\begin{pmatrix}1&1\\0&1\end{pmatrix}\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}x+y\\y\end{pmatrix},\qquad \begin{pmatrix}1&0\\0&0\end{pmatrix}\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}x\\0\end{pmatrix}

오른쪽 행렬은 모든 세로 정보를 지워 가로축으로 보냅니다. (1,2)와 (1,−7)의 출력이 모두 (1,0)이므로 출력만 보고 원래 세로 좌표를 복원할 수 없습니다. 0이 아닌 입력이 0으로 갈 수 있다는 사실이 뒤의 영공간과 연결됩니다.

모든 행렬이 회전이나 길이 보존인 것은 아닙니다. 어떤 것은 늘이고 어떤 것은 차원을 줄입니다. 그림에서 화살표가 변했다는 관찰을 길이가 보존되었다거나 정보가 모두 보존되었다는 주장으로 확대하지 않습니다.

Diagonal scaling [[2,0],[0,1]] doubles the horizontal coordinate. Reflection [[1,0],[0,−1]] reverses the vertical one. A shear sends (x,y) to (x+y,y), still a linear combination of inputs.

(1101)(xy)=(x+yy),(1000)(xy)=(x0)\begin{pmatrix}1&1\\0&1\end{pmatrix}\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}x+y\\y\end{pmatrix},\qquad \begin{pmatrix}1&0\\0&0\end{pmatrix}\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}x\\0\end{pmatrix}

The second map deletes vertical information. Inputs (1,2) and (1,−7) both become (1,0), preventing reconstruction from output alone. Nonzero inputs mapping to zero prepare the null-space idea.

Not every matrix represents a rotation or preserves length. Some stretch; some reduce dimension. A transformed-arrow picture alone does not establish information or length preservation.

기초Foundations

8. 전치: 행과 열을 바꾸되 뜻은 확인하기8. Transposition swaps rows and columns

전치 Aᵀ는 aᵢⱼ를 j행 i열로 옮깁니다. 2×3은 3×2가 됩니다. 단순히 숫자를 재배열하는 연산이며, 원래 변환을 되돌리는 역행렬이라는 뜻은 아닙니다.

(AT)ji=aij,(AB)T=BTAT(A^\mathsf T)_{ji}=a_{ij},\qquad (AB)^\mathsf T=B^\mathsf T A^\mathsf T

왜 곱의 전치에서는 순서가 뒤집힐까요? 왼쪽의 i,j칸은 원래 AB의 j,i칸이므로 Σₖaⱼₖbₖᵢ입니다. 오른쪽은 Σₖbₖᵢaⱼₖ로 같은 실수합입니다. 동시에 차원도 반대 순서로 맞아야 합니다.

자료행렬 X에서 행이 관측, 열이 특성이라면 Xᵀ는 특성이 행으로 올라옵니다. 계산하기 편하다고 전치하면서 표의 설명을 그대로 두면 안 됩니다. 15장의 XᵀX가 왜 등장하는지도 이 칸별 해석으로 확인하게 됩니다.

Transposition moves entry aᵢⱼ to row j, column i. A 2×3 matrix becomes 3×2. It rearranges entries; it is not automatically the inverse of the original transformation.

(AT)ji=aij,(AB)T=BTAT(A^\mathsf T)_{ji}=a_{ij},\qquad (AB)^\mathsf T=B^\mathsf T A^\mathsf T

The i,j entry on the left is Σₖaⱼₖbₖᵢ; on the right it is Σₖbₖᵢaⱼₖ. Real scalar multiplication makes these equal. Reversing the order also gives compatible dimensions.

If observations are rows of a data matrix X, they become columns of Xᵀ. Update labels when transposing. Chapter 15 will explain products such as XᵀX from these entrywise meanings.

기초Foundations

9. 행렬곱: 행과 열의 만남을 계산하기9. Matrix multiplication pairs rows with columns

A가 m×n, B가 n×p이면 AB는 m×p입니다. 가운데 크기 n이 같아야 하고 바깥 크기가 결과를 정합니다. 결과의 i,j칸은 A의 i행과 B의 j열을 내적합니다. 같은 주소끼리 곱하는 성분별 곱과 다릅니다.

(AB)ij=∑k=1naikbkj,(m×n)(n×p)⟶(m×p)(AB)_{ij}=\sum_{k=1}^{n}a_{ik}b_{kj},\qquad (m\times n)(n\times p)\longrightarrow(m\times p)

예를 들어 A=[[1,2],[0,1]], B=[[2,0],[0,1]]이면 AB=[[2,2],[0,1]]입니다. 첫째 행 둘째 열은 1·0+2·1=2입니다. 어느 행과 어느 열을 만났는지 손으로 표시한 뒤 결과를 채워 보세요.

직사각형에서도 규칙은 같습니다. 2×3과 3×4의 곱은 2×4지만 반대 순서는 3×4와 2×3의 안쪽 크기가 달라 정의되지 않습니다. 행렬곱은 두 행렬이 존재한다는 이유만으로 항상 계산할 수 있는 연산이 아닙니다.

If A is m×n and B is n×p, AB is m×p. The shared dimension must match. Entry i,j is row i of A dotted with column j of B, not an entrywise product.

(AB)ij=∑k=1naikbkj,(m×n)(n×p)⟶(m×p)(AB)_{ij}=\sum_{k=1}^{n}a_{ik}b_{kj},\qquad (m\times n)(n\times p)\longrightarrow(m\times p)

For A=[[1,2],[0,1]], B=[[2,0],[0,1]], the product is [[2,2],[0,1]]. In particular, entry 1,2 is 1·0+2·1=2. Mark the matching row and column before calculating.

The same rule covers rectangles. Shapes 2×3 and 3×4 multiply to 2×4, but their reverse product is undefined. Two matrices cannot necessarily be multiplied in either order.

기초Foundations

10. 합성은 오른쪽부터: AB와 BA10. Composition applies the right matrix first

입력 x에 B를 먼저 적용하고 A를 나중에 적용하면 A(Bx)=(AB)x입니다. 따라서 AB라는 글자는 실제 적용 순서와 반대로 읽힙니다. 각 열에 기준 입력을 넣어 보면 이 규칙이 왜 필요한지 확인할 수 있습니다.

(AB)x=A(Bx),A=(1201), B=(2001)(AB)\mathbf x=A(B\mathbf x),\qquad A=\begin{pmatrix}1&2\\0&1\end{pmatrix},\ B=\begin{pmatrix}2&0\\0&1\end{pmatrix}

x=(1,1)에서 B를 먼저 적용하면 (2,1), 이어 A를 적용하면 (4,1)입니다. 반대 순서에서는 Ax=(3,1), B(Ax)=(6,1)입니다. 실제로 AB=[[2,2],[0,1]], BA=[[2,4],[0,1]]이어서 서로 다릅니다.

실습에서 중간 결과표도 읽으세요. 마지막 출력만 다르다는 것을 넘어, 어떤 좌표가 어느 단계에서 얼마나 변했는지 설명해 보세요. 어떤 특정 행렬쌍은 우연히 곱이 같을 수 있지만 모든 행렬곱에 교환법칙이 성립하지는 않습니다.

Applying B first and A second gives A(Bx)=(AB)x. Read the action from the right. Evaluating standard-coordinate inputs explains why the product must use this order.

(AB)x=A(Bx),A=(1201), B=(2001)(AB)\mathbf x=A(B\mathbf x),\qquad A=\begin{pmatrix}1&2\\0&1\end{pmatrix},\ B=\begin{pmatrix}2&0\\0&1\end{pmatrix}

For x=(1,1), B then A gives (2,1) then (4,1). A then B gives (3,1) then (6,1). Accordingly AB=[[2,2],[0,1]] differs from BA=[[2,4],[0,1]].

Inspect the intermediate-result table, not just final differences. Identify which coordinate changes at each stage. Some special pairs commute, but commutativity is not a general matrix-product law.

기초Foundations

11. 항등행렬과 성립하는 법칙·실패하는 법칙11. Identity matrices and valid or invalid laws

대각선이 1이고 나머지가 0인 Iₙ은 길이 n의 입력을 그대로 돌려줍니다. 2×3 행렬 A에서는 I₂A=A, AI₃=A입니다. 왼쪽과 오른쪽 항등행렬의 크기가 다름을 확인하세요.

A(BC)=(AB)C,A(B+C)=AB+AC,ImA=AIn=A(A∈Rm×n)A(BC)=(AB)C,\qquad A(B+C)=AB+AC,\qquad I_mA=AI_n=A\quad(A\in\mathbb R^{m\times n})

차원이 맞으면 결합법칙과 분배법칙은 성립합니다. 결합법칙은 순서를 바꾼다는 뜻이 아니라 같은 순서에서 어느 중간 곱을 먼저 계산할지 바꾸는 것입니다. 이를 이용하면 큰 자료의 계산량을 줄일 수 있습니다.

반면 AB=AC에서 A를 무조건 지워 B=C라고 할 수 없습니다. A=[[1,0],[0,0]]이면 둘째 행의 차이를 지워 버립니다. 0이 아닌 두 행렬의 곱이 0이 될 수도 있습니다. 역행렬이 존재하는지 같은 추가 조건이 있어야 소거가 가능합니다.

The identity Iₙ has diagonal ones and zeros elsewhere. For A of shape 2×3, I₂A=A and AI₃=A: the two identity sizes differ.

A(BC)=(AB)C,A(B+C)=AB+AC,ImA=AIn=A(A∈Rm×n)A(BC)=(AB)C,\qquad A(B+C)=AB+AC,\qquad I_mA=AI_n=A\quad(A\in\mathbb R^{m\times n})

Compatible products satisfy associativity and distributivity. Associativity changes parentheses while preserving order; it does not exchange matrices. Choosing parentheses can reduce computation.

Cancellation is not automatic. The map [[1,0],[0,0]] erases differences in the second row of a following matrix. Products of nonzero matrices can be zero. An inverse or another suitable assumption is needed to justify cancellation.

기초Foundations

12. 연립방정식을 Ax=b로 읽기12. Read a system as Ax=b

2x+y=7, x−y=2를 동시에 만족하는 값을 찾는다고 합시다. 앞에서 계산한 행렬 A와 출력 b를 알지만 입력 x는 모르는 상황입니다. 순방향 Ax 계산을 거꾸로 묻는 문제입니다.

{2x+y=7x−y=2⟺(211−1)(xy)=(72)\begin{cases}2x+y=7\\x-y=2\end{cases}\quad\Longleftrightarrow\quad \begin{pmatrix}2&1\\1&-1\end{pmatrix}\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}7\\2\end{pmatrix}

행은 방정식이고 열은 미지수입니다. 오른쪽 b는 미지수가 아니라 알려진 목표 출력입니다. 첨가행렬 [A|b]는 계수와 우변을 나란히 적은 표기입니다. 구분선은 어디까지가 미지수의 계수인지 알려줍니다.

두 직선이 만나면 해가 하나, 완전히 겹치면 무수히 많고, 평행한 다른 직선이면 해가 없습니다. 0x+0y=0처럼 평면 전체인 식이나 0x+0y=1처럼 불가능한 식도 있으므로 모든 행을 반드시 직선이라고 부르지는 않습니다. 실습은 이 예외까지 분류합니다.

To solve 2x+y=7 and x−y=2, the matrix and desired output are known but the input is unknown. This reverses the forward product question.

{2x+y=7x−y=2⟺(211−1)(xy)=(72)\begin{cases}2x+y=7\\x-y=2\end{cases}\quad\Longleftrightarrow\quad \begin{pmatrix}2&1\\1&-1\end{pmatrix}\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}7\\2\end{pmatrix}

Rows represent equations and columns represent unknowns. The augmented array [A|b] places coefficients beside the known right side; the divider marks their different roles.

Two proper lines may intersect once, coincide, or be distinct and parallel. Degenerate equations such as 0=0 or 0=1 need separate treatment: not every row represents a line. The lab includes these cases.

기초Foundations

13. 소거는 해를 바꾸지 않는 가역적 조작13. Elimination uses reversible operations

두 식을 더해 y를 없애면 3x=9라서 x=3입니다. 이를 x−y=2에 넣어 y=1을 얻습니다. 새 식 3x=9만 남기면 y 정보가 사라지므로, 한 식을 합으로 바꾸면서 다른 식은 유지해야 합니다.

[2171−12]→R1←R1+R2[3091−12]\left[\begin{array}{cc|c}2&1&7\\1&-1&2\end{array}\right]\xrightarrow{R_1\leftarrow R_1+R_2}\left[\begin{array}{cc|c}3&0&9\\1&-1&2\end{array}\right]

허용하는 기본 행 연산은 두 행의 교환, 한 행을 0이 아닌 수로 곱하기, 한 행에 다른 행의 배수를 더하기입니다. 각각 역으로 되돌릴 수 있으므로 원래 해집합을 유지합니다. 0배를 하면 원래 식을 잃어 되돌릴 수 없습니다.

우변도 같은 연산을 해야 합니다. 왼쪽 계수만 바꾸면 다른 방정식이 됩니다. 또한 행 연산과 열 교환을 구별하세요. 미지수의 열을 바꾸려면 미지수 이름과 최종 좌표도 함께 추적해야 합니다.

Adding the equations eliminates y and gives 3x=9, then substitution gives y=1. Keep the other equation: retaining only 3x=9 would discard information about y.

[2171−12]→R1←R1+R2[3091−12]\left[\begin{array}{cc|c}2&1&7\\1&-1&2\end{array}\right]\xrightarrow{R_1\leftarrow R_1+R_2}\left[\begin{array}{cc|c}3&0&9\\1&-1&2\end{array}\right]

Elementary row operations swap rows, multiply a row by a nonzero scalar, or add a multiple of another row. Each is reversible and preserves the solution set. Multiplying a row by zero is not reversible.

Apply the operation to the right side too. Changing only coefficients changes the problem. Column swaps require tracking the unknown-variable order; they are not the same operation as swapping equations.

기초Foundations

14. 계단형·피벗·자유변수를 천천히 읽기14. Read echelon forms, pivots and free variables

소거 후 각 0이 아닌 행에서 처음 나오는 0이 아닌 칸을 피벗으로 잡습니다. 0행은 모두 아래에 둡니다. 0이 아닌 행에서 아래로 내려갈수록 피벗이 오른쪽으로 가고 피벗 아래가 0이면 계단형입니다. 피벗을 1로 만들고 같은 열의 다른 칸도 0으로 만들면 기약 계단형입니다.

[102301−140000]⟹x1=3−2t,x2=4+t,x3=t\left[\begin{array}{ccc|c}1&0&2&3\\0&1&-1&4\\0&0&0&0\end{array}\right]\quad\Longrightarrow\quad x_1=3-2t,\quad x_2=4+t,\quad x_3=t

위 표에서 첫째와 둘째 미지수 열에는 피벗이 있지만 셋째에는 없습니다. x₃=t를 자유롭게 정하면 나머지가 따라옵니다. 마지막 행 0=0은 제한을 더하지 않습니다. 우변 열의 숫자 3이나 4를 미지수의 피벗으로 세지 않습니다.

계산 순서는 달라도 정확한 산술에서 기약 계단형은 유일합니다. 소거 경로를 외우기보다, 어떤 정보가 피벗 식으로 남고 어떤 입력이 자유로운지 설명하는 것이 목표입니다. 수치 계산에서 ‘거의 0’을 판정하는 문제는 23절에서 따로 봅니다.

A pivot is the first nonzero entry of a nonzero row after elimination. All zero rows are placed at the bottom. Across nonzero rows, pivot positions move right as rows descend, with zeros below. Reduced echelon form makes pivots one and clears their columns above as well.

[102301−140000]⟹x1=3−2t,x2=4+t,x3=t\left[\begin{array}{ccc|c}1&0&2&3\\0&1&-1&4\\0&0&0&0\end{array}\right]\quad\Longrightarrow\quad x_1=3-2t,\quad x_2=4+t,\quad x_3=t

The first two variable columns have pivots; the third does not. Set x₃=t and solve the other variables. A zero row adds no restriction. Do not count right-side values as variable pivots.

Reduced echelon form is unique in exact arithmetic even when valid elimination paths differ. The aim is to explain constrained versus free inputs. Deciding when a floating-point entry is nearly zero is a separate issue in Section 23.

기초Foundations

15. 유일한 해: 대입으로 끝까지 확인하기15. A unique solution deserves a substitution check

2x+y=7, x−y=2의 해는 (3,1)입니다. 두 식에 대입하면 7과 2가 되어 맞습니다. 그러나 맞는 한 점을 찾는 것과 다른 해가 없음을 보이는 것은 다른 단계입니다. 모든 미지수에 피벗이 있어 자유롭게 움직일 변수가 없다는 사실이 유일성을 보장합니다.

[2171−12]∼[103011]\left[\begin{array}{cc|c}2&1&7\\1&-1&2\end{array}\right]\sim\left[\begin{array}{cc|c}1&0&3\\0&1&1\end{array}\right]

서로 다른 해 x와 y가 있다고 가정하면 A(x−y)=0입니다. 모든 미지수에 피벗이 있으면 이 동차식은 0만 허용하므로 x=y여야 합니다. 이 생각은 특정 우변에 대한 검산을 넘어 행렬이 입력을 구별하는 성질로 이어집니다.

식이 미지수보다 많아도 유일해가 있을 수 있습니다. x+y=3, x−y=1, 2x=4는 모두 (2,1)에서 맞습니다. 다만 식이 많다는 개수만으로는 충분하지 않습니다. 중복식이나 모순식이 있는지 확인해야 합니다.

Substitution checks that (3,1) satisfies both example equations. Finding one valid point is different from proving no other solution exists. A pivot in every variable column removes free choices and establishes uniqueness when the system is consistent.

[2171−12]∼[103011]\left[\begin{array}{cc|c}2&1&7\\1&-1&2\end{array}\right]\sim\left[\begin{array}{cc|c}1&0&3\\0&1&1\end{array}\right]

If x and y were two solutions, A(x−y)=0. Pivots in every variable column force their difference to zero. This connects uniqueness with the ability to distinguish inputs.

More equations than unknowns can still give a unique solution: x+y=3, x−y=1 and 2x=4 all hold at (2,1). Counting equations alone does not rule out redundancy or contradiction.

기초Foundations

16. 무수한 해: 겹친 정보와 자유로운 방향16. Infinitely many solutions leave free directions

x+2y=3, 2x+4y=6은 둘째 식이 첫째의 2배입니다. 둘째 행에서 첫째의 2배를 빼면 0=0만 남습니다. y=t를 정하면 x=3−2t여서 모든 실수 t가 해를 하나씩 만듭니다.

(xy)=(30)+t(−21),t∈R\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}3\\0\end{pmatrix}+t\begin{pmatrix}-2\\1\end{pmatrix},\qquad t\in\mathbb R

(3,0)은 한 해이고 (−2,1)은 출력을 바꾸지 않는 방향입니다. 실제로 (1,2)·(−2,1)=0입니다. 더 많은 중복 관측을 복사한다고 이 자유가 사라지는 것은 아닙니다. 독립적인 새 제한이 필요합니다.

두 미지수에 0=0만 두 개 있으면 해는 직선 하나보다 큰 평면 전체입니다. 실습의 ‘무수’ 분류에서도 직선과 전체 평면을 구별합니다. 반대로 정수해나 양수해만 허용하는 별도 제약이 있으면 여기의 실수 해집합과 다른 문제가 됩니다.

The system x+2y=3, 2x+4y=6 repeats one equation. Elimination leaves 0=0. Setting y=t gives x=3−2t for every real t.

(xy)=(30)+t(−21),t∈R\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}3\\0\end{pmatrix}+t\begin{pmatrix}-2\\1\end{pmatrix},\qquad t\in\mathbb R

The first vector is one solution; (−2,1) changes the input without changing its output. Copying redundant observations does not remove this freedom. A genuinely additional restriction is needed.

Two equations 0=0 allow the entire plane, rather than just a line. The lab distinguishes these infinite cases. Additional integer or positivity constraints would define a different solution problem.

기초Foundations

17. 해가 없음: 0=1은 작은 오차가 아니다17. No solution means an exact contradiction

x+2y=3, 2x+4y=7에서 같은 소거를 하면 0=1이 됩니다. 어떤 x,y도 이 식을 만족하지 못하므로 해가 없습니다. 둘째 우변을 6에서 7로 바꾼 결과가 단순히 다른 교점이 되는 것은 아닙니다.

[123247]∼[123001]\left[\begin{array}{cc|c}1&2&3\\2&4&7\end{array}\right]\sim\left[\begin{array}{cc|c}1&2&3\\0&0&1\end{array}\right]

원래 식을 정확한 등식으로 취급하면 0=10⁻⁸도 모순입니다. 측정에 오차가 있어서 가까운 값을 허용하려면 오차모형·목적함수·허용기준이 필요합니다. 정확한 해가 없다는 사실을 마음대로 반올림해서 없애지 않습니다.

15장의 최소제곱은 이런 상황에서 잔차를 어떻게 작게 만들지 묻습니다. 그 근사해가 원래 모든 식을 정확하게 만족한다는 뜻은 아닙니다. 어떤 질문을 풀고 있는지 제목과 표에서 분명하게 표시해야 합니다.

Eliminating the system x+2y=3, 2x+4y=7 gives 0=1. No real input satisfies it. Altering the right side does not necessarily produce a different intersection.

[123247]∼[123001]\left[\begin{array}{cc|c}1&2&3\\2&4&7\end{array}\right]\sim\left[\begin{array}{cc|c}1&2&3\\0&0&1\end{array}\right]

For exact equations, 0=10⁻⁸ is also inconsistent. Allowing measurement error requires an explicit error model, objective or tolerance. Do not erase an exact contradiction by unannounced rounding.

Least squares in Chapter 15 asks a different question: how small can residuals become? Its approximate solution need not satisfy every original equation exactly. Label the question being answered.

학부Undergraduate

18. 랭크: 독립적인 출력 방향의 수18. Rank counts independent output directions

방정식의 x 앞 숫자도 계수(coefficient)라고 하지만 행렬의 계수(rank)는 다른 뜻입니다. 혼동을 줄이기 위해 여기서는 랭크라고 부르겠습니다. A의 열들이 만들 수 있는 출력공간의 차원이며, 소거한 A의 피벗 수와 같습니다.

rank⁡(A)=r,Ax=b consistent  ⟺  rank⁡(A)=rank⁡([A∣b]),unique if also r=n\operatorname{rank}(A)=r,\quad A\mathbf x=\mathbf b\text{ consistent}\iff\operatorname{rank}(A)=\operatorname{rank}([A\mid\mathbf b]),\quad \text{unique if also }r=n

열은 가능한 출력의 방향을 담고 행 소거는 식의 중복을 드러냅니다. 행 연산은 해의 관계를 보존하고 열들 사이의 선형관계도 보존합니다. 피벗 열들은 독립적인 열의 수를 세므로 같은 r이 나옵니다. 행 랭크와 열 랭크가 같다는 정리가 이 두 관점을 묶습니다.

해가 있으려면 우변을 붙여도 새로운 피벗이 생기지 않아야 합니다. 해가 있는 상황에서 미지수 열 수 n과 랭크가 같으면 유일해, 작으면 자유변수가 있습니다. 랭크는 항상 min(m,n) 이하입니다. 식의 개수와 독립적인 정보의 수를 같은 것으로 세지 마세요.

An equation's coefficient and a matrix's rank are different concepts. Rank is the dimension of the output space spanned by the columns, equal to the number of pivots after elimination.

rank⁡(A)=r,Ax=b consistent  ⟺  rank⁡(A)=rank⁡([A∣b]),unique if also r=n\operatorname{rank}(A)=r,\quad A\mathbf x=\mathbf b\text{ consistent}\iff\operatorname{rank}(A)=\operatorname{rank}([A\mid\mathbf b]),\quad \text{unique if also }r=n

Columns describe attainable outputs; elimination reveals redundant equations. Invertible row operations preserve column dependence relations. Pivot columns count independent directions. The equality of row and column rank connects these views.

Consistency requires that adding b creates no new pivot. For a consistent system, rank n means uniqueness; smaller rank leaves free variables. Rank never exceeds min(m,n). Counts of equations and independent information are different.

학부Undergraduate

19. 영공간과 해집합의 자유도19. Null spaces and freedom in a solution set

Az=0을 만족하는 입력 전체를 영공간이라고 부릅니다. 0 입력은 언제나 포함됩니다. 0이 아닌 z가 있으면 A(x+z)=Ax이므로 서로 다른 입력이 같은 출력을 만듭니다.

Ax0=b⟹{x:Ax=b}=x0+{z:Az=0},nullity⁡(A)=n−rA\mathbf x_0=\mathbf b\quad\Longrightarrow\quad \{\mathbf x:A\mathbf x=\mathbf b\}=\mathbf x_0+\{\mathbf z:A\mathbf z=\mathbf0\},\qquad \operatorname{nullity}(A)=n-r

이 식은 양방향으로 확인할 수 있습니다. 영방향 z를 한 해 x₀에 더하면 여전히 해입니다. 반대로 어떤 해 x에서 x₀를 빼면 A(x−x₀)=0이 됩니다. 따라서 한 해와 모든 영방향을 알면 전체 해집합을 압니다.

계단형에서 n개 미지수 중 r개는 피벗변수이고 나머지 n−r개는 자유변수입니다. 이 수가 영공간의 차원, 즉 널리티입니다. 행렬의 크기가 같아도 랭크가 다르면 잃는 정보의 방향 수도 다릅니다. 부분공간의 엄밀한 구조와 투영은 15장에서 이어 갑니다.

The null space contains all inputs z with Az=0, always including zero. Any nonzero such z makes x and x+z indistinguishable through A.

Ax0=b⟹{x:Ax=b}=x0+{z:Az=0},nullity⁡(A)=n−rA\mathbf x_0=\mathbf b\quad\Longrightarrow\quad \{\mathbf x:A\mathbf x=\mathbf b\}=\mathbf x_0+\{\mathbf z:A\mathbf z=\mathbf0\},\qquad \operatorname{nullity}(A)=n-r

Adding a null vector to one solution preserves the output. Conversely, subtracting two solutions gives a null vector. Thus one solution plus all null directions describes the whole solution set.

Among n variables, r pivot variables leave n−r free variables. This is nullity. Equal matrix shapes can lose different numbers of information directions. Chapter 15 develops subspaces and projections further.

기초Foundations

20. 유일해와 통계적·인과적 식별은 다르다20. Algebraic uniqueness is not causal identification

두 품목의 합만 알면 각 품목을 유일하게 나눌 수 없습니다. x₁+x₂=100에는 (30,70),(40,60) 등 여러 해가 있습니다. 추가로 x₁−x₂=20을 알면 (60,40)으로 정해집니다. 어떤 관측이 어떤 미지수를 구별하는지 묻는 것이 선형 역문제의 입구입니다.

그러나 X의 열이 독립이어서 회귀계수가 유일하게 계산된다는 사실만으로 인과효과가 식별되지는 않습니다. 누락변수·선택·동시결정·측정오차·처치 배정 같은 가정은 행렬 소거만으로 검증되지 않습니다. 대수적 유일성은 필요한 계산 구조에 관한 답이지 연구설계 전체의 답이 아닙니다.

Xβ=X(β+z)if Xz=0X\boldsymbol\beta=X(\boldsymbol\beta+\mathbf z)\quad\text{if }X\mathbf z=\mathbf0

열을 하나 복제하면 서로 다른 β가 같은 적합값을 만들 수 있습니다. 반대로 유일한 숫자라도 자료가 바뀌면 크게 흔들릴 수 있습니다. 계산 가능성·안정성·통계적 추론·인과적 해석을 각기 어떤 근거로 말하는지 구별해야 합니다.

Knowing x₁+x₂=100 does not identify the two components. Adding x₁−x₂=20 gives the unique pair (60,40). This illustrates which observations distinguish which unknowns in a linear inverse problem.

Independent columns can make regression coefficients algebraically unique, but do not by themselves identify causal effects. Omitted variables, selection, simultaneity, measurement error and assignment assumptions require evidence beyond elimination.

Xβ=X(β+z)if Xz=0X\boldsymbol\beta=X(\boldsymbol\beta+\mathbf z)\quad\text{if }X\mathbf z=\mathbf0

Duplicating a column can make different coefficients observationally equivalent within the model. Conversely, a unique answer can still be highly sensitive. Separate computability, stability, statistical inference and causal interpretation.

기초Foundations

21. 역행렬: 두 방향에서 되돌리는 조건21. Inverses undo a square map in both directions

정방행렬 A에 대해 AA⁻¹=A⁻¹A=I이면 A⁻¹을 역행렬이라 부릅니다. Ax=b에 왼쪽에서 A⁻¹을 곱하면 x=A⁻¹b입니다. 순서를 바꾸어 bA⁻¹이라고 쓰면 열벡터의 차원부터 맞지 않을 수 있습니다.

A−1A=AA−1=I,Ax=b⟹x=A−1b,(AB)−1=B−1A−1A^{-1}A=AA^{-1}=I,\qquad A\mathbf x=\mathbf b\Longrightarrow\mathbf x=A^{-1}\mathbf b,\qquad (AB)^{-1}=B^{-1}A^{-1}

역행렬이 있는 정방행렬은 랭크가 n이고 모든 우변에 유일한 해를 줍니다. 영방향이 있으면 그 방향을 이미 지웠기 때문에 완전히 되돌릴 수 없습니다. 직사각형에는 한쪽 곱만 항등인 행렬이 있을 수 있지만 여기의 양쪽 역행렬과 구별합니다.

위의 곱 역행렬 공식은 A,B가 같은 크기의 가역 정방행렬일 때 적용합니다. 곱 AB를 되돌릴 때는 마지막에 적용한 A부터 되돌리므로 B⁻¹A⁻¹ 순서입니다. 계산에서는 역행렬을 전부 만든 뒤 곱하는 것보다 소거·분해로 Ax=b를 직접 푸는 편이 보통 효율적입니다. 공식은 개념을 설명하고, 알고리즘 선택은 별도로 검토합니다.

For a square A, an inverse satisfies AA⁻¹=A⁻¹A=I. Left multiplication solves Ax=b as x=A⁻¹b. Moving factors to the other side without respecting order and shape is invalid.

A−1A=AA−1=I,Ax=b⟹x=A−1b,(AB)−1=B−1A−1A^{-1}A=AA^{-1}=I,\qquad A\mathbf x=\mathbf b\Longrightarrow\mathbf x=A^{-1}\mathbf b,\qquad (AB)^{-1}=B^{-1}A^{-1}

An invertible square matrix has rank n and a unique solution for every b. A lost null direction prevents full recovery. Rectangular one-sided inverses are distinct from this two-sided square inverse.

The product-inverse formula assumes invertible square A and B of the same size. Undo AB in reverse order, giving B⁻¹A⁻¹. In computation, solving through elimination or a suitable factorization is generally preferable to explicitly forming an entire inverse. Conceptual formulas and algorithm choices serve different purposes.

기초Foundations

22. 2×2 행렬식과 역행렬을 직접 유도하기22. Derive a 2×2 determinant and inverse

A=[[a,b],[c,d]]에서 D=ad−bc라고 놓습니다. [[d,−b],[−c,a]]를 양쪽에서 곱해 보면 대각선은 D, 나머지는 0이 됩니다. D≠0이면 D로 나누어 역행렬을 얻습니다. 분모가 0인 경우에 같은 공식을 쓰면 안 됩니다.

det⁡A=ad−bc,A−1=1ad−bc(d−b−ca)(ad−bc≠0)\det A=ad-bc,\qquad A^{-1}=\frac1{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}\quad(ad-bc\ne0)

A=[[2,1],[1,−1]]은 D=−3이므로 역행렬이 [[1/3,1/3],[1/3,−2/3]]입니다. b=(7,2)에 적용하면 (3,1)이 됩니다. 직접 A와 곱해 항등행렬이 되는지 먼저 확인해 보세요.

행렬식의 절대값은 평면에서 넓이 배율이고 부호는 방향 뒤집힘과 연결됩니다. 다만 행렬식이 작다는 숫자만으로 상대적 민감도가 크다고 판단하지는 않습니다. εI₂는 행렬식 ε²가 작아도 모든 방향을 같은 비율로 줄입니다. 단위와 척도를 고려한 조건수와 구별해야 합니다.

For A=[[a,b],[c,d]], multiply by [[d,−b],[−c,a]] on either side. Both products equal (ad−bc)I. If this scalar is nonzero, division yields the inverse.

det⁡A=ad−bc,A−1=1ad−bc(d−b−ca)(ad−bc≠0)\det A=ad-bc,\qquad A^{-1}=\frac1{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}\quad(ad-bc\ne0)

The example [[2,1],[1,−1]] has determinant −3 and inverse [[1/3,1/3],[1/3,−2/3]]. Multiplying by (7,2) recovers (3,1). Verify the identity product directly.

Absolute determinant is an area scale in the plane; its sign tracks orientation. A small determinant alone does not establish poor relative conditioning. The matrix εI₂ has tiny determinant but scales every direction equally. Conditioning also depends on scale and norms.

학부Undergraduate

23. 거의 겹친 식: 유일하지만 흔들리는 답23. Nearly dependent equations can have sensitive solutions

첫 식이 x+y=2이고 둘째가 x+(1+ε)y=2+ε+δ라고 합시다. 두 식을 빼면 εy=ε+δ입니다. 의도한 정확한 ε가 0이 아니면 y=1+δ/ε, x=1−δ/ε입니다. δ가 작아도 ε보다 크거나 비슷하면 해는 크게 움직입니다.

Aε=(1111+ε),b=(22+ε+δ),x=(1−δ/ε1+δ/ε)(ε≠0)A_\varepsilon=\begin{pmatrix}1&1\\1&1+\varepsilon\end{pmatrix},\quad \mathbf b=\begin{pmatrix}2\\2+\varepsilon+\delta\end{pmatrix},\quad \mathbf x=\begin{pmatrix}1-\delta/\varepsilon\\1+\delta/\varepsilon\end{pmatrix}\quad(\varepsilon\ne0)

실습은 ε=10⁻ᵏ라는 의도한 십진수 모형과 컴퓨터에 실제 저장된 1+ε, 우변을 나누어 표시합니다. 매우 작은 ε는 1에 더할 때 사라질 수 있고, 2+ε는 다른 간격에서 반올림될 수 있습니다. 저장된 행렬의 해가 의도한 모형의 해와 다른 이유를 구별하세요.

12장의 민감도와 알고리즘 안정성이 다시 만납니다. 정확한 정수 실습에서 랭크를 분류하는 기준을 그대로 소수자료의 ‘거의 0’ 판정에 쓰지 않습니다. 수치 랭크에는 척도와 허용기준이 필요하며 17장의 특이값으로 더 엄밀하게 연결합니다. 작은 잔차 하나만으로 원래 해의 작은 오차를 보장할 수도 없습니다.

Subtract x+y=2 from x+(1+ε)y=2+ε+δ. For intended exact ε≠0, the result is εy=ε+δ, hence y=1+δ/ε and x=1−δ/ε. A small perturbation can produce a large change when ε is tiny.

Aε=(1111+ε),b=(22+ε+δ),x=(1−δ/ε1+δ/ε)(ε≠0)A_\varepsilon=\begin{pmatrix}1&1\\1&1+\varepsilon\end{pmatrix},\quad \mathbf b=\begin{pmatrix}2\\2+\varepsilon+\delta\end{pmatrix},\quad \mathbf x=\begin{pmatrix}1-\delta/\varepsilon\\1+\delta/\varepsilon\end{pmatrix}\quad(\varepsilon\ne0)

The lab separates the intended decimal model ε=10⁻ᵏ from stored binary64 coefficients and right sides. A tiny ε can disappear in 1+ε, while the spacing near 2 differs. Explain discrepancies between the intended and stored problems.

Conditioning differs from algorithm stability. Exact integer rank classification is not a tolerance policy for measured floating data. Numerical rank needs scales and thresholds, developed through singular values in Chapter 17. A small residual alone need not imply a small solution error.

기초Foundations

24. 행과 열의 단위가 맞는 계산인가24. Check units across rows and columns

행렬이 재료계수이고 입력이 생산 개수라면 aᵢⱼ의 단위는 ‘재료 i의 양/상품 j 한 개’입니다. xⱼ개를 곱한 각 항은 재료 i의 양이 되므로 i행에서 더할 수 있습니다. 서로 다른 행의 출력 단위까지 반드시 같아야 하는 것은 아닙니다.

bi=∑jaijxj,[aij]=[bi]/[xj]b_i=\sum_j a_{ij}x_j,\qquad [a_{ij}]=[b_i]/[x_j]

행이 펭귄, 열이 날개 mm와 질량 g인 실제 표 X에 가중치 w를 곱할 때도 단위를 점검해야 합니다. 두 숫자를 그대로 더한 값을 물리적 길이라고 부를 수 없습니다. 10 mm와 500 g 같은 명시적 척도로 나누면 무차원 값을 만들 수 있지만, 척도와 가중치는 분석가의 선택입니다.

고정된 기준을 쓰면 같은 단위변환에 맞추어 계수도 바꾸어야 같은 출력을 유지합니다. 길이를 m에서 cm로 바꾸고 예전의 ‘출력/m’ 계수를 그대로 두면 100배 오류가 날 수 있습니다. 차원 검산과 단위 검산은 서로 보완합니다.

If entries are material requirements, aᵢⱼ has unit “material i per item of product j.” Multiplication by xⱼ items gives compatible material quantities within row i. Different output rows may legitimately use different units.

bi=∑jaijxj,[aij]=[bi]/[xj]b_i=\sum_j a_{ij}x_j,\qquad [a_{ij}]=[b_i]/[x_j]

A penguin feature matrix with mm and grams needs the same care. An unscaled weighted sum is not automatically a physical length. Explicit scales such as 10 mm and 500 g can make dimensionless features, but choosing scales and weights remains an analytical assumption.

Convert coefficients consistently when input units change. Replacing metres by centimetres while retaining an output-per-metre coefficient can create a factor-of-100 error. Shape and unit checks complement each other.

기초Foundations

25. 실제 공시 행렬과 가정한 가중치25. An actual filing matrix with assumed weights

실제 Apple 공시에서 FY2023·FY2024를 행으로, iPhone·Mac·iPad·Wearables/Home/Accessories·Services를 이 순서의 열로 둡니다. 모든 칸의 단위는 백만 미국달러입니다. 아래 두 행은 다운로드한 원문에서 확인한 매출입니다.

R=(2005832935728300398458520020118329984266943700596169),R1=(383285391035)R=\begin{pmatrix}200583&29357&28300&39845&85200\\201183&29984&26694&37005&96169\end{pmatrix},\qquad R\mathbf1=\begin{pmatrix}383285\\391035\end{pmatrix}

가중치 w=(1,1,1,1,1)을 넣으면 실제 총매출을 재현합니다. 실습에서 0~2의 무차원 배율을 바꾸어 만든 Rw는 같은 실제 구성항목을 다시 가중한 가정 시나리오입니다. 새로 관측한 매출이나 회사의 전망이 아닙니다. 수치를 곱해 만들 수 있다는 사실과 현실에서 그 변화가 발생한다는 주장은 다릅니다.

예를 들어 공통 가중치에서 Services 배율만 1.1로 바꾸면 FY2024 출력은 391035+0.1·96169=400651.9입니다. 같은 가중치가 FY2023에도 적용됩니다. 증가분은 가정한 9616.9이지 인과적으로 추정한 효과가 아닙니다. FY2023은 53주, FY2024는 52주이므로 두 행의 차이를 주수 조정 없는 동일기간 성장률로 과해석하지 않습니다.

두 회계연도의 합산 지표만으로 다섯 품목의 가중치를 유일하게 추정할 수도 없습니다. R은 2×5여서 랭크가 최대 2이고 적어도 세 영방향이 있습니다. 관측된 구성표를 순방향으로 합산하는 문제와 합계에서 구성을 역복원하는 문제는 다릅니다.

Use actual Apple filing rows FY2023 and FY2024, with columns ordered iPhone, Mac, iPad, Wearables/Home/Accessories and Services. Entries are in millions of US dollars and were checked against the downloaded filing.

R=(2005832935728300398458520020118329984266943700596169),R1=(383285391035)R=\begin{pmatrix}200583&29357&28300&39845&85200\\201183&29984&26694&37005&96169\end{pmatrix},\qquad R\mathbf1=\begin{pmatrix}383285\\391035\end{pmatrix}

Weights all equal to one reproduce reported total sales. Changing dimensionless multipliers from 0 to 2 produces assumed weighted scenarios from the fixed actual components, not newly observed revenue or company forecasts.

Setting only the shared Services multiplier to 1.1 gives a FY2024 output of 400651.9, an assumed increment of 9616.9. The same weights also apply to FY2023. This is not an estimated causal effect. FY2023 had 53 weeks and FY2024 had 52, so unadjusted differences are not equal-duration comparisons.

Two annual outputs cannot uniquely determine five unconstrained weights: R has rank at most two and at least three null directions. Forward aggregation of known components differs from recovering unknown components from totals.

기초Foundations

26. 계산 결과를 검증하는 실무 절차26. A practical verification workflow

먼저 행·열 이름, 순서, 단위, 행렬 크기를 기록합니다. 다음에는 한 칸을 손으로 계산해 코드의 곱셈 방향을 검산합니다. Ax=b를 풀었다면 얻은 해를 원래 A와 b에 대입하고 잔차 b−A x̂를 확인합니다.

r=b−Ax^,x−x^=A−1rif Ax=b and A−1 exists\mathbf r=\mathbf b-A\widehat{\mathbf x},\qquad \mathbf x-\widehat{\mathbf x}=A^{-1}\mathbf r\quad\text{if }A\mathbf x=\mathbf b\text{ and }A^{-1}\text{ exists}

이 식은 작은 잔차가 왜 항상 충분하지 않은지 보여줍니다. 역변환이 오차를 크게 늘이면 해의 차이는 클 수 있습니다. 실제 수치 보고에는 잔차뿐 아니라 입력 척도·조건·허용기준·모형 가정도 필요합니다.

Python의 NumPy 2차원 배열에서 *는 성분별 곱이고 @가 행렬곱입니다. R에서는 *와 %*%를 구별합니다. 1차원 배열은 행/열 구별이 생략될 수 있으므로 교육용 재현에서는 모양을 출력해 확인하세요. NaN·결측을 0으로 몰래 채우거나 특이한 행렬에 역행렬 공식을 강제로 적용하지 않습니다.

Record labels, order, units and shapes. Check one output entry by hand to verify multiplication direction. After solving, substitute into the original equations and inspect r=b−A x̂.

r=b−Ax^,x−x^=A−1rif Ax=b and A−1 exists\mathbf r=\mathbf b-A\widehat{\mathbf x},\qquad \mathbf x-\widehat{\mathbf x}=A^{-1}\mathbf r\quad\text{if }A\mathbf x=\mathbf b\text{ and }A^{-1}\text{ exists}

The identity explains why a small residual can be insufficient: an inverse may amplify it substantially. Report input scales, conditioning, tolerances and model assumptions as well.

For two-dimensional NumPy arrays, * is elementwise while @ is matrix multiplication. In R distinguish * from %*%. Print shapes because one-dimensional arrays may hide orientation. Do not silently replace missing data by zero or force inverse formulas onto singular matrices.

기초Foundations

27. 국가·가구·기업의 행렬 사례27. Country, household and company matrix cases

국가 사례 · 표 전체를 하나의 행렬로 바꾸면 무엇이 편해질까?

앞 장에서는 한 나라를 두 좌표로 표현했습니다. 이제 2024년 16개국을 한꺼번에 처리합니다. 한 행은 한 국가, 첫 열은 1인당 실질 GDP(2015년 불변 USD/명), 둘째 열은 출생 시 기대수명(년)입니다. 국가 순서는 CSV에 고정합니다. 행 번호와 국가명을 함께 보관해야 계산 뒤에도 어느 국가인지 알 수 있습니다.

X=[GAUSLAUSGBRALBRA⋮⋮GZAFLZAF]∈R16×2X=\begin{bmatrix}G_{\mathrm{AUS}}&L_{\mathrm{AUS}}\\G_{\mathrm{BRA}}&L_{\mathrm{BRA}}\\\vdots&\vdots\\G_{\mathrm{ZAF}}&L_{\mathrm{ZAF}}\end{bmatrix}\in\mathbb R^{16\times2}
원자료 행과 두 열: 전체 16개국 중 일부
국가GDP/명 (2015 USD)기대수명 (년)zGDPz수명
호주61,486.3883.05121.3173810.913063
한국37,048.4383.62930.2578821.026076
일본37,976.6484.03630.2981241.105663
미국66,856.5178.89021.5502010.099556
싱가포르68,129.7083.34631.6054000.970762

1. 열마다 다른 단위를 먼저 정리하기

달러와 년을 그냥 더해서 “국가 점수”를 만들지 않습니다. 앞 장과 같은 참조 16개국의 열별 평균 μ와 표준편차 s를 사용합니다. 이 참조 집합 자체를 요약하므로 표준편차는 분모 16인 ddof=0입니다. μ를 2×1 열벡터, 모든 성분이 1인 벡터를 1₁₆이라고 쓰면 1₁₆μᵀ는 같은 평균 행을 16번 반복한 16×2 행렬입니다.

μ=[μGμL],D=[1/sG001/sL],Z=(X−116μT)D\mu=\begin{bmatrix}\mu_G\\\mu_L\end{bmatrix},\quad D=\begin{bmatrix}1/s_G&0\\0&1/s_L\end{bmatrix},\quad Z=(X-\mathbf1_{16}\mu^{\mathsf T})D
(16×2)−(16×1)(1×2)=16×2,(16×2)(2×2)=16×2(16\times2)-(16\times1)(1\times2)=16\times2,\qquad(16\times2)(2\times2)=16\times2
참조 평균과 척도: 표시값은 반올림
열평균 μ표준편차 s
GDP/명31,100.2385721723,065.56843075
기대수명78.381030495.11486042

오른쪽의 대각행렬 D는 첫 열만 1/sG배, 둘째 열만 1/sL배 합니다. 서로 다른 단위를 섞어 더하지 않고 각 열의 단위를 없앤 것입니다. 평균 빼기를 포함한 전체 변환은 아핀 변환입니다. 평균을 고정했을 때도 원점은 대체로 원점으로 가지 않으므로 순수한 선형변환이라고 부르지 않습니다. 평균을 뺀 행렬에 D를 곱하는 단계 자체는 선형입니다.

먼저 생각한 뒤 풀이 보기: 한국의 표준화한 행만 얻고 싶다면 어느 쪽에서 곱할까요?
eKORT(X−116μT)D∈R1×2\mathbf e_{\mathrm{KOR}}^{\mathsf T}(X-\mathbf1_{16}\mu^{\mathsf T})D\in\mathbb R^{1\times2}

한국 위치만 1이고 나머지는 0인 16×1 선택벡터를 사용합니다. 왼쪽에서 곱하면 한 행을 선택합니다. 오른쪽의 D는 두 열을 조절합니다. 반대로 D X는 (2×2)(16×2)이므로 이 크기에서는 정의되지 않습니다. “행렬은 순서가 중요하다”는 말에는 계산 순서뿐 아니라 크기와 자료 의미도 포함됩니다.

먼저 생각한 뒤 풀이 보기: Z만 저장했다면 원래의 GDP와 기대수명을 복원할 수 있나요?
X=ZD−1+116μT,D−1=diag⁡(sG,sL)X=ZD^{-1}+\mathbf1_{16}\mu^{\mathsf T},\qquad D^{-1}=\operatorname{diag}(s_G,s_L)

Z만으로는 원래 평균과 척도를 알 수 없으므로 복원할 수 없습니다. 사용한 참조 평균·척도·행과 열의 순서를 함께 저장했다면, 이 두 척도가 0이 아니므로 위 식으로 복원할 수 있습니다. 화면의 소수 6자리 z를 이용하면 반올림 오차가 남습니다. CSV는 더 많은 계산 자리를 보존합니다. 이 조건부 역변환 가능성은 표준화가 국가의 우열을 판정한다는 뜻이 아닙니다.

출생 시 기대수명은 당시 사망률 패턴이 계속된다는 조건의 집단 지표이며, 특정 개인의 수명 예측이 아닙니다. GDP도 개인의 실제 소득이나 PPP 지표가 아닙니다. 두 변수를 고른 분석 목적과 참조 집합을 바꾸면 해석도 달라집니다.

자료: World Bank · 2024년 두 지표의 고정 사본 · 선택 자료·계산 CSV

기대수명 원지표 · 기대수명 정의 · 열 순서·평균·척도 CSV

가구 사례 · 전력계의 네 숫자로 네 항목을 정리하기

프랑스 Sceaux의 한 가구를 관측한 UCI 공개 전력 자료를 사용합니다. 2006년 12월 17일에서 세 부분 계량값이 모두 양수이고 전체 환산 에너지가 그 합보다 작지 않은 최초 세 기록을 골랐습니다. 10:23·10:24·10:25는 이 선택 규칙의 결과이며 평균적인 생활 패턴을 대표하도록 추출한 표본이 아닙니다. 시각은 원문 그대로이며 시간대나 측정 분의 시작·끝을 추가로 가정하지 않습니다.

Global_active_power는 분평균 유효전력 kW입니다. 부분 계량값 1·2·3은 해당 분의 유효에너지 Wh로, 각각 주방, 세탁실, 전기 온수기·에어컨 계통에 대응합니다. 같은 연립식에 넣기 전에 총전력도 Wh로 환산해야 합니다.

etotal=PkW×1000×160 h=503PkW Whe_{\mathrm{total}}=P_{\mathrm{kW}}\times1000\times\frac1{60}\ \mathrm h=\frac{50}{3}P_{\mathrm{kW}}\ \mathrm{Wh}
실측·단위환산·잔차를 구별한 선택 기록
기록 시각총 분평균 kW (실측)총 Wh (환산)주방 Wh (실측)세탁실 Wh (실측)온수·냉방 Wh (실측)기타 Wh (유도 잔차)
10:23:002.24237.366667171712.366667
10:24:003.71461.900000235177.900000
10:25:003.21253.533333126179.533333

1. 식 네 개를 행렬 한 개로 쓰기

미지수 순서를 x=(주방, 세탁실, 온수·냉방, 기타 잔차)ᵀ로 고정합니다. 첫 행은 네 항목의 합, 나머지 세 행은 각각 부분 계량값과 같다는 식입니다. A의 0과 1은 Wh 항목을 선택하거나 더하는 무차원 계수입니다. 기타 항목은 전체에서 세 부분을 뺀 값으로 정의하며, 네 번째 독립 센서에서 관측한 실측값이 아닙니다.

[1111100001000010]⏟A:4×4[x1x2x3x4]⏟x:4×1=[etotals1s2s3]⏟b:4×1\underbrace{\begin{bmatrix}1&1&1&1\\1&0&0&0\\0&1&0&0\\0&0&1&0\end{bmatrix}}_{A:4\times4}\underbrace{\begin{bmatrix}x_1\\x_2\\x_3\\x_4\end{bmatrix}}_{x:4\times1}=\underbrace{\begin{bmatrix}e_{\mathrm{total}}\\s_1\\s_2\\s_3\end{bmatrix}}_{b:4\times1}

10:23 기록에서는 둘째~넷째 행으로 x₁=1, x₂=7, x₃=17을 얻습니다. 이 값을 첫 행에 넣어 x₄=37.366666…−1−7−17=12.366666… Wh로 계산합니다. 반올림한 37.37로 먼저 계산하면 다른 끝자리가 나옵니다. CSV에는 원자료와 정확한 분수도 넣었습니다.

A−1=[0100001000011−1−1−1],x=A−1bA^{-1}=\begin{bmatrix}0&1&0&0\\0&0&1&0\\0&0&0&1\\1&-1&-1&-1\end{bmatrix},\qquad x=A^{-1}b
먼저 생각한 뒤 풀이 보기: 10:24의 네 항목을 구하고 다시 대입해 볼까요?
x=(2, 35, 17, 7.9)T Wh,2+35+17+7.9=61.9x=(2,\ 35,\ 17,\ 7.9)^{\mathsf T}\ \mathrm{Wh},\qquad 2+35+17+7.9=61.9

원래 총전력 3.714 kW에 1000/60을 곱하면 61.9 Wh입니다. 따라서 A x=b의 네 행이 모두 맞습니다. “식을 푼다”는 것은 한 식만이 아니라 모든 식에 동시에 맞는 값을 찾는 일입니다.

먼저 생각한 뒤 풀이 보기: 총에너지 식을 두 배로 한 식을 추가하면 새 정보가 생길까요?

아닙니다. 2x₁+2x₂+2x₃+2x₄=2e총은 이미 아는 첫 식의 두 배입니다. 식의 개수보다 서로 독립인 식의 수가 중요합니다. 이 A는 독립인 행이 4개여서 유일한 해가 있지만, 총량 한 줄만으로는 네 항목을 각각 알 수 없습니다.

그림의 세 계량 항목은 원자료의 관측값이고 “기타” 막대는 계산한 잔차입니다. 이 잔차만으로 어떤 가전제품을 썼는지 알아낼 수 없습니다. 계측·반올림 차이도 잔차 해석에 남습니다. 한 가구의 선택한 세 분을 전국 가구의 소비나 특정 개인의 생활 습관으로 확대 해석하지 않습니다.

자료: Hebrail·Berard · UCI 가구 전력 자료 (CC BY 4.0) · 선택 자료·계산 CSV

기업 사례 · 매출을 합친 뒤 다시 쪼갤 수 있을까?

Apple의 공식 2024 Form 10-K에서 FY2023·FY2024의 다섯 품목별 순매출을 읽어 2×5 행렬 R을 만듭니다. 행은 회계연도, 열은 iPhone·Mac·iPad·웨어러블/홈/액세서리·서비스 순서입니다. 단위는 모두 백만 명목 USD입니다. 아래 수치는 이익이 아니라 순매출입니다.

행은 연도, 열은 같은 순서의 품목: 원공시 값
회계연도iPhoneMaciPad웨어러블·홈·액세서리서비스
FY2023200,58329,35728,30039,84585,200
FY2024201,18329,98426,69437,00596,169

1. 5개 열을 제품·서비스 2개 열로 집계하기

R=[2005832935728300398458520020118329984266943700596169],B=[1010101001]R=\begin{bmatrix}200583&29357&28300&39845&85200\\201183&29984&26694&37005&96169\end{bmatrix},\qquad B=\begin{bmatrix}1&0\\1&0\\1&0\\1&0\\0&1\end{bmatrix}
R⏟2×5B⏟5×2=[2980858520029486696169]⏟2×2: Products, Services\underbrace{R}_{2\times5}\underbrace{B}_{5\times2}=\underbrace{\begin{bmatrix}298085&85200\\294866&96169\end{bmatrix}}_{2\times2:\ \mathrm{Products,\ Services}}

B의 첫 열은 네 제품 품목을 선택해 더하고, 둘째 열은 서비스를 선택합니다. 예를 들어 FY2024 제품 합계는 201,183+29,984+26,694+37,005=294,866입니다. 이 0·1은 추정한 경제 모형의 계수가 아니라 품목을 묶는 회계 집계 규칙입니다.

원공시를 집계한 매출 (백만 USD)
회계연도제품 4품목 합서비스전체 합
FY2023298,08585,200383,285
FY2024294,86696,169391,035
먼저 생각한 뒤 풀이 보기: 두 집계를 다시 더한 총액과 처음부터 5품목을 더한 총액이 같을까요?
(RB)12=R(B12)=R15=[383285391035](RB)\mathbf1_2=R(B\mathbf1_2)=R\mathbf1_5=\begin{bmatrix}383285\\391035\end{bmatrix}

각 품목이 겹침 없이 한 집계에만 들어가기 때문에 같습니다. 크기가 맞는 행렬곱의 결합법칙입니다. 이것을 R B=B R이라는 교환법칙으로 바꾸면 안 됩니다. 여기서는 B R도 숫자 계산은 가능하지만 5×5입니다. 더욱이 B의 제품·서비스 열을 R의 서로 다른 연도 행과 짝짓기 때문에 이 자료의 매출 집계라는 해석이 없습니다. 크기가 맞는 것은 계산의 조건이며 자료 의미까지 보장하지 않습니다.

2. 집계가 지운 정보: 해가 여러 개인 경우

FY2024의 원래 품목 매출을 5×1 열벡터 r이라고 합시다. 제품·서비스 합계만 아는 상황은 Bᵀr=(294866, 96169)ᵀ입니다. Bᵀ는 2×5이고 독립인 행은 2개이므로 5개 품목을 유일하게 복원할 수 없습니다. 직사각형 행렬에 “행렬식이 0”이라고 말하지 않습니다. 이 경우에는 열을 구분하는 정보가 부족하다고 설명합니다.

BT[1000−1000000]=[00]B^{\mathsf T}\begin{bmatrix}1000\\-1000\\0\\0\\0\end{bmatrix}=\begin{bmatrix}0\\0\end{bmatrix}
정보 손실을 보여주는 가정 대안: 실제 매출과 혼동하지 않기
구분iPhoneMaciPad웨어러블 등서비스
실제 FY2024 공시201,18329,98426,69437,00596,169
가정한 수학적 대안202,18328,98426,69437,00596,169

가정 대안은 iPhone에 1,000을 더하고 Mac에서 1,000을 뺀 것입니다. 두 벡터 모두 제품 합계 294,866과 서비스 96,169를 줍니다. 따라서 합계만으로 원래 값을 정할 수 없습니다. 이 대안은 보고된 매출이 아닙니다. 원문 보고서는 실제 다섯 값을 모두 공개하며, 여기서는 일부러 집계만 남기는 실험을 했습니다.

3. 필요한 정보가 충분하면 유일해, 서로 모순되면 해 없음

먼저 생각한 뒤 풀이 보기: 미지수를 제품 p와 서비스 s 두 개로 줄이고 총액과 서비스 값을 알면?
[1101][ps]=[39103596169],s=96169,p=294866\begin{bmatrix}1&1\\0&1\end{bmatrix}\begin{bmatrix}p\\s\end{bmatrix}=\begin{bmatrix}391035\\96169\end{bmatrix},\qquad s=96169,\quad p=294866

두 독립식으로 두 미지수를 유일하게 구합니다. 반대로 여기에 총액을 391,000이라고 쓰는 가정 입력 오류를 동시에 넣으면 p+s가 391,035이면서 391,000이어야 하므로 정확한 해가 없습니다. 이것은 모순의 수학 예이며 실제 공시에 오류가 있다는 주장이 아닙니다.

회계기간은 FY2023 53주, FY2024 52주입니다. 집계 행렬을 정확히 곱했다는 사실만으로 기간을 보정한 성장, 이익률, 인과효과나 경영 성과를 판단할 수 없습니다. 앞으로의 회귀·최소제곱에서는 정확히 맞는 해가 없는 자료를 어떻게 근사할지 별도로 배웁니다.

자료: SEC EDGAR · Apple 2024 Form 10-K, Products and Services Performance · 선택 자료·계산 CSV

실제 집계와 명시적으로 표시한 가정 대안 CSV

원자료·행과 열 순서·가공 과정·정확 계산·SHA-256 기록 · 표준화, 실측과 잔차의 회계식, 집계의 정보 손실을 서로 구분합니다.

Country case · What becomes easier when a whole table is a matrix?

The previous chapter represented one country with two coordinates. Now process 16 countries in 2024 together. Each row is a country; column one is real GDP per capita in constant 2015 USD/person and column two is life expectancy at birth in years. Preserve country labels and the fixed CSV row order so computed rows remain identifiable.

X=[GAUSLAUSGBRALBRA⋮⋮GZAFLZAF]∈R16×2X=\begin{bmatrix}G_{\mathrm{AUS}}&L_{\mathrm{AUS}}\\G_{\mathrm{BRA}}&L_{\mathrm{BRA}}\\\vdots&\vdots\\G_{\mathrm{ZAF}}&L_{\mathrm{ZAF}}\end{bmatrix}\in\mathbb R^{16\times2}
Selected rows from the actual 16-country matrix
CountryGDP/person (2015 USD)Life expectancy (years)zGDPzLife
Australia61,486.3883.05121.3173810.913063
Korea, Rep.37,048.4383.62930.2578821.026076
Japan37,976.6484.03630.2981241.105663
United States66,856.5178.89021.5502010.099556
Singapore68,129.7083.34631.6054000.970762

1. Respect the different column units

Do not add dollars to years to create an unexplained country score. Use the same 16-country reference means and population standard deviations as the previous chapter, with denominator 16 (ddof=0). Let μ be a column with two entries and 1₁₆ a column of sixteen ones. The product 1₁₆μᵀ repeats the reference mean row sixteen times.

μ=[μGμL],D=[1/sG001/sL],Z=(X−116μT)D\mu=\begin{bmatrix}\mu_G\\\mu_L\end{bmatrix},\quad D=\begin{bmatrix}1/s_G&0\\0&1/s_L\end{bmatrix},\quad Z=(X-\mathbf1_{16}\mu^{\mathsf T})D
(16×2)−(16×1)(1×2)=16×2,(16×2)(2×2)=16×2(16\times2)-(16\times1)(1\times2)=16\times2,\qquad(16\times2)(2\times2)=16\times2
Reference parameters: displayed values are rounded
ColumnMean μPopulation SD s
GDP/person31,100.2385721723,065.56843075
Life expectancy78.381030495.11486042

Right multiplication by the diagonal matrix D scales the GDP column by 1/sG and the life-expectancy column by 1/sL. It removes each unit separately rather than adding unlike units. The entire transformation including centering is affine. With fixed reference means, it generally does not map zero to zero. Multiplying the already centered matrix by D is a linear step.

Think first, then reveal: Which side selects only Korea’s standardized row?
eKORT(X−116μT)D∈R1×2\mathbf e_{\mathrm{KOR}}^{\mathsf T}(X-\mathbf1_{16}\mu^{\mathsf T})D\in\mathbb R^{1\times2}

Use a 16×1 selection vector with one at Korea’s position and zeros elsewhere. Left multiplication selects a row; right multiplication by D scales columns. The reversed product D X has incompatible inner dimensions, (2×2)(16×2), and is undefined here. Order includes shape and meaning, not merely arithmetic sequence.

Think first, then reveal: Can the original GDP and life-expectancy matrix be recovered if only Z is stored?
X=ZD−1+116μT,D−1=diag⁡(sG,sL)X=ZD^{-1}+\mathbf1_{16}\mu^{\mathsf T},\qquad D^{-1}=\operatorname{diag}(s_G,s_L)

Not from Z alone: it does not reveal the original means and scales. If those reference parameters and the row/column order are also retained, the formula recovers X because both scales are nonzero. Using z-values rounded to six decimal places leaves rounding error; the CSV keeps more calculation digits. This conditional invertibility does not turn standardization into a judgment of countries’ merit.

Life expectancy is a population indicator conditional on prevailing mortality patterns continuing, not a prediction of one person’s lifespan. GDP is not personal income or a PPP measure. Variable and reference-set choices remain substantive choices.

Source: World Bank · fixed 2024 two-indicator snapshot · Selected data/calculations CSV

Life-expectancy indicator · Indicator definition · Column order, mean and scale CSV

Household case · Organizing four components with meter readings

Use the public UCI record of one household in Sceaux, France. From 17 December 2006, select the earliest three records with all three submeters positive and converted total energy at least their sum. This deterministic rule yields 10:23, 10:24 and 10:25; it is not a representative sample of daily behavior. Preserve timestamps as reported without inventing a timezone or minute-boundary alignment.

Global_active_power is minute-averaged active power in kW. Submeters 1, 2 and 3 record active energy in Wh for the kitchen, laundry room, and electric water-heater/air-conditioner circuit. Convert total power to energy in Wh before combining the readings.

etotal=PkW×1000×160 h=503PkW Whe_{\mathrm{total}}=P_{\mathrm{kW}}\times1000\times\frac1{60}\ \mathrm h=\frac{50}{3}P_{\mathrm{kW}}\ \mathrm{Wh}
Reported observations, conversion and derived residual
Recorded timeMean kW (reported)Total Wh (converted)Kitchen Wh (reported)Laundry Wh (reported)Heater/AC Wh (reported)Other Wh (derived residual)
10:23:002.24237.366667171712.366667
10:24:003.71461.900000235177.900000
10:25:003.21253.533333126179.533333

1. Four equations in one matrix

Fix the unknown order as x=(kitchen, laundry, heater/AC, other residual)ᵀ. Row one adds all components; the remaining rows select the three submeters. Matrix entries zero and one are dimensionless selectors. Define the other component as total minus the three submeters: it is not an independent observation from a fourth submeter.

[1111100001000010]⏟A:4×4[x1x2x3x4]⏟x:4×1=[etotals1s2s3]⏟b:4×1\underbrace{\begin{bmatrix}1&1&1&1\\1&0&0&0\\0&1&0&0\\0&0&1&0\end{bmatrix}}_{A:4\times4}\underbrace{\begin{bmatrix}x_1\\x_2\\x_3\\x_4\end{bmatrix}}_{x:4\times1}=\underbrace{\begin{bmatrix}e_{\mathrm{total}}\\s_1\\s_2\\s_3\end{bmatrix}}_{b:4\times1}

At 10:23, rows two through four give x₁=1, x₂=7 and x₃=17. Substitution into row one gives x₄=37.366666…−1−7−17=12.366666… Wh. Rounding total energy to 37.37 before subtraction changes the final digits. The CSV preserves source values and exact fractions.

A−1=[0100001000011−1−1−1],x=A−1bA^{-1}=\begin{bmatrix}0&1&0&0\\0&0&1&0\\0&0&0&1\\1&-1&-1&-1\end{bmatrix},\qquad x=A^{-1}b
Think first, then reveal: Solve the 10:24 record and substitute the answer back.
x=(2, 35, 17, 7.9)T Wh,2+35+17+7.9=61.9x=(2,\ 35,\ 17,\ 7.9)^{\mathsf T}\ \mathrm{Wh},\qquad 2+35+17+7.9=61.9

The reported 3.714 kW times 1000/60 yields 61.9 Wh, so all four rows of A x=b agree. Solving a system means satisfying all equations simultaneously.

Think first, then reveal: Does adding twice the total-energy equation provide new information?

No. The equation 2x₁+2x₂+2x₃+2x₄=2eTotal is a multiple of the first row. Independent information matters more than the number of written equations. This A has four independent rows and a unique solution; one total equation alone cannot identify four components.

The chart’s three submeter series are reported observations; the “other” series is a derived residual. It cannot identify particular appliances. Measurement and rounding differences also remain part of the interpretation. Three selected minutes from one household do not establish national consumption or a particular person’s habits.

Source: Hebrail and Berard · UCI household power dataset (CC BY 4.0) · Selected data/calculations CSV

Company case · Can aggregated sales be split back into their original categories?

Read Apple’s five category net-sales figures for FY2023 and FY2024 from its official 2024 Form 10-K. Build R with two fiscal-year rows and five columns, ordered iPhone, Mac, iPad, Wearables/Home/Accessories, Services. All entries are million nominal USD of net sales, not profits.

Fiscal-year rows and common category columns: actual filing
Fiscal yeariPhoneMaciPadWearables/Home/AccessoriesServices
FY2023200,58329,35728,30039,84585,200
FY2024201,18329,98426,69437,00596,169

1. Aggregate five categories into products and services

R=[2005832935728300398458520020118329984266943700596169],B=[1010101001]R=\begin{bmatrix}200583&29357&28300&39845&85200\\201183&29984&26694&37005&96169\end{bmatrix},\qquad B=\begin{bmatrix}1&0\\1&0\\1&0\\1&0\\0&1\end{bmatrix}
R⏟2×5B⏟5×2=[2980858520029486696169]⏟2×2: Products, Services\underbrace{R}_{2\times5}\underbrace{B}_{5\times2}=\underbrace{\begin{bmatrix}298085&85200\\294866&96169\end{bmatrix}}_{2\times2:\ \mathrm{Products,\ Services}}

B’s first column adds the four product categories, while the second selects services. For FY2024, products are 201,183+29,984+26,694+37,005=294,866. The zeros and ones are a grouping convention, not estimated coefficients of a causal economic model.

Aggregates of reported category sales (million USD)
Fiscal yearFour product categoriesServicesAll categories
FY2023298,08585,200383,285
FY2024294,86696,169391,035
Think first, then reveal: Does summing the two aggregates equal summing all five original categories?
(RB)12=R(B12)=R15=[383285391035](RB)\mathbf1_2=R(B\mathbf1_2)=R\mathbf1_5=\begin{bmatrix}383285\\391035\end{bmatrix}

Yes: each category enters exactly one group. This illustrates associativity of compatible matrix products. It does not say R B=B R. Here B R is numerically defined and is 5×5, but pairs B’s product/service columns with R’s different-year rows. It has no sales-grouping interpretation for these labels. Matching dimensions permit the calculation without guaranteeing substantive meaning.

2. Lost information: more than one solution

Let r be the FY2024 category vector with five rows. Knowing only the product and service totals means Bᵀr=(294866, 96169)ᵀ. The 2×5 matrix Bᵀ has two independent rows, so these two totals cannot uniquely identify five entries. Do not describe this rectangular matrix as having determinant zero: the issue is insufficient information to distinguish its input coordinates.

BT[1000−1000000]=[00]B^{\mathsf T}\begin{bmatrix}1000\\-1000\\0\\0\\0\end{bmatrix}=\begin{bmatrix}0\\0\end{bmatrix}
Labeled hypothetical alternative: not reported sales
StatusiPhoneMaciPadWearables etc.Services
Actual FY2024 filing201,18329,98426,69437,00596,169
Hypothetical mathematical alternative202,18328,98426,69437,00596,169

The alternative adds 1,000 to iPhone and subtracts 1,000 from Mac. Both vectors yield products 294,866 and services 96,169. The aggregates cannot reveal which input vector was used. The alternative is not reported sales. The source filing discloses all five actual entries; we deliberately discard detail to study aggregation.

3. Enough independent information gives uniqueness; contradictions give no solution

Think first, then reveal: What if only products p and services s are unknown, while total and services are known?
[1101][ps]=[39103596169],s=96169,p=294866\begin{bmatrix}1&1\\0&1\end{bmatrix}\begin{bmatrix}p\\s\end{bmatrix}=\begin{bmatrix}391035\\96169\end{bmatrix},\qquad s=96169,\quad p=294866

Two independent equations determine two unknowns uniquely. Hypothetically adding a mistyped total of 391,000 would require p+s to equal both 391,035 and 391,000, leaving no exact solution. This is an invented inconsistency exercise, not a claim of an error in the actual filing.

FY2023 contains 53 weeks and FY2024 52 weeks. Correct aggregation alone does not establish growth adjusted for period length, margins, causal effects or management performance. Later chapters treat least squares when observed equations do not have an exact common solution.

Source: SEC EDGAR · Apple 2024 Form 10-K, Products and Services Performance · Selected data/calculations CSV

Actual aggregates and explicitly hypothetical alternative CSV

Sources, row/column order, transformations, exact calculations and SHA-256 record · Distinguish standardization, measured/derived bookkeeping components and information loss in aggregation.

기초Foundations

28. 재현 과제와 공식 참고 읽기28. Reproduction tasks and official readings

한 가지 곱을 행별 내적·열의 선형결합·연속 변환이라는 세 관점으로 설명해 보세요. 연립방정식은 정확한 정수 예에서 유일해·무수한 해·모순을 모두 만들고, 랭크와 자유변수로 결과를 설명하세요. 소거 과정과 원래 식에 대한 대입 검산을 함께 남깁니다.

실제 공시의 다섯 구성항목으로 두 연도의 총계를 재현한 뒤, 한 가중치를 바꾼 시나리오에 ‘가정’이라고 표시하세요. 집계로 잃은 정보를 총계만으로 복원할 수 있는지도 차원으로 점검합니다. 자료를 더 많이 복사한 것과 독립적인 정보를 얻은 것을 구별하세요.

본문과 예제는 이 학습 경로에 맞추어 새로 서술했습니다. 다음 장에서 부분공간을 정리하고 관측이 정확히 맞지 않을 때 정사영으로 어떤 문제를 풀 수 있는지 보겠습니다.

Python · R · 정수 연립방정식 검산 CSV (가정한 계산 예제)

Explain a product using row dot products, column combinations and chained transformations. Build exact integer systems with one, infinitely many and no solutions, then explain rank and free variables. Retain elimination steps and substitution checks.

Reproduce both filing totals from five components. Label a changed multiplier as an assumption. Use dimensions to ask whether lost component information can be recovered from totals alone. Copying more records is not necessarily adding independent information.

The exposition and exercises follow this book's learning route. Next, subspaces and projections will clarify what can be solved when observations do not fit exact equations.

Python · R · Integer-system verification CSV (synthetic algebra examples)

Python·R 코드 실행 방법Run the Python/R companions

자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.Extract the bundle, keeping the scripts beside the data folder. In a terminal, enter the script folder and run the commands below. Beginners can complete hand calculations and browser labs first, returning to code after studying introductory data science.

python math14-reproduce.py
Rscript --vanilla --encoding=UTF-8 math14-reproduce.R

결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. CSV 원자료는 덮어쓰지 않습니다.Result files are saved in the result directory specified by each script; the input CSVs are not overwritten.

영상·학자·함께 읽기Videos, thinkers and guided reading

본문의 질문을 넓히는 선택 학습입니다. 영상을 보기 전 질문을 먼저 읽고, 자신의 답을 쓴 뒤 해설과 비교하세요. 자료의 언어·선수 지식은 각 항목에 표시했습니다.Optional extensions to the chapter. Read the question first, write your answer, then compare with the explanation. Language and prerequisites are indicated below.

행렬곱을 변환의 합성으로 보기Matrix multiplication as composition

3Blue1Brown · Grant Sanderson

공식 영어 영상은 행렬곱의 순서를 그림으로 설명합니다. 이 장의 열벡터 A x와 연도별 행을 가진 R B의 배치를 비교하세요. 중심화를 포함한 국가 표준화 전체는 아핀 변환이라는 차이도 기억합니다.The official English video visualizes multiplication order. Compare the column-vector system A x with year-row sales matrix R B. Remember that country standardization including centering is affine.

교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.

보고 읽은 뒤 답하기Respond after watching/reading 행렬을 연달아 곱할 때 순서를 마음대로 바꿔도 될까요?May we freely reverse the order of successive matrix multiplications?

생각을 점검하는 해설Check your reasoning

아닙니다. 안쪽 크기가 맞아야 하고, 둘 다 정의되어도 결과가 다를 수 있습니다. 반면 크기가 맞으면 (R B)1=R(B1)의 결합법칙으로 괄호 위치를 바꿀 수 있습니다.No. Inner dimensions must match, and even compatible products can differ in reverse order. Associativity does permit regrouping (R B)1 as R(B1).

아서 케일리 · 행렬을 계산 규칙이 있는 대상으로Arthur Cayley: matrices as objects with an algebra

University of St Andrews · MacTutor

대학 수학사 아카이브는 케일리(1821–1895)의 행렬 대수 연구를 소개합니다. 행렬은 숫자를 담은 표이면서 덧셈·곱셈·역변환을 따지는 대상이라는 질문으로 연결합니다.The university archive introduces Cayley (1821–1895) and his work on matrix algebra. Connect a numerical table with operations, products and invertibility.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 모든 행렬에 역행렬이 있을까요?Does every matrix have an inverse?

생각을 점검하는 해설Check your reasoning

아닙니다. 가구 A는 정사각이고 독립인 행이 4개여서 역행렬이 있지만, 5품목을 2집계로 줄이는 Bᵀ는 원래 정보를 유일하게 복원하지 못합니다.No. The household square matrix A has four independent rows and an inverse. The map Bᵀ reducing five categories to two totals loses information and cannot uniquely recover inputs.

행렬곱: 크기·행과 열·결합 순서Matrix products: dimensions, rows, columns and composition

Georgia Tech · Interactive Linear Algebra §3.4

§3.4.2의 행·열 곱 규칙과 §3.4.3의 변환 합성을 읽습니다. 품목 매출 2×5에 집계 규칙 5×2를 곱하는 과정을 직접 적어 보세요.Read the row-column rule in §3.4.2 and composition in §3.4.3. Work through the 2×5 sales matrix multiplied by the 5×2 grouping matrix.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading R B의 두 번째 행·첫 번째 열은 무엇을 계산할까요?What does row two, column one of R B calculate?

생각을 점검하는 해설Check your reasoning

FY2024 행과 B의 제품 선택 열을 곱해 201183+29984+26694+37005=294866백만 USD를 얻습니다. 같은 단위의 제품 순매출을 합친 값입니다.The FY2024 row dotted with B’s product-selection column gives 201183+29984+26694+37005=294866 million USD, the sum of product net sales.

연립방정식: 모든 식을 동시에 만족한다는 뜻Systems: satisfying all equations simultaneously

Georgia Tech · Interactive Linear Algebra §1.1

해와 해집합, 일관된 식과 모순된 식의 정의를 읽습니다. 이 장의 유일해·여러 해·해 없음 세 경우를 실제 자료와 가정 예로 각각 구분해 보세요.Read the definitions of solution, solution set, consistency and inconsistency. Match unique, multiple and absent solutions to this chapter’s observations and labeled hypothetical examples.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 공시 총액 391035와 가정 입력 총액 391000을 동시에 요구하면 왜 해가 없나요?Why is there no solution if the reported total 391035 and hypothetical mistyped total 391000 are both required?

생각을 점검하는 해설Check your reasoning

같은 합 p+s가 서로 다른 두 값과 동시에 같을 수 없기 때문입니다. 가정 오류를 넣은 연습이며 실제 공시가 모순된다는 뜻이 아닙니다.The same sum p+s cannot equal two different numbers simultaneously. The contradiction is deliberately introduced for the exercise, not present in the filing.

연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof

먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.

1. 칸의 주소와 크기Addresses and shape

A=[[1,0,2],[−1,3,1]]의 크기, a₂₁, a₁₃, 둘째 열을 적으세요.

For A=[[1,0,2],[−1,3,1]], give its shape, a₂₁, a₁₃ and second column.

풀이와 확인할 이유Solution and explanation

2행 3열이므로 2×3입니다. a₂₁=−1, a₁₃=2이고 둘째 열은 (0,3)ᵀ입니다. 첨자 첫째가 행, 둘째가 열입니다. 열벡터는 두 행의 성분을 가지므로 길이 2입니다.

The shape is 2×3; the entries are −1 and 2. The second column is (0,3)ᵀ, with one component for each row.

2. 덧셈의 대응 구조Matching structures for addition

2×3 행렬과 3×2 행렬은 칸 수가 같으므로 더할 수 있다는 주장에 답하세요.

May a 2×3 matrix and a 3×2 matrix be added because their entry counts match?

풀이와 확인할 이유Solution and explanation

칸 수만 같고 행·열 대응은 다릅니다. 행렬 덧셈에는 같은 크기가 필요합니다. 응용에서는 같은 크기여도 행·열의 이름과 순서가 같은지도 확인해야 합니다.

No. Their shapes differ. Addition requires matching shapes; applications additionally require corresponding labels and order.

3. 상수배는 모든 칸에Scaling changes every entry

A=[[1,2],[0,1]]에서 2A와 A+I₂를 구하세요.

Find 2A and A+I₂ for A=[[1,2],[0,1]].

풀이와 확인할 이유Solution and explanation

2A=[[2,4],[0,2]]이고 A+I₂=[[2,2],[0,2]]입니다. 2를 곱하는 것은 모든 칸의 배율을 바꾸고, 항등행렬을 더하는 것은 대각선에 1을 더합니다. 두 연산을 혼동하지 않습니다.

The results are [[2,4],[0,2]] and [[2,2],[0,2]]. Scaling all entries differs from adding one on the diagonal.

4. 행별 내적Row dot products

A=[[2,1],[1,−1]], x=(3,1)에서 Ax를 구하고 각 출력의 계산을 쓰세요.

Compute Ax for A=[[2,1],[1,−1]], x=(3,1), showing both outputs.

풀이와 확인할 이유Solution and explanation

첫 행은 2·3+1·1=7, 둘째 행은 1·3−1·1=2입니다. 따라서 Ax=(7,2)ᵀ입니다. 결과는 원래 입력과 같은 두 성분이지만 이는 이 행렬이 2×2이기 때문이며 일반 행렬에서는 출력 길이가 달라질 수 있습니다.

The row products are 7 and 2, so Ax=(7,2)ᵀ. Equal input and output lengths here follow from the square shape, not from a universal rule.

5. 직사각형 입력의 차원Dimensions of a rectangular map

A가 2×3일 때 Ax의 입력과 출력 길이는 각각 얼마인가요? 길이 2인 입력을 넣어도 될까요?

For A of shape 2×3, state input and output lengths. Is a two-component input valid?

풀이와 확인할 이유Solution and explanation

입력 길이는 3, 출력 길이는 2입니다. 행마다 세 입력을 대응시켜 더하므로 길이 2 입력은 규칙에 맞지 않습니다. 값을 억지로 0으로 채우면 원래 문제에 없던 가정을 추가한 것입니다.

The input needs three components and the output has two. A two-component input is incompatible; silently padding it adds an unstated assumption.

6. 열의 조합으로 같은 답 구하기The same answer through columns

앞의 A=[[2,1],[1,−1]]에서 열벡터 a₁,a₂를 써 Ax를 다시 계산하세요.

Recompute the previous Ax as a combination of its columns.

풀이와 확인할 이유Solution and explanation

a₁=(2,1), a₂=(1,−1)이므로 3a₁+a₂=(6,3)+(1,−1)=(7,2)입니다. 행별 내적과 다른 답을 내는 새 연산이 아니라 같은 곱의 다른 해석입니다.

With a₁=(2,1), a₂=(1,−1), the combination 3a₁+a₂=(7,2). It is the same product viewed through columns.

7. 기준 입력이 열을 고른다Standard inputs select columns

A=[[2,1],[1,−1]]에서 Ae₁와 Ae₂를 구하세요. 왜 이 두 출력으로 A를 복원할 수 있나요?

For A=[[2,1],[1,−1]], find Ae₁ and Ae₂, and explain why these outputs determine A.

풀이와 확인할 이유Solution and explanation

각각 첫 열 (2,1)과 둘째 열 (1,−1)입니다. 선형변환은 x=x₁e₁+x₂e₂에 대해 Ax=x₁Ae₁+x₂Ae₂이므로 두 기준방향의 출력이 모든 입력에 대한 계산을 정합니다.

They are (2,1) and (1,−1). Linearity gives Ax=x₁Ae₁+x₂Ae₂, so knowing all standard-direction outputs determines the map.

8. 선형과 아핀Linear versus affine

T(x,y)=(2x,y)와 S(x,y)=(2x+1,y)를 비교하세요. 둘 다 선형인가요?

Compare T(x,y)=(2x,y) and S(x,y)=(2x+1,y). Are both linear?

풀이와 확인할 이유Solution and explanation

T는 고정 행렬 diag(2,1)의 곱이므로 선형입니다. S는 S(0,0)=(1,0)이라 선형성의 필요조건을 어깁니다. S는 고정 이동을 포함한 아핀 변환입니다. 그래프가 직선 모양일 수 있다는 것과 선형대수의 정의는 다릅니다.

T is multiplication by diag(2,1), hence linear. S moves zero to (1,0), so it is affine but not linear.

9. 지워진 좌표를 복원할 수 있을까Can deleted coordinates be recovered?

P=[[1,0],[0,0]]이 (1,2)와 (1,−7)에 주는 출력을 구하세요. P에 역행렬이 있나요?

Apply P=[[1,0],[0,0]] to (1,2) and (1,−7). Is P invertible?

풀이와 확인할 이유Solution and explanation

두 출력은 모두 (1,0)입니다. 서로 다른 입력을 하나로 합쳤으므로 출력에서 원래 입력을 유일하게 복원할 수 없습니다. 또한 P(0,1)=0인 비영방향이 있어 양쪽 역행렬이 존재할 수 없습니다.

Both become (1,0). The nonzero null vector (0,1) shows lost information, ruling out a two-sided inverse.

10. 전치와 역행렬은 다르다Transpose is not inverse

A=[[2,0],[0,1]]의 전치와 역행렬을 구해 비교하세요.

Compare the transpose and inverse of A=[[2,0],[0,1]].

풀이와 확인할 이유Solution and explanation

Aᵀ=A이고 A⁻¹=[[1/2,0],[0,1]]입니다. 전치는 칸을 바꾸고 역행렬은 변환을 되돌립니다. 특수한 행렬에서 둘이 같을 수 있어도 일반적인 동일 연산이 아닙니다.

The transpose equals A, while the inverse is diag(1/2,1). Rearranging entries and undoing a map are different operations.

11. 2×2 행렬곱A 2×2 product

A=[[1,2],[0,1]], B=[[2,0],[0,1]]에서 AB의 네 칸을 구하세요.

Compute every entry of AB for A=[[1,2],[0,1]], B=[[2,0],[0,1]].

풀이와 확인할 이유Solution and explanation

칸별로 1·2+2·0=2, 1·0+2·1=2, 0·2+1·0=0, 0·0+1·1=1입니다. 따라서 [[2,2],[0,1]]입니다. A와 B의 같은 주소끼리 곱하면 [[2,0],[0,1]]이 되어 다른 연산입니다.

The four row-column sums give [[2,2],[0,1]]. Entrywise multiplication would give [[2,0],[0,1]], a different operation.

12. 직사각형 곱A rectangular product

A=[[1,0,2],[−1,3,1]], B=[[2,1],[1,0],[0,−2]]에서 AB를 구하세요.

Compute AB for A=[[1,0,2],[−1,3,1]], B=[[2,1],[1,0],[0,−2]].

풀이와 확인할 이유Solution and explanation

2×3과 3×2이므로 결과는 2×2입니다. 첫 행은 (2,−3), 둘째는 (1,−3)입니다. 예를 들어 둘째 행 첫 칸은 −1·2+3·1+1·0=1입니다. 반대 곱 BA는 여기서는 3×3으로 정의되지만 같은 크기나 값이 아닙니다.

The result is [[2,−3],[1,−3]], of shape 2×2. The reverse product happens to be defined here but has shape 3×3, so equality is not even a shape-compatible claim.

13. 합성의 순서Composition order

11번의 A,B와 x=(1,1)에서 ABx와 BAx를 중간 단계까지 구하세요.

Use the matrices from Exercise 11 and x=(1,1) to find ABx and BAx, including intermediate steps.

풀이와 확인할 이유Solution and explanation

Bx=(2,1), A(Bx)=(4,1)입니다. 반대로 Ax=(3,1), B(Ax)=(6,1)입니다. 먼저 적용하는 행렬은 입력 가까이 있는 오른쪽입니다. 결과가 달라 교환법칙의 반례가 됩니다.

Bx=(2,1), followed by A gives (4,1). Ax=(3,1), followed by B gives (6,1). The rightmost map acts first, and the results show noncommutativity.

14. 항등행렬의 두 크기Two identity sizes

A가 2×3일 때 I₂A와 AI₃는 무엇인가요? AI₂는 정의되나요?

For A of shape 2×3, evaluate I₂A and AI₃. Is AI₂ defined?

풀이와 확인할 이유Solution and explanation

앞의 두 곱은 모두 A입니다. AI₂는 2×3과 2×2의 안쪽 크기 3,2가 달라 정의되지 않습니다. 항등행렬이라고 해서 크기 점검을 생략할 수 없습니다.

Both valid products equal A. AI₂ is undefined because the inner dimensions 3 and 2 differ.

15. 행렬 소거법칙의 반례A cancellation counterexample

A=diag(1,0), B=I₂, C=diag(1,7)에서 AB와 AC를 비교하세요.

Compare AB and AC for A=diag(1,0), B=I₂, C=diag(1,7).

풀이와 확인할 이유Solution and explanation

두 곱은 모두 diag(1,0)으로 같지만 B≠C입니다. A가 둘째 성분의 차이를 지웠습니다. AB=AC라는 이유만으로 A를 지울 수 없으며, 왼쪽 역행렬 같은 추가 조건이 필요합니다.

Both products equal diag(1,0), yet B≠C. The map deletes their difference, so cancellation needs an additional condition.

16. 0이 아닌 행렬의 0 곱A zero product of nonzero matrices

A=diag(1,0), B=diag(0,1)에서 AB를 구하세요.

Find AB for A=diag(1,0), B=diag(0,1).

풀이와 확인할 이유Solution and explanation

곱은 0행렬입니다. 두 행렬은 각각 0이 아니지만 B가 출력하는 세로방향을 A가 모두 지우기 때문입니다. 실수의 ab=0이면 한쪽이 0이라는 성질을 일반 행렬에 그대로 적용하면 안 됩니다.

The product is zero even though neither factor is zero. B outputs the direction that A deletes. Scalar zero-product reasoning does not transfer unchanged.

17. 되돌릴 수 없는 행 연산An irreversible row operation

방정식 한 행을 0배 한 뒤 나머지 식만 풀어도 원래 해집합이 유지될까요?

Does multiplying one equation by zero preserve the original solution set?

풀이와 확인할 이유Solution and explanation

보장되지 않습니다. 원래 제한을 잃었기 때문입니다. x=1, y=2에서 첫 식을 0배 하면 x가 자유로워집니다. 기본 행 연산의 배율은 0이 아니어야 되돌릴 수 있습니다.

Not in general. For x=1, y=2 it discards the restriction on x. Nonzero scaling is required for a reversible elementary row operation.

18. 소거와 대입 검산Eliminate and substitute

2x+y=7, x−y=2를 소거로 풀고 원래 두 식에 대입하세요.

Solve 2x+y=7, x−y=2 and verify in the original equations.

풀이와 확인할 이유Solution and explanation

첫 식을 두 식의 합으로 바꾸면 3x=9입니다. 따라서 x=3이고 둘째에서 y=1입니다. 원래 식은 6+1=7, 3−1=2로 맞습니다. 두 미지수 열 모두 피벗을 가지므로 다른 실수해는 없습니다.

Add the equations to obtain x=3, then y=1. Substitution gives 7 and 2. Pivots in both variable columns establish uniqueness.

19. 기약 계단형에서 해 읽기Read a parametric solution

x₁+2x₃=3, x₂−x₃=4에서 전체 해를 한 매개변수로 쓰세요.

Write all solutions of x₁+2x₃=3, x₂−x₃=4.

풀이와 확인할 이유Solution and explanation

x₃=t를 정하면 x₁=3−2t, x₂=4+t입니다. 따라서 (x₁,x₂,x₃)=(3,4,0)+t(−2,1,1)입니다. t=0만 선택하고 유일해라고 하면 자유변수를 놓친 것입니다.

The solution is (3,4,0)+t(−2,1,1), with arbitrary real t. Choosing t=0 gives only one solution, not uniqueness.

20. 중복식과 무수한 해Redundancy and infinitely many solutions

x+2y=3, 2x+4y=6의 해를 구하고 두 해를 예로 드세요.

Solve x+2y=3, 2x+4y=6 and give two examples.

풀이와 확인할 이유Solution and explanation

전체는 (3−2t,t)입니다. t=0이면 (3,0), t=1이면 (1,1)입니다. 둘째 식은 추가 제한이 아니므로 두 식이 있다는 개수만으로 유일해라고 할 수 없습니다.

All solutions are (3−2t,t), including (3,0) and (1,1). The second equation adds no independent restriction.

21. 모순을 찾아내기Expose a contradiction

x+2y=3, 2x+4y=7에 해가 없는 이유를 소거로 보이세요.

Use elimination to show that x+2y=3, 2x+4y=7 has no solution.

풀이와 확인할 이유Solution and explanation

둘째 식에서 첫째의 2배를 빼면 0=1입니다. 이 행은 어떤 입력도 만족하지 못합니다. 해를 임의로 반올림해 만드는 대신 정확한 식에는 해가 없다고 기록해야 합니다.

Subtracting twice the first equation gives 0=1. No input can satisfy that exact contradiction.

22. 전체 평면과 빈집합Whole plane versus empty set

두 행이 모두 0=0인 경우와, 한 행이 0=1인 경우의 해집합을 비교하세요.

Compare two equations 0=0 with a system containing 0=1.

풀이와 확인할 이유Solution and explanation

두 미지수에서 전자는 모든 (x,y)가 해라 전체 평면입니다. 후자는 다른 식이 무엇이든 모순이 있으므로 빈집합입니다. 직선 그림만으로 모든 퇴화 경우를 표현할 수는 없습니다.

The first allows the whole plane of two unknowns. The second allows no solution regardless of the remaining row. Degenerate equations are not proper lines.

23. 랭크와 자유변수Rank and free variables

미지수가 5개이고 rank(A)=2인 실수 선형계에서 해가 있다고 합시다. 자유변수 수와 유일성은?

A consistent real system has five unknowns and rank two. How many free variables remain?

풀이와 확인할 이유Solution and explanation

자유변수는 5−2=3개입니다. 추가 제한이 없는 실수계라면 무수한 해가 있습니다. 해가 있다는 전제는 rank([A|b])=2라는 조건입니다. 우변을 붙여 랭크가 3이 되면 오히려 해가 없습니다.

There are three. Without added restrictions, solutions are infinite. Consistency requires augmented rank two; augmented rank three would instead mean no solution.

24. 한 해에 영방향 더하기Add a null direction

x+2y=3에서 한 해 x₀=(3,0), 영방향 z=(−2,1)을 검산하고 x₀+5z를 구하세요.

Check x₀=(3,0), z=(−2,1) for x+2y=3, then find x₀+5z.

풀이와 확인할 이유Solution and explanation

(1,2)·x₀=3이고 (1,2)·z=0입니다. x₀+5z=(−7,5)이며 −7+10=3입니다. 영방향은 실제 입력을 바꾸어도 같은 출력을 유지하는 방향입니다.

Their outputs are 3 and 0. The new solution is (−7,5), still giving 3. Null directions change inputs without changing outputs.

25. 식이 많으면 반드시 유일할까Do many equations guarantee uniqueness?

x+y=3을 100번 반복한 계와 x+y=3, x−y=1인 계를 비교하세요.

Compare 100 copies of x+y=3 with x+y=3 and x−y=1.

풀이와 확인할 이유Solution and explanation

100번 복사한 계는 랭크 1이라 여전히 직선 전체가 해입니다. 두 독립식의 계는 랭크 2이고 (2,1)이 유일해입니다. 반복 횟수가 독립적인 제한의 수를 대신하지 못합니다.

The copies still have rank one and a line of solutions. The two independent equations have rank two and unique solution (2,1).

26. 역행렬을 직접 확인하기Check an inverse directly

A=[[2,1],[1,−1]], C=[[1/3,1/3],[1/3,−2/3]]에서 AC와 C(7,2)ᵀ를 구하세요.

For A=[[2,1],[1,−1]], C=[[1/3,1/3],[1/3,−2/3]], compute AC and C(7,2)ᵀ.

풀이와 확인할 이유Solution and explanation

AC의 행별 곱은 [[1,0],[0,1]]입니다. C(7,2)ᵀ=((7+2)/3,(7−4)/3)=(3,1)입니다. 반대 곱 CA도 I여서 C=A⁻¹입니다. 역행렬은 원래 입력을 복원합니다.

The product AC is I₂; CA is also I₂. Applying C to (7,2) gives (3,1), recovering the input.

27. 작은 행렬식의 함정The small-determinant trap

A=10⁻⁶I₂의 행렬식과 역행렬을 구하세요. 작은 행렬식만으로 상대 조건이 나쁘다고 할 수 있을까요?

Find the determinant and inverse of 10⁻⁶I₂. Does its small determinant alone imply poor relative conditioning?

풀이와 확인할 이유Solution and explanation

행렬식은 10⁻¹²이고 역행렬은 10⁶I₂입니다. 모든 방향을 똑같이 줄이므로 표준적인 유도 노름의 상대 조건수는 1입니다. 절대 배율과 상대적 민감도를 구별해야 합니다. 단지 행렬식 숫자가 작다는 이유만으로 거의 종속이라고 진단하면 안 됩니다.

They are 10⁻¹² and 10⁶I₂. It scales all directions equally and has relative condition number one in a standard induced norm. Absolute scale differs from relative conditioning.

28. 특정 교란의 증폭Amplification of one perturbation

23절 모형에서 ε=10⁻⁴, δ=10⁻⁵이면 정확한 해는 무엇인가요?

In Section 23, use ε=10⁻⁴ and δ=10⁻⁵. Find the exact solution.

풀이와 확인할 이유Solution and explanation

δ/ε=0.1이므로 x=0.9, y=1.1입니다. δ=0의 (1,1)에서 두 성분이 각각 0.1씩 바뀌었습니다. 이 설정에서 1/ε는 특정 우변 교란의 증폭계수이며 어떤 노름의 전체 조건수와 같다고 자동 부르지 않습니다.

The ratio δ/ε is 0.1, giving (0.9,1.1). The factor 1/ε describes this particular perturbation response; it is not automatically an entire norm-based condition number.

29. 의도한 수와 저장된 수Intended versus stored numbers

binary64에서 ε=10⁻²⁰을 써 1+ε를 저장하면 정확한 십진수 모형과 같은 행렬일까요?

Does storing 1+10⁻²⁰ in binary64 preserve the intended decimal matrix?

풀이와 확인할 이유Solution and explanation

보통 최근접 반올림에서는 1+ε가 1로 저장됩니다. 의도한 모형에서는 두 행이 독립이지만 저장된 행렬에서는 같아질 수 있습니다. 이는 소거 알고리즘이 입력에 없던 정보를 되살릴 수 없다는 예입니다. 저장값과 의도값을 함께 보여야 합니다.

Under ordinary nearest rounding it becomes 1. Intended independent rows may become identical in storage. An algorithm cannot recover discarded input information.

30. 작은 잔차와 큰 해 오차Small residual, large solution error

23절에서 δ=0, ε>0일 때 정확한 해는 (1,1)입니다. 후보 x̂=(0,2)의 잔차와 해의 차이를 구하세요.

For δ=0 and ε>0, compare candidate x̂=(0,2) with true solution (1,1).

풀이와 확인할 이유Solution and explanation

A x̂=(2,2+2ε)이므로 r=b−A x̂=(0,−ε)입니다. 잔차의 최대절대값은 ε이지만 정확한 해와의 차이는 (1,−1)이라 최대절대값 1입니다. ε가 작으면 작은 잔차만 보고 작은 해 오차라고 판단할 수 없습니다.

The residual is (0,−ε), with infinity norm ε, while the solution difference is (1,−1), with infinity norm one. A small residual alone is insufficient.

31. 단위를 바꿀 때 계수도 바꾸기Convert coefficients with input units

출력=2·길이이고 계수 단위가 원/m라고 합시다. 길이를 cm로 저장하면 같은 출력을 주는 계수는?

A coefficient is 2 won per metre. What coefficient preserves output when length is stored in centimetres?

풀이와 확인할 이유Solution and explanation

1 m=100 cm이므로 원/m 계수 2는 원/cm 계수 0.02로 바뀝니다. 3 m에서 6원, 300 cm에서 0.02·300=6원입니다. 숫자 2를 그대로 쓰면 600원으로 100배 오류입니다.

Use 0.02 won per centimetre. Then 3 metres and 300 centimetres both produce 6 won. Keeping the numeric coefficient 2 would create a factor-of-100 error.

32. 실제 공시 총매출 재현Reproduce actual reported sales

FY2024 행 (201183,29984,26694,37005,96169)에 모든 가중치 1을 적용하세요.

Apply all-one weights to FY2024 row (201183,29984,26694,37005,96169).

풀이와 확인할 이유Solution and explanation

201183+29984+26694+37005+96169=391035백만 미국달러입니다. 모든 구성항목은 같은 기간·통화단위이고 중복 없는 공시 구분입니다. 다른 표의 열 순서를 섞거나 이미 합산한 총계열을 다시 더하면 이 검산과 다른 문제가 됩니다.

The sum is 391035 million US dollars. Matching period, units and nonoverlapping filing categories are essential to the aggregation.

33. 공통 가중 시나리오A shared weighted scenario

두 연도의 R에 같은 w=(1,1,1,1,1.1)을 적용하세요. 결과를 실제 새 매출이라고 불러도 될까요?

Apply w=(1,1,1,1,1.1) to both years of R. Are these new observed sales?

풀이와 확인할 이유Solution and explanation

FY2023은 383285+8520=391805, FY2024는 391035+9616.9=400651.9백만 미국달러입니다. 두 값은 기존 공시항목에 공통 배율을 준 가정 출력입니다. 새 관측·회사 전망·인과효과 추정과 구별합니다. 두 행의 주수 차이도 그대로 남아 있습니다.

The outputs are 391805 and 400651.9 million US dollars. They are assumed reweightings of fixed filing entries, not new observations, forecasts or causal estimates. The reporting-duration difference remains.

34. 집계에서 사라진 품목 정보Component information lost by aggregation

다섯 품목을 제품 합계와 Services로 묶은 두 숫자만 압니다. 제품 첫 열에 1000을 더하고 둘째에서 1000을 빼면 집계가 달라질까요?

Aggregate five categories into products and Services. Add 1000 to the first product and subtract 1000 from the second. Do totals change?

풀이와 확인할 이유Solution and explanation

앞 네 열의 합은 그대로이고 Services도 그대로라 두 집계는 변하지 않습니다. 이 가정 변화는 집계변환의 영방향입니다. 추가 관측·제약 없이 두 총계만으로 다섯 항목을 유일하게 복원할 수 없습니다. 가정 대안을 실제 공시가 수정되었다는 주장으로 해석하지 않습니다.

No. The products sum and Services stay unchanged. This is a hypothetical null direction of aggregation, showing why two totals cannot uniquely recover five unconstrained components.

35. 계산의 유일성과 연구의 식별Unique computation versus research identification

행렬의 랭크가 충분해 회귀계수 한 개가 유일하게 계산되었습니다. 이것으로 인과효과가 증명되었나요?

A coefficient is algebraically unique because the design has adequate rank. Does that prove causality?

풀이와 확인할 이유Solution and explanation

아닙니다. 대수적 유일성은 같은 모형 안에서 다른 계수가 같은 적합값을 만드는지에 관한 조건입니다. 인과적 해석에는 배정·누락변수·측정·시간순서 등의 근거가 별도로 필요합니다. 숫자가 하나라는 사실을 연구설계의 타당성으로 대신할 수 없습니다.

No. Algebraic uniqueness concerns equivalence within the model. Causal interpretation needs separate assignment, confounding, measurement and timing assumptions supported by evidence.

자료와 출처Data and sources

World Bank · NY.GDP.PCAP.KD · 한국 실질 1인당 GDP · 1980–2024 · 2015년 불변 미국달러 · CC BY 4.0Korean real GDP per capita · 1980–2024 · constant 2015 US dollars · CC BY 4.0

14장 행렬의 행·열·단위·집계·유도 잔차 기록Chapter 14 rows, columns, units, aggregation and derived residuals · UCI · Power provenance · SEC · Apple

자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.

자료사전·출처·이용 조건Data dictionary, sources and terms