Main Page: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
No edit summary
No edit summary
 
(516 intermediate revisions by more than 100 users not shown)
Line 1: Line 1:
In [[linear algebra]], the '''Cauchy–Binet formula''', named after [[Augustin-Louis Cauchy]] and [[Jacques Philippe Marie Binet]], is an identity for the [[determinant]] of the [[matrix multiplication|product]] of two rectangular [[matrix (mathematics)|matrices]] of transpose shapes (so that the product is well defined and square). It generalizes the statement that the determinant of a product of square matrices is equal to the product of their determinants. The formula is valid for matrices with entries from any [[commutative ring]].
This is a preview for the new '''MathML rendering mode''' (with SVG fallback), which is availble in production for registered users.


== Statement ==
If you would like use the '''MathML''' rendering mode, you need a wikipedia user account that can be registered here [[https://en.wikipedia.org/wiki/Special:UserLogin/signup]]
* Only registered users will be able to execute this rendering mode.
* Note: you need not enter a email address (nor any other private information). Please do not use a password that you use elsewhere.


Let ''A'' be an ''m''&times;''n'' matrix and ''B'' an ''n''&times;''m'' matrix. Write [''n''] for the set {&nbsp;1,&nbsp;...,&nbsp;''n''&nbsp;}, and <math>\tbinom{[n]}m</math> for the set of ''m''-[[combination]]s of [''n''] (i.e., subsets of size ''m''; there are [[binomial coefficient|<math>\tbinom nm</math>]] of them). For <math>S\in\tbinom{[n]}m</math>, write ''A''<sub>[''m''],''S''</sub> for the ''m''&times;''m'' matrix whose columns are the columns of ''A'' at indices from ''S'', and ''B''<sub>''S'',[''m'']</sub> for the ''m''&times;''m'' matrix whose rows are the rows of ''B'' at indices from ''S''. The Cauchy–Binet formula then states
Registered users will be able to choose between the following three rendering modes:


: <math>\det(AB) = \sum_{S\in\tbinom{[n]}m} \det(A_{[m],S})\det(B_{S,[m]}).</math>
'''MathML'''
:<math forcemathmode="mathml">E=mc^2</math>


Example: taking ''m''&nbsp;=&nbsp;2 and ''n''&nbsp;=&nbsp;3, and matrices <math>A = \begin{pmatrix}1&1&2\\
<!--'''PNG''' (currently default in production)
3& 1& -1\\
:<math forcemathmode="png">E=mc^2</math>
\end{pmatrix}</math>
and <math>B =
\begin{pmatrix}1&1\\3&1\\0&2\end{pmatrix}</math>, the Cauchy–Binet formula gives the determinant:


:<math>
'''source'''
\det(AB)=
:<math forcemathmode="source">E=mc^2</math> -->
\left|\begin{matrix}1&1\\3&1\end{matrix}\right|
\cdot
\left|\begin{matrix}1&1\\3&1\end{matrix}\right|
+
\left|\begin{matrix}1&2\\1&-1\end{matrix}\right|
\cdot
\left|\begin{matrix}3&1\\0&2\end{matrix}\right|
+
\left|\begin{matrix}1&2\\3&-1\end{matrix}\right|
\cdot
\left|\begin{matrix}1&1\\0&2\end{matrix}\right|.
</math>


Indeed <math>AB =\begin{pmatrix}4&6\\6&2\end{pmatrix}</math>, and its determinant is −28, which is also the value <math>-2\times-2+-3\times6+-7\times2</math> given by the right hand side of the formula
<span style="color: red">Follow this [https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-rendering link] to change your Math rendering settings.</span> You can also add a [https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-rendering-skin Custom CSS] to force the MathML/SVG rendering or select different font families. See [https://www.mediawiki.org/wiki/Extension:Math#CSS_for_the_MathML_with_SVG_fallback_mode these examples].


== Special cases ==
==Demos==
If ''n''&nbsp;&lt;&nbsp;''m'' then <math>\tbinom{[n]}m</math> is the empty set, and the formula says that det(''AB'')&nbsp;=&nbsp;0 (its right hand side is an [[empty sum]]); indeed in this case the [[rank (linear algebra)|rank]] of the ''m''×''m'' matrix ''AB'' is at&nbsp;most&nbsp;''n'', which implies that its determinant is zero. If ''n'' = ''m'', the case where ''A'' and ''B'' are square matrices, <math>\tbinom{[n]}m=\{[n]\} </math> (a [[singleton (mathematics)|singleton]] set), so the sum only involves ''S''&nbsp;=&nbsp;[''n''], and the formula states that det(''AB'')&nbsp;=&nbsp;det(''A'')det(''B'').


For ''m''&nbsp;=&nbsp;0, ''A'' and ''B'' are [[empty matrix|empty matrices]] (but of different shapes if ''n''&nbsp;&gt;&nbsp;0), as is their product ''AB''; the summation involves a single term ''S''&nbsp;=&nbsp;Ø, and the formula states 1&nbsp;=&nbsp;1, with both sides given by the determinant of the 0×0 matrix. For ''m''&nbsp;=&nbsp;1, the summation ranges over the collection <math>\tbinom{[n]}1</math> of the ''n'' different singletons taken from [''n''], and both sides of the formula give <math>\textstyle\sum_{j=1}^nA_{1,j}B_{j,1}</math>, the [[dot product]] of the pair of [[Tuple|vector]]s represented by the matrices. The smallest value of ''m'' for which the formula states a non-trivial equality is ''m''&nbsp;=&nbsp;2; it is discussed in the article on the [[Binet–Cauchy identity]].
Here are some [https://commons.wikimedia.org/w/index.php?title=Special:ListFiles/Frederic.wang demos]:


== Proof ==


There are various kinds of proofs that can be given for the Cauchy−Binet formula. The proof below is based on formal manipulations only, and avoids using any particular interpretation of determinants, which may be taken to be defined by the [[Leibniz formula (determinant)|Leibniz formula]]. Only their multilinearity with respect to rows and columns, and their alternating property (vanishing in the presence of equal rows or columns) are used; in particular the multiplicative property of determinants for square matrices is not used, but is rather established (the case ''n''&nbsp;=&nbsp;''m''). The proof is valid for arbitrary commutative coefficient rings.
* accessibility:
** Safari + VoiceOver: [https://commons.wikimedia.org/wiki/File:VoiceOver-Mac-Safari.ogv video only], [[File:Voiceover-mathml-example-1.wav|thumb|Voiceover-mathml-example-1]], [[File:Voiceover-mathml-example-2.wav|thumb|Voiceover-mathml-example-2]], [[File:Voiceover-mathml-example-3.wav|thumb|Voiceover-mathml-example-3]], [[File:Voiceover-mathml-example-4.wav|thumb|Voiceover-mathml-example-4]], [[File:Voiceover-mathml-example-5.wav|thumb|Voiceover-mathml-example-5]], [[File:Voiceover-mathml-example-6.wav|thumb|Voiceover-mathml-example-6]], [[File:Voiceover-mathml-example-7.wav|thumb|Voiceover-mathml-example-7]]
** [https://commons.wikimedia.org/wiki/File:MathPlayer-Audio-Windows7-InternetExplorer.ogg Internet Explorer + MathPlayer (audio)]
** [https://commons.wikimedia.org/wiki/File:MathPlayer-SynchronizedHighlighting-WIndows7-InternetExplorer.png Internet Explorer + MathPlayer (synchronized highlighting)]
** [https://commons.wikimedia.org/wiki/File:MathPlayer-Braille-Windows7-InternetExplorer.png Internet Explorer + MathPlayer (braille)]
** NVDA+MathPlayer: [[File:Nvda-mathml-example-1.wav|thumb|Nvda-mathml-example-1]], [[File:Nvda-mathml-example-2.wav|thumb|Nvda-mathml-example-2]], [[File:Nvda-mathml-example-3.wav|thumb|Nvda-mathml-example-3]], [[File:Nvda-mathml-example-4.wav|thumb|Nvda-mathml-example-4]], [[File:Nvda-mathml-example-5.wav|thumb|Nvda-mathml-example-5]], [[File:Nvda-mathml-example-6.wav|thumb|Nvda-mathml-example-6]], [[File:Nvda-mathml-example-7.wav|thumb|Nvda-mathml-example-7]].
** Orca: There is ongoing work, but no support at all at the moment [[File:Orca-mathml-example-1.wav|thumb|Orca-mathml-example-1]], [[File:Orca-mathml-example-2.wav|thumb|Orca-mathml-example-2]], [[File:Orca-mathml-example-3.wav|thumb|Orca-mathml-example-3]], [[File:Orca-mathml-example-4.wav|thumb|Orca-mathml-example-4]], [[File:Orca-mathml-example-5.wav|thumb|Orca-mathml-example-5]], [[File:Orca-mathml-example-6.wav|thumb|Orca-mathml-example-6]], [[File:Orca-mathml-example-7.wav|thumb|Orca-mathml-example-7]].
** From our testing, ChromeVox and JAWS are not able to read the formulas generated by the MathML mode.


The formula can be proved in two steps:
==Test pages ==


# use the fact that both sides are [[multilinear]] (more precisely 2''m''-linear) in the ''rows'' of ''A'' and the ''columns'' of ''B'', to reduce to the case that each row of ''A'' and each column of ''B'' has only one non-zero entry, which is&nbsp;1.
To test the '''MathML''', '''PNG''', and '''source''' rendering modes, please go to one of the following test pages:
# handle that case using the functions [''m''][''n''] that map respectively the row numbers of ''A'' to the column number of their nonzero entry, and the column numbers of ''B'' to the row number of their nonzero entry.
*[[Displaystyle]]
*[[MathAxisAlignment]]
*[[Styling]]
*[[Linebreaking]]
*[[Unique Ids]]
*[[Help:Formula]]


For step 1, observe that for each row of ''A'' or column of ''B'', and for each ''m''-combination ''S'', the values of det(''AB'') and det(''A''<sub>[''m''],''S''</sub>)det(''B''<sub>''S'',[''m'']</sub>) indeed depend linearly on the row or column. For the latter this is immediate from the multilinear property of the determinant; for the former one must in addition check that taking a linear combination for the row of ''A'' or column of ''B'' while leaving the rest unchanged only affects the corresponding row or column of the product ''AB'', and by the same linear combination. Thus one can work out both sides of the Cauchy−Binet formula by linearity for every row of ''A'' and then also every column of ''B'', writing each of the rows and columns as a linear combination of standard basis vectors. The resulting multiple summations are huge, but they have the same form for both sides: corresponding terms involve the same scalar factor (each is a product of entries of ''A'' and of ''B''), and these terms only differ by involving two different expressions in terms of constant matrices of the kind described above, which expressions should be equal according to the Cauchy−Binet formula. This achieves the reduction of the first step.
*[[Inputtypes|Inputtypes (private Wikis only)]]
 
*[[Url2Image|Url2Image (private Wikis only)]]
Concretely, the multiple summations can be grouped into two summations, one over all functions ''f'':[''m'']&nbsp;→&nbsp;[''n''] that for each row index of ''A'' gives a corresponding column index, and one over all functions ''g'':[''m'']&nbsp;→&nbsp;[''n''] that for each column index of ''B'' gives a corresponding row index. The matrices associated to ''f'' and ''g'' are
==Bug reporting==
 
If you find any bugs, please report them at [https://bugzilla.wikimedia.org/enter_bug.cgi?product=MediaWiki%20extensions&component=Math&version=master&short_desc=Math-preview%20rendering%20problem Bugzilla], or write an email to math_bugs (at) ckurs (dot) de .
:<math>L_f=\bigl((\delta_{f(i),j})_{i\in[m],j\in[n]}\bigr) \quad\text{and}
 
\quad R_g=\bigl((\delta_{j,g(k)})_{j\in[n],k\in[m]}\bigr)</math>
 
where "<math>\delta</math>" is the [[Kronecker delta]], and the Cauchy−Binet formula to prove has been rewritten as
 
:<math>\sum_{f:[m]\to[n]}\sum_{g:[m]\to[n]}p(f,g)\det(L_fR_g)
=\sum_{f:[m]\to[n]}\sum_{g:[m]\to[n]}p(f,g)\sum_{S\in\tbinom{[n]}m}\det((L_f)_{[m],S})\det(R_g)_{S,[m]}),</math>
 
where ''p''(''f'',''g'') denotes the scalar factor <math>\textstyle(\prod_{i=1}^mA_{i,f(i)})(\prod_{k=1}^mB_{g(k),k})</math>. It remains to prove the Cauchy−Binet formula for ''A''&nbsp;=&nbsp;''L''<sub>''f''</sub> and ''B''&nbsp;=&nbsp;''R''<sub>''g''</sub>, for all ''f'',''g'':[''m'']&nbsp;→&nbsp;[''n''].
 
For this step 2, if ''f'' fails to be injective then ''L''<sub>''f''</sub> and ''L''<sub>''f''</sub>''R''<sub>''g''</sub> both have two identical rows, and if ''g'' fails to be injective then ''R''<sub>''g''</sub> and ''L''<sub>''f''</sub>''R''<sub>''g''</sub> both have two identical columns; in either case both sides of the identity are zero. Supposing now that both ''f'' and ''g'' are injective maps [''m'']&nbsp;→&nbsp;[''n''], the factor <math>\det((L_f)_{[m],S})</math> on the right is zero unless ''S''&nbsp;=&nbsp;''f''([''m'']), while the factor <math>\det((R_g)_{S,[m]})</math> is zero unless ''S''&nbsp;=&nbsp;''g''([''m'']). So
if the images of ''f'' and ''g'' are different, the right hand side has only null terms, and the left hand side is zero as well since ''L''<sub>''f''</sub>''R''<sub>''g''</sub> has a null row (for ''i'' with <math>f(i)\notin g([m])</math>). In the remaining case where the images of ''f'' and ''g'' are the same, say ''f''([''m''])&nbsp;=&nbsp;''S''&nbsp;=&nbsp;''g''([''m'']), we need to prove that
 
:<math>\det(L_fR_g)=\det((L_f)_{[m],S})\det(R_g)_{S,[m]}).\,</math>
 
Let ''h'' be the unique increasing bijection [''m'']&nbsp;→&nbsp;''S'', and ''π'',''σ'' the permutations of [''m''] such that <math>f=h\circ\pi^{-1}</math> and <math>g=h\circ\sigma</math>; then <math>(L_f)_{[m],S}</math> is the [[permutation matrix]] for ''π'', <math>(R_g)_{S,[m]}</math> is the permutation matrix for ''σ'', and ''L''<sub>''f''</sub>''R''<sub>''g''</sub> is the permutation matrix for <math>\pi\circ\sigma</math>, and since the determinant of a permutation matrix equals the [[signature (permutation)|signature]] of the permutation, the identity follows from the fact that signatures are multiplicative.
 
Using multi-linearity with respect to both the rows of ''A'' and the columns of ''B'' in the proof is not necessary; one could use just one of them, say the former, and use that a matrix product ''L''<sub>''f''</sub>''B'' either consists of a permutation of the rows of ''B''<sub>''f''([''m'']),[''m'']</sub> (if ''f'' is injective), or has at least two equal rows.
 
== Geometric interpretations ==
 
If ''A'' is a real ''m''&times;''n'' matrix, then det(''A''&nbsp;''A''<sup>T</sup>) is equal to the square of the ''m''-dimensional volume of the [[parallelepiped]] spanned in '''R'''<sup>''n''</sup> by the ''m'' rows of ''A''. Binet's formula states that this is equal to the sum of the squares of the volumes that arise if the parallelepiped is orthogonally projected onto the ''m''-dimensional coordinate planes (of which there are <math>\tbinom nm</math>).
 
In the case ''m''&nbsp;=&nbsp;1 the parallelepiped is reduced to a single vector and its volume its length. The above statement then states that the square of the length of a vector is the sum of the squares of its coordinates; this is indeed the case by [[Euclidean distance|the definition]] of that length, which is based on the [[Pythagorean theorem]].
 
== Generalization ==
 
The Cauchy–Binet formula can be extended in a straightforward way to a general formula for the [[minor (linear algebra)|minors]] of the product of two matrices. That formula is given in the article on [[minor (linear algebra)|minors]].
 
==External links==
*[http://www.lacim.uqam.ca/~lauve/courses/su2005-550/BS3.pdf A short combinatoric proof of Cauchy–Binet formula]
 
[[Category:Determinants]]
 
[[ar:صيغة كاوشي-بينيت]]
[[de:Satz von Binet-Cauchy]]
[[fr:Formule de Binet-Cauchy]]
[[it:Formula di Cauchy-Binet]]
[[pt:Fórmula de Binet-Cauchy]]
[[ru:Формула Бине — Коши]]
[[uk:Формула Біне — Коші]]
[[zh:柯西–比内公式]]

Latest revision as of 22:52, 15 September 2019

This is a preview for the new MathML rendering mode (with SVG fallback), which is availble in production for registered users.

If you would like use the MathML rendering mode, you need a wikipedia user account that can be registered here [[1]]

  • Only registered users will be able to execute this rendering mode.
  • Note: you need not enter a email address (nor any other private information). Please do not use a password that you use elsewhere.

Registered users will be able to choose between the following three rendering modes:

MathML

E=mc2


Follow this link to change your Math rendering settings. You can also add a Custom CSS to force the MathML/SVG rendering or select different font families. See these examples.

Demos

Here are some demos:


Test pages

To test the MathML, PNG, and source rendering modes, please go to one of the following test pages:

Bug reporting

If you find any bugs, please report them at Bugzilla, or write an email to math_bugs (at) ckurs (dot) de .