<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Computer vision for dummies &#187; Eigenfaces</title>
	<atom:link href="https://www.visiondummy.com/tag/eigenfaces/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.visiondummy.com</link>
	<description>A blog about intelligent algorithms, machine learning, computer vision, datamining and more.</description>
	<lastBuildDate>Tue, 04 May 2021 14:17:31 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.8.39</generator>
	<item>
		<title>What are eigenvectors and eigenvalues?</title>
		<link>https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/</link>
		<comments>https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/#comments</comments>
		<pubDate>Wed, 05 Mar 2014 14:44:53 +0000</pubDate>
		<dc:creator><![CDATA[Vincent Spruyt]]></dc:creator>
				<category><![CDATA[Linear algebra]]></category>
		<category><![CDATA[Eigenfaces]]></category>
		<category><![CDATA[Eigenvalues]]></category>
		<category><![CDATA[Eigenvectors]]></category>
		<category><![CDATA[PCA]]></category>

		<guid isPermaLink="false">http://www.visiondummy.com/?p=111</guid>
		<description><![CDATA[<p>Eigenvectors and eigenvalues have many important applications in computer vision and machine learning in general. Well known examples are PCA (Principal Component Analysis) for dimensionality reduction or EigenFaces for face recognition. An interesting use of eigenvectors and eigenvalues is also illustrated in my post about error ellipses. Furthermore, eigendecomposition forms the base of the geometric [...]</p>
<p>The post <a rel="nofollow" href="https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/">What are eigenvectors and eigenvalues?</a> appeared first on <a rel="nofollow" href="https://www.visiondummy.com">Computer vision for dummies</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2>Introduction</h2>
<p>Eigenvectors and eigenvalues have many important applications in computer vision and machine learning in general. Well known examples are <a href="http://www.visiondummy.com/2014/05/feature-extraction-using-pca/" title="Feature extraction using PCA" target="_blank">PCA (Principal Component Analysis)</a> for dimensionality reduction or <a href="http://www.visiondummy.com/2014/05/feature-extraction-using-pca/#A_practical_PCA_application_Eigenfaces" title="Eigenfaces" target="_blank">EigenFaces</a> for face recognition. An interesting use of eigenvectors and eigenvalues is also illustrated in my post about <a href="http://www.visiondummy.com/2014/04/draw-error-ellipse-representing-covariance-matrix/" title="How to draw a covariance error ellipse?" target="_blank">error ellipses</a>. Furthermore, eigendecomposition forms the base of the geometric interpretation of covariance matrices, discussed in an <a href="http://www.visiondummy.com/2014/04/geometric-interpretation-covariance-matrix/" title="A geometric interpretation of the covariance matrix" target="_blank">more recent post</a>. In this article, I will provide a gentle introduction into this mathematical concept, and will show how to manually obtain the eigendecomposition of a 2D square matrix.</p>
<p>An eigenvector is a vector whose direction remains unchanged when a linear transformation is applied to it. Consider the image below in which three vectors are shown. The green square is only drawn to illustrate the linear transformation that is applied to each of these three vectors.</p>
<div id="attachment_128" style="width: 525px" class="wp-caption aligncenter"><a title="Eigenvectors image" href="http://www.visiondummy.com/wp-content/uploads/2014/03/eigenvectors.png" target="_blank"><img class="size-full wp-image-128   " style="border: 0px; margin-top: 0px; margin-bottom: 0px;" title="eigenvectors" alt="eigenvectors" src="http://www.visiondummy.com/wp-content/uploads/2014/03/eigenvectors.png" width="515" height="217" /></a><p class="wp-caption-text">Eigenvectors (red) do not change direction when a linear transformation (e.g. scaling) is applied to them. Other vectors (yellow) do.</p></div>
<p>The transformation in this case is a simple scaling with factor 2 in the horizontal direction and factor 0.5 in the vertical direction, such that the transformation matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/> is defined as:</p>
<p align="center"><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-7c07ea3c8536c266a96b8d3c430fda32_l3.png" class="ql-img-inline-formula " alt="&#65;&#61;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#50;&#32;&#38;&#32;&#48;&#32;&#92;&#92;&#32;&#48;&#32;&#38;&#32;&#48;&#46;&#53;&#32;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="51" width="118" style="vertical-align: -20px;"/>.</p>
<p>A vector <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-0fd80e210150f4e468bd01b12d868319_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#61;&#40;&#120;&#44;&#121;&#41;" title="Rendered by QuickLaTeX.com" height="23" width="87" style="vertical-align: -6px;"/> is then scaled by applying this transformation as <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-344d807687f932bcc396d5fafeb311bd_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#92;&#112;&#114;&#105;&#109;&#101;&#32;&#61;&#32;&#65;&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="74" style="vertical-align: 0px;"/>. The above figure shows that the direction of some vectors (shown in red) is not affected by this linear transformation. These vectors are called eigenvectors of the transformation, and uniquely define the square matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/>. This unique, deterministic relation is exactly the reason that those vectors are called &#8216;eigenvectors&#8217; (Eigen means &#8216;specific&#8217; in German).</p>
<p>In general, the eigenvector <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-5663d3adf90e26dd70e1f371e6cd6eba_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/> of a matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/> is the vector for which the following holds:<br />
<a name="id3583665669"></a>
<p class="ql-center-displayed-equation" style="line-height: 15px;"><span class="ql-right-eqno"> (1) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-eb4c71b958e218b53b61c59878cbcc8e_l3.png" height="15" width="80" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#65;&#32;&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#32;&#61;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#92;&#118;&#101;&#99;&#123;&#118;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>where <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-50bc2c4701f0a0dd472fdd7dad5c47d9_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;" title="Rendered by QuickLaTeX.com" height="14" width="11" style="vertical-align: 0px;"/> is a scalar value called the &#8216;eigenvalue&#8217;. This means that the linear transformation <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/> on vector <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-5663d3adf90e26dd70e1f371e6cd6eba_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/> is completely defined by <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-50bc2c4701f0a0dd472fdd7dad5c47d9_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;" title="Rendered by QuickLaTeX.com" height="14" width="11" style="vertical-align: 0px;"/>.</p>
<p>We can rewrite equation (<a href="#id3583665669">1</a>) as follows:<br />
<a name="id1398496403"></a>
<p class="ql-center-displayed-equation" style="line-height: 53px;"><span class="ql-right-eqno"> (2) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-ada6ad586377a11090e2a2216fd97c4c_l3.png" height="53" width="162" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#65;&#32;&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#32;&#45;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#32;&#61;&#32;&#48;&#32;&#92;&#92;&#32; &#92;&#82;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#32;&#40;&#65;&#32;&#45;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#73;&#41;&#32;&#61;&#32;&#48;&#44; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>where <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-957d73b755a44351e97c684d0dd6a81a_l3.png" class="ql-img-inline-formula " alt="&#73;" title="Rendered by QuickLaTeX.com" height="14" width="11" style="vertical-align: 0px;"/> is the identity matrix of the same dimensions as <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/>.</p>
<p>However, assuming that <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-5663d3adf90e26dd70e1f371e6cd6eba_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/> is not the null-vector, equation (<a href="#id1398496403">2</a>) can only be defined if <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-94d0d60442ecf418b07344bc1ca1d563_l3.png" class="ql-img-inline-formula " alt="&#40;&#65;&#32;&#45;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#73;&#41;" title="Rendered by QuickLaTeX.com" height="23" width="78" style="vertical-align: -6px;"/> is not invertible. If a square matrix is not invertible, that means that its <a href="https://nl.wikipedia.org/wiki/Determinant" title="Matrix determinant calculation" target="_blank">determinant </a>must equal zero. Therefore, to find the eigenvectors of <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/>, we simply have to solve the following equation:<br />
<a name="id1043422129"></a>
<p class="ql-center-displayed-equation" style="line-height: 23px;"><span class="ql-right-eqno"> (3) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d59a2059f63d030aee053e6d6b498960_l3.png" height="23" width="160" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#68;&#101;&#116;&#40;&#65;&#32;&#45;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#73;&#41;&#32;&#61;&#32;&#48;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>In the following sections we will determine the eigenvectors and eigenvalues of a matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/>, by solving equation (<a href="#id1043422129">3</a>). Matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/> in this example, is defined by:<br />
<a name="id3888381481"></a>
<p class="ql-center-displayed-equation" style="line-height: 51px;"><span class="ql-right-eqno"> (4) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c29b8a316e5fd2c00ddce343ed09a3a7_l3.png" height="51" width="115" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#65;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#50;&#32;&#38;&#32;&#51;&#32;&#92;&#92;&#32;&#50;&#32;&#38;&#32;&#49;&#32;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<h2>Calculating the eigenvalues</h2>
<p>To determine the eigenvalues for this example, we substitute <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/> in equation (<a href="#id1043422129">3</a>) by equation (<a href="#id3888381481">4</a>) and obtain:</p>
<p class="ql-center-displayed-equation" style="line-height: 51px;"><span class="ql-right-eqno"> (5) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-a0a1263af5ed765bcd4294cd1fb7bcb0_l3.png" height="51" width="230" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#68;&#101;&#116;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#50;&#45;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#38;&#51;&#92;&#92;&#50;&#38;&#49;&#45;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#61;&#48;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Calculating the determinant gives:</p>
<p class="ql-center-displayed-equation" style="line-height: 86px;"><span class="ql-right-eqno"> (6) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3c17ec7b6bfbb228d31d1f39cb0ec80b_l3.png" height="86" width="239" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#38;&#40;&#50;&#45;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#41;&#40;&#49;&#45;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#41;&#32;&#45;&#32;&#54;&#32;&#61;&#32;&#48;&#92;&#92; &#92;&#82;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#38;&#50;&#32;&#45;&#32;&#50;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#45;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#45;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#94;&#50;&#32;&#45;&#54;&#32;&#61;&#32;&#48;&#92;&#92; &#92;&#82;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#38;&#123;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#125;&#94;&#50;&#32;&#45;&#32;&#51;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#45;&#52;&#32;&#61;&#32;&#48;&#46; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>To solve this quadratic equation in <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-50bc2c4701f0a0dd472fdd7dad5c47d9_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;" title="Rendered by QuickLaTeX.com" height="14" width="11" style="vertical-align: 0px;"/>, we find the discriminant:</p>
<p class="ql-center-displayed-equation" style="line-height: 26px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-9cfddc6a52bc02141e6aaabf8e7cb89b_l3.png" height="26" width="472" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#68;&#32;&#61;&#32;&#98;&#94;&#50;&#32;&#45;&#52;&#97;&#99;&#32;&#61;&#32;&#40;&#45;&#51;&#41;&#94;&#50;&#32;&#45;&#52;&#42;&#49;&#42;&#40;&#45;&#52;&#41;&#32;&#61;&#32;&#57;&#43;&#49;&#54;&#32;&#61;&#32;&#50;&#53;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Since the discriminant is strictly positive, this means that two different values for <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-50bc2c4701f0a0dd472fdd7dad5c47d9_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;" title="Rendered by QuickLaTeX.com" height="14" width="11" style="vertical-align: 0px;"/> exist:<br />
<a name="id2474539270"></a>
<p class="ql-center-displayed-equation" style="line-height: 104px;"><span class="ql-right-eqno"> (7) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-37219092f3070d9cef6dac1fc00d1cfe_l3.png" height="104" width="280" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;&#32; &#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#95;&#49;&#32;&#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#45;&#98;&#32;&#45;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#68;&#125;&#125;&#123;&#50;&#97;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#51;&#45;&#53;&#125;&#123;&#50;&#125;&#32;&#61;&#32;&#45;&#49;&#44;&#92;&#92; &#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#95;&#50;&#32;&#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#45;&#98;&#32;&#43;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#68;&#125;&#125;&#123;&#50;&#97;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#51;&#43;&#53;&#125;&#123;&#50;&#125;&#32;&#61;&#32;&#52;&#46; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>We have now determined the two eigenvalues <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d28b7f27106b804ac9311012dd46d840_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#49;" title="Rendered by QuickLaTeX.com" height="18" width="18" style="vertical-align: -4px;"/> and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-a90de865b721b1827da7f6e7155ccb3f_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="17" width="19" style="vertical-align: -3px;"/>. Note that a square matrix of size <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-27211e8b64d0af6bb1c7c805a18af057_l3.png" class="ql-img-inline-formula " alt="&#78;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#78;" title="Rendered by QuickLaTeX.com" height="14" width="64" style="vertical-align: 0px;"/> always has exactly <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-9c99ad944abf4b8313cf07a473add4bf_l3.png" class="ql-img-inline-formula " alt="&#78;" title="Rendered by QuickLaTeX.com" height="14" width="19" style="vertical-align: 0px;"/> eigenvalues, each with a corresponding eigenvector. The eigenvalue specifies the size of the eigenvector.</p>
<h2>Calculating the first eigenvector</h2>
<p>We can now determine the eigenvectors by plugging the eigenvalues from equation (<a href="#id2474539270">7</a>) into equation (<a href="#id3583665669">1</a>) that originally defined the problem. The eigenvectors are then found by solving this system of equations.</p>
<p>We first do this for eigenvalue <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d28b7f27106b804ac9311012dd46d840_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#49;" title="Rendered by QuickLaTeX.com" height="18" width="18" style="vertical-align: -4px;"/>, in order to find the corresponding first eigenvector:</p>
<p class="ql-center-displayed-equation" style="line-height: 51px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-51fb701d729dba46cfec30d0118b0ec6_l3.png" height="51" width="231" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#50;&#38;&#51;&#92;&#92;&#50;&#38;&#49;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#120;&#95;&#123;&#49;&#49;&#125;&#92;&#92;&#120;&#95;&#123;&#49;&#50;&#125;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#61;&#32;&#45;&#49;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#120;&#95;&#123;&#49;&#49;&#125;&#92;&#92;&#120;&#95;&#123;&#49;&#50;&#125;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Since this is simply the matrix notation for a system of equations, we can write it in its equivalent form:</p>
<p class="ql-center-displayed-equation" style="line-height: 51px;"><span class="ql-right-eqno"> (8) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3eb2108a126b2454d9a129a952d00f6b_l3.png" height="51" width="200" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#92;&#108;&#101;&#102;&#116;&#92;&#123; &#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#108;&#114;&#125; &#50;&#120;&#95;&#123;&#49;&#49;&#125;&#32;&#43;&#32;&#51;&#120;&#95;&#123;&#49;&#50;&#125;&#32;&#61;&#32;&#45;&#120;&#95;&#123;&#49;&#49;&#125;&#92;&#92; &#50;&#120;&#95;&#123;&#49;&#49;&#125;&#32;&#43;&#32;&#120;&#95;&#123;&#49;&#50;&#125;&#32;&#61;&#32;&#45;&#120;&#95;&#123;&#49;&#50;&#125; &#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125; &#92;&#114;&#105;&#103;&#104;&#116;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>and solve the first equation as a function of <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6d4ff917b6f3318e7e751d763f714ea0_l3.png" class="ql-img-inline-formula " alt="&#120;&#95;&#123;&#49;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="28" style="vertical-align: -4px;"/>, resulting in:<br />
<a name="id2280642976"></a>
<p class="ql-center-displayed-equation" style="line-height: 13px;"><span class="ql-right-eqno"> (9) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-26c85379d54fa989997f8f646a31a747_l3.png" height="13" width="108" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#120;&#95;&#123;&#49;&#49;&#125;&#32;&#61;&#32;&#45;&#120;&#95;&#123;&#49;&#50;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Since an eigenvector simply represents an orientation (the corresponding eigenvalue represents the magnitude), all scalar multiples of the eigenvector are vectors that are parallel to this eigenvector, and are therefore equivalent (If we would normalize the vectors, they would all be equal). Thus, instead of further solving the above system of equations, we can freely chose a real value for either <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6bfc99a3e13267a369fcf851315468ad_l3.png" class="ql-img-inline-formula " alt="&#120;&#95;&#123;&#49;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="27" style="vertical-align: -4px;"/> or <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6d4ff917b6f3318e7e751d763f714ea0_l3.png" class="ql-img-inline-formula " alt="&#120;&#95;&#123;&#49;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="28" style="vertical-align: -4px;"/>, and determine the other one by using equation (<a href="#id2280642976">9</a>).</p>
<p>For this example, we arbitrarily choose <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-eae7bb719d85b520859b4efcdb2423f3_l3.png" class="ql-img-inline-formula " alt="&#120;&#95;&#123;&#49;&#50;&#125;&#32;&#61;&#32;&#49;" title="Rendered by QuickLaTeX.com" height="19" width="66" style="vertical-align: -4px;"/>, such that <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-71e71de9bed7d8d8c8b2268d53e98c33_l3.png" class="ql-img-inline-formula " alt="&#120;&#95;&#123;&#49;&#49;&#125;&#61;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="19" width="82" style="vertical-align: -4px;"/>. Therefore, the eigenvector that corresponds to eigenvalue <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-1b6489b3ba211bcae4e11ed33cd40d75_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#49;&#32;&#61;&#32;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="19" width="73" style="vertical-align: -4px;"/> is</p>
<p class="ql-center-displayed-equation" style="line-height: 51px;"><span class="ql-right-eqno"> (10) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-750ab155a0cb7a251a9a730f899fa4e6_l3.png" height="51" width="105" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#118;&#101;&#99;&#123;&#118;&#125;&#95;&#49;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#45;&#49;&#32;&#92;&#92;&#32;&#49;&#32;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<h2>Calculating the second eigenvector</h2>
<p>Calculations for the second eigenvector are similar to those needed for the first eigenvector;<br />
We now substitute eigenvalue <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-0eb3579cfe7e895b8986141810327dcf_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#50;&#61;&#52;" title="Rendered by QuickLaTeX.com" height="18" width="58" style="vertical-align: -3px;"/> into equation (<a href="#id3583665669">1</a>), yielding:</p>
<p class="ql-center-displayed-equation" style="line-height: 51px;"><span class="ql-right-eqno"> (11) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-4405b5dcc9364e191550b259ee786731_l3.png" height="51" width="231" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#50;&#38;&#51;&#92;&#92;&#50;&#38;&#49;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#120;&#95;&#123;&#50;&#49;&#125;&#92;&#92;&#120;&#95;&#123;&#50;&#50;&#125;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#61;&#32;&#52;&#32;&#42;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#120;&#95;&#123;&#50;&#49;&#125;&#92;&#92;&#120;&#95;&#123;&#50;&#50;&#125;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Written as a system of equations, this is equivalent to:</p>
<p class="ql-center-displayed-equation" style="line-height: 51px;"><span class="ql-right-eqno"> (12) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-1b3e60a4a1f4deb124f3057544909434_l3.png" height="51" width="195" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#92;&#108;&#101;&#102;&#116;&#92;&#123; &#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#108;&#114;&#125; &#50;&#120;&#95;&#123;&#50;&#49;&#125;&#32;&#43;&#32;&#51;&#120;&#95;&#123;&#50;&#50;&#125;&#32;&#61;&#32;&#52;&#120;&#95;&#123;&#50;&#49;&#125;&#92;&#92; &#50;&#120;&#95;&#123;&#50;&#49;&#125;&#32;&#43;&#32;&#120;&#95;&#123;&#50;&#50;&#125;&#32;&#61;&#32;&#52;&#120;&#95;&#123;&#50;&#50;&#125; &#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125; &#92;&#114;&#105;&#103;&#104;&#116;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Solving the first equation as a function of <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-413ecbc275b9fdd5f2b4d8ea66360485_l3.png" class="ql-img-inline-formula " alt="&#120;&#95;&#123;&#50;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="27" style="vertical-align: -4px;"/> resuls in: </p>
<p class="ql-center-displayed-equation" style="line-height: 44px;"><span class="ql-right-eqno"> (13) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3080c6b78e3d7b7cb8ea390a77d4c950_l3.png" height="44" width="100" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#120;&#95;&#123;&#50;&#50;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#51;&#125;&#123;&#50;&#125;&#120;&#95;&#123;&#50;&#49;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>We then arbitrarily choose <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-f7a14402224c1d1440ed8ef030362f24_l3.png" class="ql-img-inline-formula " alt="&#120;&#95;&#123;&#50;&#49;&#125;&#61;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="67" style="vertical-align: -4px;"/>, and find <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-37b1bac871a4279c4a118181ba22808b_l3.png" class="ql-img-inline-formula " alt="&#120;&#95;&#123;&#50;&#50;&#125;&#61;&#51;" title="Rendered by QuickLaTeX.com" height="18" width="67" style="vertical-align: -3px;"/>. Therefore, the eigenvector that corresponds to eigenvalue <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-a8e1382a3ac364fffbadd637d326da6a_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#50;&#32;&#61;&#32;&#52;" title="Rendered by QuickLaTeX.com" height="18" width="58" style="vertical-align: -3px;"/> is</p>
<p class="ql-center-displayed-equation" style="line-height: 51px;"><span class="ql-right-eqno"> (14) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-388e29a06781d5b817855b294db4ae09_l3.png" height="51" width="89" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#118;&#101;&#99;&#123;&#118;&#125;&#95;&#50;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#51;&#32;&#92;&#92;&#32;&#50;&#32;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<h2>Conclusion</h2>
<p>In this article we reviewed the theoretical concepts of eigenvectors and eigenvalues. These concepts are of great importance in many techniques used in computer vision and machine learning, such as dimensionality reduction by means of PCA, or face recognition by means of EigenFaces.</p>
<p><strong>If you&#8217;re new to this blog, don&#8217;t forget to subscribe, or <a href="https://twitter.com/vincent_spruyt" title="Follow me on Twitter!" target="_blank">follow me on twitter</a>!</strong><br />


<!-- Form created by Optin Forms plugin by Codeleon: create beautiful optin forms with ease! -->
<!-- http://codeleon.com/products/optin-forms/ -->
<div id="optinforms-form5-container" ><form method="post" target="_blank" action="http://visiondummy.us10.list-manage.com/subscribe/post?u=c435905e10ead915f3917d694&id=bbdfb33a9f"><div id="optinforms-form5" style="background:#ffffff;"><div id="optinforms-form5-container-left"><div id="optinforms-form5-title" style="font-family:News Cycle; font-size:24px; line-height:24px; color:#fd4326">JOIN MY NEWSLETTER</div><!--optinforms-form5-title--><input type="text" id="optinforms-form5-name-field" name="FNAME" placeholder="Enter Your Name" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000000" /><input type="text" id="optinforms-form5-email-field" name="EMAIL" placeholder="Enter Your Email" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000000" /><input type="submit" name="submit" id="optinforms-form5-button" value="SUBSCRIBE" style="font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; background-color:#fd4326" /></div><!--optinforms-form5-container-left--><div id="optinforms-form5-container-right"><div id="optinforms-form5-subtitle" style="font-family:Georgia; font-size:16px; color:#444444">Receive my newsletter to get notified when new articles and code snippets become available on my blog!</div><!--optinforms-form5-subtitle--><div id="optinforms-form5-disclaimer" style="font-family:Georgia, Times New Roman, Times, serif; font-size:14px; color:#727272">We all hate spam. Your email address will not be sold or shared with anyone else.</div><!--optinforms-form5-disclaimer--></div><!--optinforms-form5-container-right--><div class="clear"></div></div><!--optinforms-form5--><div class="clear"></div></form></div><!--optinforms-form5-container--><div class="clear"></div>
<!-- / Optin Forms -->

<style type='text/css'></style></p>
<p>The post <a rel="nofollow" href="https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/">What are eigenvectors and eigenvalues?</a> appeared first on <a rel="nofollow" href="https://www.visiondummy.com">Computer vision for dummies</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk: enhanced
Database Caching 2/6 queries in 0.005 seconds using disk
Object Caching 823/833 objects using disk

 Served from: www.visiondummy.com @ 2026-04-08 05:50:26 by W3 Total Cache -->