BMI 계산기
행렬 연산을 수행하세요 — 더하기, 빼기, 곱하기, 전치, 행렬식, 역행렬 — 단계별 풀이 포함.
이 도구에 대해
행렬 크기(2×2, 3×3 또는 4×4)를 선택하고 행렬 A와 행렬 B의 그리드 셀을 채우세요. 연산을 선택하세요: 덧셈, 뺄셈, 곱셈, 전치, 행렬식 또는 역행렬. 결과는 형식화된 행렬 그리드로 표시됩니다. 행렬식과 역행렬의 경우 도구는 모든 단계를 따라갈 수 있도록 전체 여인수 전개 풀이를 표시합니다. 특이 행렬, 호환되지 않는 크기 및 정방형이 아닌 입력에 대한 오류가 명확하게 보고됩니다.
사용 방법
- 1 크기 선택기에서 행렬 크기(2×2, 3×3 또는 4×4)를 선택하세요.
- 2 행렬 A 그리드에 값을 입력하세요 — 연산에 두 행렬이 필요한 경우 행렬 B도 입력하세요.
- 3 연산을 선택하세요: 덧셈, 뺄셈, 곱셈, 전치, 행렬식 또는 역행렬.
- 4 계산을 클릭하여 결과 행렬을 확인하고, 행렬식/역행렬의 경우 단계별 풀이를 확인하세요.
What a matrix calculator does
A matrix is a grid of numbers, and matrix algebra is the engine behind 3D graphics, machine learning, physics simulations, economics, and any system of linear equations. This calculator works with square matrices of size 2×2, 3×3, or 4×4 and performs the core operations: addition, subtraction, multiplication, transpose, determinant, and inverse. You fill the grids with numbers (decimals allowed), pick an operation, and it computes the result entirely in your browser. For the determinant and inverse it also shows step-by-step working so you can check the method, not just the answer.
How each operation actually works
Addition and subtraction are element-wise: the entry in row i, column j of the result is simply A[i][j] ± B[i][j]. Both matrices must be the same size, which is why this tool keeps A and B identical in dimension.
Multiplication is the operation people get wrong, because it is not element-wise. Each result entry is a dot product of a row of A with a column of B: result[i][j] = Σ A[i][k] × B[k][j] over all k. This makes matrix multiplication non-commutative — A×B generally does not equal B×A — and it's why the order you enter the matrices matters.
Transpose flips the matrix over its diagonal: rows become columns, so the entry at (i, j) moves to (j, i).
Determinant is computed by cofactor expansion along the first row. For a 2×2 it's the familiar ad − bc. For larger matrices the tool recursively breaks the problem into smaller "minor" matrices, multiplying each first-row entry by the determinant of the submatrix left after deleting its row and column, with alternating + and − signs.
Inverse uses the adjugate method: A⁻¹ = adj(A) / det(A), where the adjugate is the transposed matrix of cofactors. If the determinant is zero (technically, within a tiny tolerance of zero) the matrix is singular and has no inverse — the tool reports this rather than returning nonsense.
A worked example: 2×2 determinant and inverse
Take the matrix A = [[4, 7], [2, 6]].
- Determinant: det(A) = (4 × 6) − (7 × 2) = 24 − 14 = 10. Since it's non-zero, an inverse exists.
- Inverse: for a 2×2 you swap the diagonal entries, negate the off-diagonal, and divide by the determinant:
A⁻¹ = (1/10) × [[6, −7], [−2, 4]] = [[0.6, −0.7], [−0.2, 0.4]].
You can verify the result by multiplying A × A⁻¹ in the tool — it should return the identity matrix [[1, 0], [0, 1]], give or take tiny floating-point rounding.
Common use cases
- Solving linear systems. A set of simultaneous equations written as Ax = b is solved by x = A⁻¹b; the inverse and determinant are the heart of that.
- Computer graphics. 4×4 matrices represent translation, rotation, and scaling of 3D objects; multiplying them chains transformations.
- Checking homework. Compute the answer here, then compare with your hand calculation — the step display makes it a study aid, not just a black box.
- Engineering and statistics. Covariance matrices, transformation matrices, and Markov transition matrices all rely on these operations.
Tips and common mistakes
- Multiplication order is not interchangeable. A×B ≠ B×A in general. Decide which matrix is the "transformation" and which is the "input," and put them in that order.
- A zero determinant means no inverse. Geometrically, the matrix collapses space onto a lower dimension, so it can't be undone. If you see the "singular" error, your rows or columns are linearly dependent (one is a combination of the others).
- Watch floating-point noise. Inverses and chained operations can leave values like
0.9999998instead of1. The display rounds for readability, but expect tiny residue when you verify results. - Empty cells count as zero. Blank inputs are read as 0, so an unfilled entry silently changes your answer — fill every cell deliberately.
- Determinant only for square matrices. All operations here use square matrices, which is correct: determinant and inverse are undefined for non-square matrices, and multiplication of non-square matrices requires matching inner dimensions.
- Transpose ≠ inverse. A beginner trap is treating the transpose as an inverse. They're equal only for special (orthogonal) matrices; in general they're entirely different results.