markdown
逆行列の基本md c5a3810
lecture/math/linear-algebra/inverse-matrix-basics.lecture.n.md
Download PDF

逆行列ぎゃくぎょうれつinverse matrixの基本きほん

date2026-07-02document_iddoc_5f05a5a551e370672790903b94eee043description逆行列を、線型写像を一意に復元できる条件として導入し、階数・核・行列式・連立一次方程式との同値条件を整理する講義である。prerequisites連立一次方程式と掃き出し法 / 線型写像と行列 / 行列の積type講義content_typelecturestatusactiverelateddata/lecture/math/linear-algebra/linear-algebra-portal.lecture.n.md / data/lecture/math/linear-algebra/linear-systems-and-gaussian-elimination.lecture.n.md / data/lecture/math/linear-algebra/rank-basics.lecture.n.md / data/lecture/math/linear-algebra/rank-and-nullity-of-linear-maps.lecture.n.md / data/lecture/math/linear-algebra/determinants.lecture.n.md / data/lecture/math/linear-algebra/pseudoinverse-basics.lecture.n.md / data/exercise/math/linear-algebra/determinants-and-invertibility.exercise.n.md
mathlinear-algebraundergraduatelecture

Basics of the inverse matrix逆行列ぎゃくぎょうれつ

1導入どうにゅう

この講義こうぎで中心ちゅうしんに置おく発想はっそうは、逆行列ぎゃくぎょうれつinverse matrixは公式こうしきとして記憶きおくするものではなく、「写像しゃぞうmapを復元ふくげんできるか」という視点してんで理解りかいするものだということである。

行列ぎょうれつmatrix A が入力にゅうりょくを出力しゅつりょくへ送おくるなら、逆行列ぎゃくぎょうれつinverse matrix A-1 はその出力しゅつりょくから元もとの入力にゅうりょくを一意いちいに復元ふくげんする役割やくわりをもつ。情報じょうほうが失うしなわれる場合ばあい、逆行列ぎゃくぎょうれつinverse matrixは存在そんざいしない。

1Introduction

The most important point in this lecture is that an inverse matrix逆行列ぎゃくぎょうれつ is not merely a formula to memorize. It should be understood as the question of whether the map represented by a matrix can be recovered.

If a matrix行列ぎょうれつ A sends an input to an output, then A-1 recovers the original input uniquely from that output. When information is lost, no inverse matrix exists.

2用語ようごと定義ていぎ

逆行列ぎゃくぎょうれつInverse matrix とは、正方行列せいほうぎょうれつsquare matrix A に対たいして AA-1=A-1A=I を満みたす行列ぎょうれつmatrixである。左ひだりからも右みぎからも単位行列たんいぎょうれつidentity matrixになるため、両側逆りょうがわぎゃくであることが本質ほんしつである。

単位行列たんいぎょうれつIdentity matrix とは、掛かけても何なにも変かえない行列ぎょうれつmatrix I である。

2Terms and definitions

An inverse matrix逆行列ぎゃくぎょうれつ of a square matrix正方行列せいほうぎょうれつ A is a matrix satisfying

AA-1=A-1A=I.

The essential point is that it is a two-sided inverse: multiplication from both the left and the right gives the identity matrix単位行列たんいぎょうれつ. The identity matrix is the matrix I that changes nothing when multiplied.

3方針ほうしん

まず逆行列ぎゃくぎょうれつinverse matrixを「出力しゅつりょくから入力にゅうりょくを復元ふくげんする写像しゃぞうmap」として解釈かいしゃくする。そのあと、掃はき出だし法ほうGaussian eliminationで A を I に変形へんけいする過程かていが、そのまま A-1 を構成こうせいする過程かていになることを確認かくにんする。

3Strategy

First interpret an inverse matrix逆行列ぎゃくぎょうれつ as the map that recovers the input from the output. Then check that the process of using Gaussian elimination to transform A into I is exactly the process that constructs A-1.

4直感的ちょっかんてきな説明せつめい

拡大かくだいだけなら、後あとで縮小しゅくしょうすれば復元ふくげんできる。回転かいてんだけなら、逆向ぎゃくむきに回転かいてんすれば復元ふくげんできる。しかし、平面へいめんを 1 本ぽんの直線ちょくせんへつぶす写像しゃぞうmapは、情報じょうほうが失うしなわれるので復元ふくげんできない。これが逆行列ぎゃくぎょうれつinverse matrixがない場合ばあいである。

