問題を入力...
線形代数 例
x+2y-z=4 , 2x+y+z=-2 , x+2y+z=2
ステップ 1
連立方程式からAX=Bを求めます。
[12-1211121]⋅[xyz]=[4-22]
ステップ 2
ステップ 2.1
Find the determinant.
ステップ 2.1.1
Choose the row or column with the most 0 elements. If there are no 0 elements choose any row or column. Multiply every element in row 1 by its cofactor and add.
ステップ 2.1.1.1
Consider the corresponding sign chart.
|+-+-+-+-+|
ステップ 2.1.1.2
The cofactor is the minor with the sign changed if the indices match a - position on the sign chart.
ステップ 2.1.1.3
The minor for a11 is the determinant with row 1 and column 1 deleted.
|1121|
ステップ 2.1.1.4
Multiply element a11 by its cofactor.
1|1121|
ステップ 2.1.1.5
The minor for a12 is the determinant with row 1 and column 2 deleted.
|2111|
ステップ 2.1.1.6
Multiply element a12 by its cofactor.
-2|2111|
ステップ 2.1.1.7
The minor for a13 is the determinant with row 1 and column 3 deleted.
|2112|
ステップ 2.1.1.8
Multiply element a13 by its cofactor.
-1|2112|
ステップ 2.1.1.9
Add the terms together.
1|1121|-2|2111|-1|2112|
1|1121|-2|2111|-1|2112|
ステップ 2.1.2
|1121|の値を求めます。
ステップ 2.1.2.1
2×2行列の行列式は公式|abcd|=ad-cbを利用して求めることができます。
1(1⋅1-2⋅1)-2|2111|-1|2112|
ステップ 2.1.2.2
行列式を簡約します。
ステップ 2.1.2.2.1
各項を簡約します。
ステップ 2.1.2.2.1.1
1に1をかけます。
1(1-2⋅1)-2|2111|-1|2112|
ステップ 2.1.2.2.1.2
-2に1をかけます。
1(1-2)-2|2111|-1|2112|
1(1-2)-2|2111|-1|2112|
ステップ 2.1.2.2.2
1から2を引きます。
1⋅-1-2|2111|-1|2112|
1⋅-1-2|2111|-1|2112|
1⋅-1-2|2111|-1|2112|
ステップ 2.1.3
|2111|の値を求めます。
ステップ 2.1.3.1
2×2行列の行列式は公式|abcd|=ad-cbを利用して求めることができます。
1⋅-1-2(2⋅1-1⋅1)-1|2112|
ステップ 2.1.3.2
行列式を簡約します。
ステップ 2.1.3.2.1
各項を簡約します。
ステップ 2.1.3.2.1.1
2に1をかけます。
1⋅-1-2(2-1⋅1)-1|2112|
ステップ 2.1.3.2.1.2
-1に1をかけます。
1⋅-1-2(2-1)-1|2112|
1⋅-1-2(2-1)-1|2112|
ステップ 2.1.3.2.2
2から1を引きます。
1⋅-1-2⋅1-1|2112|
1⋅-1-2⋅1-1|2112|
1⋅-1-2⋅1-1|2112|
ステップ 2.1.4
|2112|の値を求めます。
ステップ 2.1.4.1
2×2行列の行列式は公式|abcd|=ad-cbを利用して求めることができます。
1⋅-1-2⋅1-1(2⋅2-1⋅1)
ステップ 2.1.4.2
行列式を簡約します。
ステップ 2.1.4.2.1
各項を簡約します。
ステップ 2.1.4.2.1.1
2に2をかけます。
1⋅-1-2⋅1-1(4-1⋅1)
ステップ 2.1.4.2.1.2
-1に1をかけます。
1⋅-1-2⋅1-1(4-1)
1⋅-1-2⋅1-1(4-1)
ステップ 2.1.4.2.2
4から1を引きます。
1⋅-1-2⋅1-1⋅3
1⋅-1-2⋅1-1⋅3
1⋅-1-2⋅1-1⋅3
ステップ 2.1.5
行列式を簡約します。
ステップ 2.1.5.1
各項を簡約します。
ステップ 2.1.5.1.1
-1に1をかけます。
-1-2⋅1-1⋅3
ステップ 2.1.5.1.2
-2に1をかけます。
-1-2-1⋅3
ステップ 2.1.5.1.3
-1に3をかけます。
-1-2-3
-1-2-3
ステップ 2.1.5.2
-1から2を引きます。
-3-3
ステップ 2.1.5.3
-3から3を引きます。
-6
-6
-6
ステップ 2.2
Since the determinant is non-zero, the inverse exists.
ステップ 2.3
Set up a 3×6 matrix where the left half is the original matrix and the right half is its identity matrix.
[12-1100211010121001]
ステップ 2.4
縮小行の階段形を求めます。
ステップ 2.4.1
Perform the row operation R2=R2-2R1 to make the entry at 2,1 a 0.
ステップ 2.4.1.1
Perform the row operation R2=R2-2R1 to make the entry at 2,1 a 0.
[12-11002-2⋅11-2⋅21-2⋅-10-2⋅11-2⋅00-2⋅0121001]
ステップ 2.4.1.2
R2を簡約します。
[12-11000-33-210121001]
[12-11000-33-210121001]
ステップ 2.4.2
Perform the row operation R3=R3-R1 to make the entry at 3,1 a 0.
ステップ 2.4.2.1
Perform the row operation R3=R3-R1 to make the entry at 3,1 a 0.
[12-11000-33-2101-12-21+10-10-01-0]
ステップ 2.4.2.2
R3を簡約します。
[12-11000-33-210002-101]
[12-11000-33-210002-101]
ステップ 2.4.3
Multiply each element of R2 by -13 to make the entry at 2,2 a 1.
ステップ 2.4.3.1
Multiply each element of R2 by -13 to make the entry at 2,2 a 1.
[12-1100-13⋅0-13⋅-3-13⋅3-13⋅-2-13⋅1-13⋅0002-101]
ステップ 2.4.3.2
R2を簡約します。
[12-110001-123-130002-101]
[12-110001-123-130002-101]
ステップ 2.4.4
Multiply each element of R3 by 12 to make the entry at 3,3 a 1.
ステップ 2.4.4.1
Multiply each element of R3 by 12 to make the entry at 3,3 a 1.
[12-110001-123-130020222-120212]
ステップ 2.4.4.2
R3を簡約します。
[12-110001-123-130001-12012]
[12-110001-123-130001-12012]
ステップ 2.4.5
Perform the row operation R2=R2+R3 to make the entry at 2,3 a 0.
ステップ 2.4.5.1
Perform the row operation R2=R2+R3 to make the entry at 2,3 a 0.
[12-11000+01+0-1+1⋅123-12-13+00+12001-12012]
ステップ 2.4.5.2
R2を簡約します。
[12-110001016-1312001-12012]
[12-110001016-1312001-12012]
ステップ 2.4.6
Perform the row operation R1=R1+R3 to make the entry at 1,3 a 0.
ステップ 2.4.6.1
Perform the row operation R1=R1+R3 to make the entry at 1,3 a 0.
[1+02+0-1+1⋅11-120+00+1201016-1312001-12012]
ステップ 2.4.6.2
R1を簡約します。
[1201201201016-1312001-12012]
[1201201201016-1312001-12012]
ステップ 2.4.7
Perform the row operation R1=R1-2R2 to make the entry at 1,2 a 0.
ステップ 2.4.7.1
Perform the row operation R1=R1-2R2 to make the entry at 1,2 a 0.
[1-2⋅02-2⋅10-2⋅012-2(16)0-2(-13)12-2(12)01016-1312001-12012]
ステップ 2.4.7.2
R1を簡約します。
[1001623-1201016-1312001-12012]
[1001623-1201016-1312001-12012]
[1001623-1201016-1312001-12012]
ステップ 2.5
The right half of the reduced row echelon form is the inverse.
[1623-1216-1312-12012]
[1623-1216-1312-12012]
ステップ 3
行列式の両辺に逆行列を左掛けします。
([1623-1216-1312-12012]⋅[12-1211121])⋅[xyz]=[1623-1216-1312-12012]⋅[4-22]
ステップ 4
逆行列を掛けた行列は常に1と等しくなります。A⋅A-1=1です。
[xyz]=[1623-1216-1312-12012]⋅[4-22]
ステップ 5
ステップ 5.1
Two matrices can be multiplied if and only if the number of columns in the first matrix is equal to the number of rows in the second matrix. In this case, the first matrix is 3×3 and the second matrix is 3×1.
ステップ 5.2
1番目の行列の各行と2番目の行列の各列を掛けます。
[16⋅4+23⋅-2-12⋅216⋅4-13⋅-2+12⋅2-12⋅4+0⋅-2+12⋅2]
ステップ 5.3
すべての式を掛けて、行列の各要素を簡約します。
[-5373-1]
[-5373-1]
ステップ 6
左辺と右辺を簡約します。
[xyz]=[-5373-1]
ステップ 7
解を求めます。
x=-53
y=73
z=-1