5厳密げんみつな説明せつめい

5.11. 定義ていぎ

A を n×n 正方行列せいほうぎょうれつsquare matrixとする。A-1 が存在そんざいするとき

AA-1=I,A-1A=I

である。長方行列ちょうほうぎょうれつでは左右さゆうの行列ぎょうれつmatrixサイズが一致いっちしないため、この意味いみでの逆行列ぎゃくぎょうれつinverse matrixは定義ていぎしない。

5.22. 掃はき出だしで求もとめる

(A∣I)

を構成こうせいし、左側ひだりがわを I へ掃はき出だす。すると右側みぎがわが A-1 になる。

5.33. 存在そんざいしない場合ばあい

掃はき出だしの途中とちゅうで主成分しゅせいぶんpivotを確保かくほできず、階数かいすうrankが不足ふそくするときは、逆行列ぎゃくぎょうれつinverse matrixは存在そんざいしない。

5.44. 可逆性かぎゃくせいの同値条件どうちじょうけん

A を n×n 行列ぎょうれつmatrixとする。このとき、次つぎの条件じょうけんは互たがいに同値どうちequivalentである。

ただし、行列式ぎょうれつしきdeterminantによる判定はんていは、あとでくわしく導入どうにゅうする先取さきどりである。このページの本流ほんりゅうでは、掃はき出だし、階数かいすうrank、核かくkernel、解かいの一意性いちいせいで可逆性かぎゃくせいinvertibilityを判定はんていする。

  1. A-1 が存在そんざいする。
  2. rank(A)=n である。
  3. ker(A)={0} である。
  4. A:Kn→Kn は単射たんしゃであり、全射ぜんしゃである。
  5. 任意にんいの b∈Kn に対たいして、Ax=b が一意解いちいかいを持もつ。
  6. detA≠0 である(あとで行列式ぎょうれつしきdeterminantとして扱あつかう同値条件どうちじょうけん)。
  7. 掃はき出だしで全列ぜんれつに主成分しゅせいぶんpivotが存在そんざいする。

この一覧いちらんは、逆行列ぎゃくぎょうれつinverse matrixが単たんなる計算公式けいさんこうしきではなく、情報じょうほうが失うしなわれないことを表あらわす複数ふくすうの判定条件はんていじょうけんの交点こうてんであることを示しめす。核かくkernelが {0} であれば 0 に潰つぶれる非零ひれいの方向ほうこうがなく、階数かいすうrankが n であれば出力空間しゅつりょくくうかんを全体ぜんたいとして到達とうたつできる。

論理ろんりの橋渡はしわたしを書かくと、まず ker(A)={0} は「異ことなる入力にゅうりょくが同おなじ出力しゅつりょくへ潰つぶれない」ことを意味いみする。したがって Ax=b の解かいが存在そんざいすれば、その解かいは一意いちいである。有限次元ゆうげんじげんの Kn→Kn では、ker(A)={0} なら階数かいすうrank・退化次数たいかじすうnullity定理ていりより rank(A)=n である。すると像ぞうimageは Kn 全体ぜんたいなので、任意にんいの b∈Kn に対たいして Ax=b は存在そんざいする。以上いじょうから「任意にんいの b に対たいして一意解いちいかいを持もつ」ことが従したがい、その解かいを b に対応たいおうさせる写像しゃぞうmapが A-1 である。

data/lecture/math/linear-algebra/rank-and-nullity-of-linear-maps.lecture.n.md

5.55. 長方行列ちょうほうぎょうれつの片側逆かたがわぎゃく

A が m×n 行列ぎょうれつmatrixの場合ばあい、両側逆りょうがわぎゃくの代かわりに片側逆かたがわぎゃくを考察こうさつできる。LA=In を満みたす L は左逆ひだりぎゃくであり、これは A が列満階数れつまんかいすう、すなわち rank(A)=n のときに存在そんざいする。AR=Im を満みたす R は右逆みぎぎゃくであり、これは A が行満階数ぎょうまんかいすう、すなわち rank(A)=m のときに存在そんざいする。

片側逆かたがわぎゃくは一意いちいとは限かぎらない。列れつcolumnが不足ふそくしたり行ぎょうrowが不足ふそくしたりする場合ばあいには、最小二乗解さいしょうにじょうかいや最小さいしょうノルム解かいを選択せんたくする基準きじゅんが必要ひつようになる。この基準きじゅんを標準的ひょうじゅんてきに与あたえるのが擬似逆行列ぎじぎゃくぎょうれつpseudoinverse matrixである。

擬似逆行列ぎじぎゃくぎょうれつpseudoinverse matrixは、あとの発展項目はってんこうもくである。ここでは、長方行列ちょうほうぎょうれつには正方行列せいほうぎょうれつと同おなじ両側逆りょうがわぎゃくがないことを見通みとおしとしておさえる。

data/lecture/math/linear-algebra/pseudoinverse-basics.lecture.n.md

6判定基準はんていきじゅん

  • 写像しゃぞうmapを復元ふくげんしたい、または Ax=b を一括いっかつで解ときたいなら、逆行列ぎゃくぎょうれつinverse matrixを検討けんとうする。
  • 掃はき出だして左側ひだりがわを I にできるかが、存在判定そんざいはんていの鍵かぎである。
  • 行列式ぎょうれつしきdeterminantが 0 でないこと、階数かいすうrankが n であること、核かくkernelが {0} であることは、同おなじ可逆性かぎゃくせいを別べつの角度かくどから述のべた条件じょうけんである。
  • 核かくkernel、階数かいすうrank、任意にんいの右辺うへんright-hand sideへの一意解いちいかい、逆写像ぎゃくしゃぞうの存在そんざいは、情報じょうほうが失うしなわれないことを別表現べつひょうげんしたものである。

4Intuitive explanation

A pure expansion can be reversed by shrinking, and a pure rotation can be reversed by rotating in the opposite direction. But a map that collapses a plane onto a single line loses information, so it cannot be recovered. This is the situation in which no inverse matrix逆行列ぎゃくぎょうれつ exists.

5Rigorous explanation

5.11. Definition

Let A be an n×n square matrix正方行列せいほうぎょうれつ. If A-1 exists, then

AA-1=I,A-1A=I.

For a rectangular matrix, the left and right sizes do not match, so an inverse matrix in this two-sided sense is not defined.

5.22. Computing by elimination

Form (A∣I) and use elimination to turn the left side into I. Then the right side becomes A-1.

5.33. When no inverse exists

If a pivot cannot be secured during elimination and the rank階数かいすう is deficient, then no inverse matrix逆行列ぎゃくぎょうれつ exists.

5.44. Equivalent criteria

For an n×n matrix A, the following conditions are equivalent.

The determinant criterion is a preview of the later determinant lectures. The main criteria used in this page are elimination, rank, kernel, and uniqueness of solutions.

  1. A-1 exists.
  2. rank(A)=n.
  3. ker(A)={0}.
  4. A:Kn→Kn is injective and surjective.
  5. For every b∈Kn, Ax=b has a unique solution.
  6. detA≠0 (the determinant criterion introduced later).
  7. Elimination has a pivot in every column.

This list shows that an inverse matrix is the intersection of several tests saying that no information is lost. The condition ker(A)={0} means different inputs do not collapse to the same output, so any existing solution of Ax=b is unique. In finite dimension, rank-nullity then gives rank(A)=n, so the image is all of Kn and a solution exists for every b. Sending b to that unique solution defines A-1.

data/lecture/math/linear-algebra/rank-and-nullity-of-linear-maps.lecture.n.md

5.55. One-sided inverses for rectangular matrices

If A is an m×n matrix, one-sided inverses can be considered instead. A left inverse L satisfies LA=In and exists when rank(A)=n. A right inverse R satisfies AR=Im and exists when rank(A)=m.

One-sided inverses need not be unique. When columns or rows are missing, a criterion is needed to choose a least-squares solution or a minimum-norm solution. The pseudoinverse擬似逆行列ぎじぎゃくぎょうれつ provides that standard criterion.

The pseudoinverse is a later advanced topic. At this point, the important distinction is that rectangular matrices do not have the same two-sided inverse as square matrices.

data/lecture/math/linear-algebra/pseudoinverse-basics.lecture.n.md

6Decision criteria

  • Use an inverse matrix逆行列ぎゃくぎょうれつ when you want to recover a map or solve Ax=b all at once.
  • The existence test is whether elimination can turn the left side into I.
  • detA≠0, rank(A)=n, and ker(A)={0} are the same invertibility condition read from different angles.
  • Kernel, rank, unique solutions for every right-hand side, and the existence of an inverse map all express that no information is lost.

7最終形さいしゅうけい

[PARSE ERROR: Undefined("Command(\"boxed\")")]AA-1=A-1A=I
[PARSE ERROR: Undefined("Command(\"boxed\")")](A∣I)→(I∣A-1)
[PARSE ERROR: Undefined("Command(\"boxed\")")]Aは可逆⟺rank(A)=n⟺ker(A)={0}⟺detA≠0
[PARSE ERROR: Undefined("Command(\"boxed\")")]長方行列では片側逆と擬似逆行列を区別する

行列式ぎょうれつしきdeterminantと擬似逆行列ぎじぎゃくぎょうれつpseudoinverse matrixは、あとでくわしく扱あつかう。このページで直接ちょくせつつかう判定はんていは、掃はき出だし、階数かいすうrank、核かくkernel、一意解いちいかいである。

7Final forms

[PARSE ERROR: Undefined("Command(\"boxed\")")]AA-1=A-1A=I
[PARSE ERROR: Undefined("Command(\"boxed\")")](A∣I)→(I∣A-1)
[PARSE ERROR: Undefined("Command(\"boxed\")")]Aisinvertible⟺rank(A)=n⟺ker(A)={0}⟺detA≠0
[PARSE ERROR: Undefined("Command(\"boxed\")")]Forrectangularmatricesdistinguishone-sidedinversesandthepseudoinverse.[PARSE ERROR: Undefined("RBrace")]

Determinants and pseudoinverses are developed later. The direct criteria in this page are elimination, rank, kernel, and unique solvability.

8定理ていりと証明しょうめい:逆行列ぎゃくぎょうれつは一意いちいである

正方行列せいほうぎょうれつ A に対たいして、B と C がどちらも A の逆行列ぎゃくぎょうれつだとする。つまり

AB=BA=I,AC=CA=I

である。このとき B=C である。

証明しょうめいする。

B=BI=B(AC)=(BA)C=IC=C

である。ここでは行列積ぎょうれつせきの結合法則けつごうほうそくを使つかっている。

この証明しょうめいは、逆行列ぎゃくぎょうれつが「あるかないか」だけでなく、あるなら一ひとつに決きまることを示しめす。逆ぎゃくに戻もどす操作そうさが二通ふたとおりあると、どちらを使つかっても同おなじ結果けっかになる。

9演習えんしゅうリンク

data/exercise/math/linear-algebra/determinants-and-invertibility.exercise.n.md

8Theorem and proof: the inverse is unique

Let B and C both be inverses of a square matrix A. That is,

AB=BA=I,AC=CA=I.

Then B=C. The proof is

B=BI=B(AC)=(BA)C=IC=C.

This uses associativity of matrix multiplication. The proof shows not only that an inverse may or may not exist, but also that if it exists, it is determined uniquely.

9Exercise links

data/exercise/math/linear-algebra/determinants-and-invertibility.exercise.n.md

10一言ひとことでいうと

  • 逆行列ぎゃくぎょうれつinverse matrixは、行列ぎょうれつmatrixが表あらわす変換へんかんを復元ふくげんできるときにだけ存在そんざいする。

11関連かんれんリンク

data/lecture/math/linear-algebra/rank-basics.lecture.n.md data/lecture/math/linear-algebra/rank-and-nullity-of-linear-maps.lecture.n.md data/lecture/math/linear-algebra/determinants.lecture.n.md data/lecture/math/linear-algebra/pseudoinverse-basics.lecture.n.md

10In one sentence

  • An inverse matrix逆行列ぎゃくぎょうれつ exists exactly when the transformation represented by the matrix can be recovered.

11Related links

data/lecture/math/linear-algebra/rank-basics.lecture.n.md data/lecture/math/linear-algebra/rank-and-nullity-of-linear-maps.lecture.n.md data/lecture/math/linear-algebra/determinants.lecture.n.md data/lecture/math/linear-algebra/pseudoinverse-basics.lecture.n.md
raw .n.md をコピー
loc をコピー (filepath:line ~ line)
copy share link
copy encoded share link
path をコピー
copy share link
copy encoded share link
copy share link
copy encoded share link
タブを全て閉じる