<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Linear Algebra Basics - Medium]]></title>
        <description><![CDATA[Notes on Linear Algebra. - Medium]]></description>
        <link>https://medium.com/linear-algebra-basics?source=rss----a90574cf0942---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Linear Algebra Basics - Medium</title>
            <link>https://medium.com/linear-algebra-basics?source=rss----a90574cf0942---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 10:23:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/linear-algebra-basics" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Matrix multiplication]]></title>
            <link>https://medium.com/linear-algebra-basics/matrix-multiplication-554cf06a725a?source=rss----a90574cf0942---4</link>
            <guid isPermaLink="false">https://medium.com/p/554cf06a725a</guid>
            <category><![CDATA[matrix]]></category>
            <category><![CDATA[linear-algebra]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Fri, 11 Jan 2019 14:02:40 GMT</pubDate>
            <atom:updated>2019-01-11T14:02:39.979Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>IT IS A WHOLE NEW AREA ASIDE FROM MATRICES BASIC OPERATIONS</strong>.</p><p>It’s very difficult to make sense of it. But mathematicians just somehow make it work, it then is a Human defined operation, it makes no sense but you just have to deal with it. <br>If you just need to solve the problem, you only need 5 minutes to get it around, and then you can skip all these below. <br>But if you&#39;d like to understand it, then prepare yourself for a couple of hours or days on this.</p><blockquote><em>It’s necessary to make you confused with the operation below. Because that’s most teachers start with to teach you how to multiply matrices. Don’t worry, we’re to skip this one and find a better perspective to solve it.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/0*ahyuWh7aNA4_T8PF.png" /></figure><p><a href="https://www.khanacademy.org/math/precalculus/precalc-matrices/multiplying-matrices-by-matrices/a/multiplying-matrices">Refer to Khan academy article: Multiplying matrices</a><br><a href="https://www.youtube.com/watch?v=LyGKycYT2v0&amp;list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab&amp;index=10">Refer to 3Blue1Brown: Dot products and duality</a><br><a href="https://www.mathsisfun.com/algebra/matrix-multiplying.html">Refer to maths is fun: How to Multiply Matrices</a></p><p>This topic is very easy to use but very difficult to understand! <br>But I rather to understand it instead of just memorising it. <br>So this is the <strong>Learning path</strong> of this topic:</p><ol><li>Dot product</li><li><strong>Linear transformations</strong></li><li>Matrix-vector product</li><li>Matrix-matrix product</li></ol><h3>Understand Matrix multiplication</h3><p>There’re so many different ways to understand it, to make sense of it, because it’s so hard to understand.</p><p>The major fond of ways to understand are:</p><ul><li>Through Matrix transformation</li><li>Through Real-life example</li><li>~Through Algebraic methods~</li></ul><p>Although Real-life example makes sense easily, but it aren&#39;t gonna help solving problems well.<br>So Matrix transformation is the ultimate way to understand Matrix multiplications.<br>And it proved that it is the best way for that, and for all core ideas of Linear Algebra.</p><p>Before we start, let’s make things clear:</p><ul><li>Dot product: Vector * Vector</li><li>Matrix-vector product: Matrix * Vector</li><li>Matrix-Matrix product: Matrix * Matrix</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/0*LzAxcvjK4kXA3o8V.png" /></figure><p>Refer to Khan lecture video: <a href="https://www.khanacademy.org/math/linear-algebra/matrix-transformations/linear-transformations/v/matrix-vector-products-as-linear-transformations">Matrix vector products as linear transformations</a></p><blockquote><em>In the GPU of a computer,<br></em><strong><em>“ALL THE GRAPHIC PROCESSORS ARE JUST HARD-WIRED MATRIX MULTIPLIERS! ALL THEY DO IS JUST MULTIPLYING MATRICES!” — SAL KHAN</em></strong></blockquote><h3>Linear transformation</h3><blockquote><em>There’re so many different ways to understand Matrix Multiplications, <br>and </em><strong><em>Linear Transformations</em></strong><em> is the best and probably the only one makes sense and perfect intuition to you, i.e. it might be the only chance to understand it after all.</em></blockquote><p><strong>LINEAR TRANSFORMATION IS THE VERY KEY TO OPEN UP ALL GETES IN LINEAR ALGEBRA, BECAUSE IT MAKES PERFECT SENSE OF MATRIX MULTIPLICATION.</strong></p><p>To understand matrix multiplication, Linear Transformation is the very first thing you want to learn. It&#39;s fairly important and can&#39;t get away with.</p><blockquote><em>Linear transformation is a special kind of Transformation, which deals with </em><em>vectors.</em></blockquote><p>Need to mention that, 3Blue1Brown has done well on build intuition on this topic:<br>Refer to 3Blue1Brown’s video: <a href="https://www.youtube.com/watch?v=kYB8IZa5AuE&amp;list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab&amp;index=4">Linear transformations and matrices</a><br>Refer to the same video: <a href="https://youtu.be/kYB8IZa5AuE?t=3m47s">How does linear transformation work on unit vectors</a><br>Refer to 3Blue1Brown’s video: <a href="https://www.youtube.com/watch?v=rHLEWRxRGiM&amp;list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab&amp;index=6">Three-dimensional linear transformations</a><br>Refer to 3Blue1Brown’s video: <a href="https://www.youtube.com/watch?v=XkY2DOUCWMU&amp;index=5&amp;list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab">Matrix multiplication as composition</a></p><blockquote><em>“Matrices give us </em><strong><em>a language</em></strong><em> to describe these transformations, where the columns represent those coordinates. <br>And matrix-vector multiplication is just a way to compute what that transformation does to a given vector. <br>Every time you see a matrix, you can interpret it as a certain transformation of space. <br>Once you digest the idea, you’re in a great position to understand the linear algebra deeply. <br></em><strong><em>Almost all of the topics in linear algebra will become easy to understand once you start thinking about matrices as transformations of space.</em></strong><em>” — 3Blue1Brown</em></blockquote><p><strong>YOU JUST HAVE TO MEMORISE THIS EQUATION AND GET THE IDEA. THAT IS GONNA HELP YOU OUT FROM ALL THE IDEAS AND PROBLEMS IN LINEAR ALGEBRA.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/0*jCX7MVNQeXBcy_B5.png" /></figure><h3>Change the basis</h3><blockquote><em>Changing basis is the very core of Linear Transformation. Every single move is based on this.</em></blockquote><p>Remember a vector (a, b) could also present in unit vector form as v = ai + bj,<br>and unit vectors are i = (1, 0) &amp; j = (0, 1).</p><p>If we want to transform a vector, like move, flip, rotate, scale, the thing we&#39;ll do is:<br><strong>TO CHANGE THE UNIT VECTOR </strong><strong>i AND </strong><strong>j</strong>.</p><p>For example, there’s a vector v = (-1, 2), and it can present as v = -1i + 2j, then we&#39;re to do some movement to it:</p><ul><li>Move: We let unit vector i = (100, 0), then the vector moves to the right becomes (-100, 2).</li><li>Rotate: we let unit vector i = (0, 1) and j = (-1, 0), then the vector rotates 90° becomes (-2, -1).</li></ul><p><strong>THAT’S THE MAGIC!!</strong></p><p>By telling where the unit vectors are to go, we can create a pattern, a mapping rule, so that every vector uses this map, this rule, this pattern will have the same transformation!</p><p>Another example: <br>Assume there’s a vector v=(5,7), and let the unit vector i=(3,-2) and j=(2,1), and present this <strong>TRANSFORM PATTERN</strong> as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/172/0*19Qh0DE8tXqJdzUT.png" /></figure><p>And we present this Applying a transformation to a vector in the form below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/0*79BHGo80i-rW7HA1.png" /></figure><p><strong>SO WHENEVER YOU ENCOUNTER MATRIX MULTIPLICATION AGAIN, NEVER READ IT AS TWO VECTORS OR TWO MATRICES MULTIPLYING TOGETHER!</strong></p><h3>How to interpret a Matrix Multiplication</h3><p>There’re only TWO part of this matrix multiplication:</p><ul><li>The Graph: the 1st on right item.</li><li>The Rules: All the rest Matrices on the left of The Graph.</li></ul><p>The Graph could be one point (vector) or many points (vectors), e.g.:</p><ul><li>A point: (2,3)</li><li>A triangle: [ (3,0) (0,4) (3,4) ]</li><li>A rectangle: [ (3,0) (3,4) (0,4) (0,0)]</li><li>Any shape in any dimension…..</li></ul><p>SO ALL YOU NEED TO DO, IS JUST TO APPLY THOSE RULES ONE BY ONE, LEFT BY RIGHT, AND GET A NEW GRAPH!!!</p><p>For example, we apply two transform rules to a vector (x, y):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/0*ZAa-PVh4sP7Ggn5K.png" /></figure><p>It’s exactly same with the function principles: Shear( Rotate(x, y) ).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/0*HqI8k8t0VhzSLwb9.png" /></figure><h3>Break up the Matrices with its Geometric meaning</h3><p>In the transform rule as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/182/0*uFz0TAZC1oYPDJUH.png" /></figure><p><strong>WE HAVE TO BREAK THE MATRICES INTO SINGLE PARTS BEFORE WE DO THE CALCULATION.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/0*pXjXjs0TgR2cpciv.png" /></figure><p>And since we made the rule for i &amp; j, so let&#39;s apply the unit vector to the Graph:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/0*6MhsXzSRs1LiG6Rn.png" /></figure><p>Note that:</p><ul><li>The original graph is v = 5i + 7j, so after applying the new rule of i &amp; j, we get:</li></ul><p>v = 5(3,-2) + 7(2,1)</p><ul><li>And now we could do the Vector multiply a scalar method, to get this:</li></ul><p>v = (15,-10) + (14,7)</p><ul><li>Then we could do Add two vectors:</li></ul><p>v = (19, -3)</p><ul><li>So after applying the transformation rule, we successfully transformed the vector to a new position:<br>(19, -3)</li></ul><h3>Example</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/0*e5sDvfcTVRl1_nrS.png" /></figure><p>Solve:</p><ul><li>It seems a Matrix Multiplication problem</li><li>First we need to form the original matrix by identifying all vertices:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/167/0*eDqhon6GN3XKBSzW.png" /></figure><ul><li>Transform the matrix by multiplying the Coordinate Matrix:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/0*2Ow5BMqdgPH41aJ6.png" /></figure><ul><li>Draw it out by the result matrix</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=554cf06a725a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linear-algebra-basics/matrix-multiplication-554cf06a725a">Matrix multiplication</a> was originally published in <a href="https://medium.com/linear-algebra-basics">Linear Algebra Basics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Matrices intro]]></title>
            <link>https://medium.com/linear-algebra-basics/matrices-intro-66e42e5612ce?source=rss----a90574cf0942---4</link>
            <guid isPermaLink="false">https://medium.com/p/66e42e5612ce</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[matrix]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Fri, 11 Jan 2019 14:02:27 GMT</pubDate>
            <atom:updated>2019-01-11T14:02:27.842Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Matrices are just a </em><strong><em>rectangle array of numbers</em></strong><em>.<br>Prerequisites: </em><em>Systems of equations</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/248/0*-GabfKY9yhbT4hsT.png" /></figure><p>Matrices could be seen as a group of informations arranged <strong>IN A CERTAIN WAY</strong>.<br><strong>IT’S SO SO SO SO SO EASIER TO THINK IT AS A SYSTEM OF EQUATIONS.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*4cODZT_cvmTpyXEC.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/0*SRm30WVvCTHerUX_.png" /></figure><h3>Matrix row operations &amp; Systems of equations</h3><blockquote><em>It’s very SAME with operations of </em><em>systems of equations.</em></blockquote><p><a href="https://www.khanacademy.org/math/precalculus/precalc-matrices/elementary-matrix-row-operations/a/matrix-row-operations">Refer to Khan academy article: Matrix row operations</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/0*BSUZcTKPSPEeDBeL.png" /></figure><p>There’re different types of row operations:</p><ul><li>Switch any two rows</li><li>Multiply a row by a nonzero constant</li><li>Add one row to another</li></ul><p>They all relate to the operations of systems of equations:</p><h3>Switching any two rows:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/0*bHqiJYbBBo8W_hbM.png" /></figure><h3>Multiply a row by a nonzero constant:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/0*gjbAy4b8OJ6O64bV.png" /></figure><h3>Add one row to another:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*-XDBFLjeeyiDIVcY.png" /></figure><h3>Solve system equations using Matrix</h3><blockquote><em>it’s also called the </em><strong><em>Row-Echelon form and Gaussian elimination</em></strong><em>.</em></blockquote><p><a href="https://www.khanacademy.org/math/precalculus/precalc-matrices/modal/v/matrices-reduced-row-echelon-form-2">Khan lecture: Reduced row echelon form</a><br><a href="https://www.ck12.org/c/algebra/row-operations-and-row-echelon-forms/lesson/Row-Operations-and-Row-Echelon-Forms-PCALC/?collectionCreatorID=3&amp;conceptCollectionHandle=algebra-%3A%3A-row-operations-and-row-echelon-forms&amp;collectionHandle=algebra">Refer to Ck-12: Row Operations and Row Echelon Forms</a><br><a href="https://youtu.be/Ncu9Pks3AJQ?t=29m54s">Example of “RREF”: Lec 01 — Linear Algebra | Princeton University</a></p><blockquote><em>It’s a so serious problem in all the first lesson of Linear algebra courses. It seems simple yet not easy to solve by yourself. You need to understand all the steps of how to do a </em><em>REF or </em><em>RREF, aka. </em><em>Reduce Row Echelon Form.</em></blockquote><p>The important note to apply the RREF is to know how the Pivot, or the Cursormoves. <br>It&#39;s more efficient to understand it with 1 or 2 practice rather than see notes here.</p><p>First we need to rewrite the system of equation to matrix form:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/0*OmfAjYcMD-FPjg1c.png" /></figure><p>Then by row operations, we need to achieve this kind of result, which is also called <strong>Reduced Row Echelon Form</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/0*nFVhDKigaOMGFMhD.png" /></figure><p>It means we eliminated all other variables and only left 1 variable in one equation, which is called <strong>Identity Matrix</strong>. Then you could put back the number to the system of equations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66e42e5612ce" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linear-algebra-basics/matrices-intro-66e42e5612ce">Matrices intro</a> was originally published in <a href="https://medium.com/linear-algebra-basics">Linear Algebra Basics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cross product]]></title>
            <link>https://medium.com/linear-algebra-basics/cross-product-7092b1715495?source=rss----a90574cf0942---4</link>
            <guid isPermaLink="false">https://medium.com/p/7092b1715495</guid>
            <category><![CDATA[vector]]></category>
            <category><![CDATA[linear-algebra]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Fri, 11 Jan 2019 14:01:53 GMT</pubDate>
            <atom:updated>2019-01-11T14:01:52.915Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Actually the </em><em>cross product is very very very limited in use, and as fairly often as the </em><em>dot product.</em></blockquote><p><strong>So don’t waste time on this unless having certain use of it.</strong></p><p><strong>REMEMBER: A CROSS PRODUCT ONLY HAS USE IN 3-DIMENSIONS, AND ORDER MATTERS, AND GIVES YOU A NEW VECTOR.</strong></p><p>List it again:</p><ul><li>Only work for 3-Dimensions</li><li>Order matters</li><li>Gives a new vector</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/235/0*qBKm0yIcclmdyl-3.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/0*QDhBcPABADJXszpG.png" /></figure><p>Right-handed system:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/263/0*eM9N7prN8VwGBSWZ.png" /></figure><p>-</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7092b1715495" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linear-algebra-basics/cross-product-7092b1715495">Cross product</a> was originally published in <a href="https://medium.com/linear-algebra-basics">Linear Algebra Basics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vectors multiplication]]></title>
            <link>https://medium.com/linear-algebra-basics/vectors-multiplication-a6f770f08dd9?source=rss----a90574cf0942---4</link>
            <guid isPermaLink="false">https://medium.com/p/a6f770f08dd9</guid>
            <category><![CDATA[linear-algebra]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[vector]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Fri, 11 Jan 2019 14:01:40 GMT</pubDate>
            <atom:updated>2019-01-11T14:01:40.593Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Vector multiplication is FUNDAMENTAL skill to solve </em><em>Matrices multiplication.</em></blockquote><p><strong>THE VERY FIRST THING TO DO WITH A </strong><strong>VECTOR MULTIPLICATION OR </strong><strong>MATRIX MULTIPLICATION, IS TO FORGET EVERYTHING ABOUT </strong><strong>ARITHMETIC MULTIPLICATION !!</strong><br>OTHERWISE, YOU WILL FALL INTO AN ENDLESS CONFUSION!</p><p>Just to know, multiplication of vectors or matrices, <strong>AREN’T</strong> really multiplication, but just look like that. You can see them as <strong>operations to get SOMETHING</strong>.</p><p>There’re two operations are called multiplication for vectors:</p><ul><li>Dot product: express as V₁ · V₂, named for the dot symbol. It&#39;s meant to get the Product of two magnitudes.</li><li>Cross product: express as V₁ × V₂, named for the cross symbol. It&#39;s meant to get a new vector.</li></ul><blockquote><em>The </em><em>cross product is very very very limited in use, and NOT as fairly often in use as the </em><em>dot product. So don&#39;t waste time on this unless having certain use of it.</em></blockquote><h3>Boosting</h3><p><strong>IT’S THE VERY CORE SENSE OF MAKING A MULTIPLICATION OF VECTORS OR MATRICES.</strong></p><p>Multiplication <strong>ISN’T</strong> just Repeat counting in Arithmetic anymore.<br>Not 4×3 = 4+4+4 anymore!</p><p>It’s rather kind of Growth, or empowerment, or <strong>boosting</strong>.<br>We&#39;d say we tripled 4, or say number 4 grow with speed of 3, or to say number 4 grows with a boosting of 3.<br>Whatever you&#39;d say, you get the idea.<br>Multiplication a process of double, triple, quadruple ....</p><p><strong>JUST TO REMEMBER: FORGET ABOUT ARITHMETIC MULTIPLICATION, ALWAYS SEE MULTIPLICATION AS BOOSTING.</strong></p><h3>Dot product</h3><p><strong>REMEMBER: A DOT PRODUCT DOESN’T GIVE YOU A VECTOR, BUT ONLY A NUMBER, A SCALAR, A PRODUCT OF TWO MAGNITUDES.</strong></p><blockquote><em>The purpose:<br>It is </em><strong><em>NOT</em></strong><em> to get a new vector, and </em><strong><em>NOT</em></strong><em> to </em><em>Reduce dimension, <br>its only purpose </em><strong><em>IS</em></strong><em> to get a </em><strong><em>quantity</em></strong><em>, a magnitude, a number!</em></blockquote><p><a href="https://www.khanacademy.org/science/physics/magnetic-forces-and-magnetic-fields/electric-motors/v/the-dot-product">For an intuitive video refer to Khan academy physics: Dot Product.</a><br><a href="https://betterexplained.com/articles/vector-calculus-understanding-the-dot-product/">For more explains in detail: Vector Calculus: Understanding the Dot Product</a><br><a href="https://www.mathsisfun.com/algebra/vectors-dot-product.html">Maths is fun: dot product.</a><br><a href="https://www.youtube.com/watch?v=LyGKycYT2v0&amp;list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab&amp;index=10">3Blue1Brown: Dot products and duality | Essence of linear algebra</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/0*YYvWTLnj18Ub3W-A.gif" /></figure><h3>Understand Dot product in business</h3><p>Refer to _Intro to linear algebra by Gilbert Strang: 1.2_.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/0*jMH-x2ZqYDWULNrl.png" /></figure><h3>Understand Dot product in physics</h3><blockquote><em>It makes lots more sense to think </em><em>dot product in </em><strong><em>physics</em></strong><em> way than maths algebraic way.</em></blockquote><p><strong>Just to think </strong><strong>Two forces &quot;a &amp; b&quot; are </strong><strong>pulling a box,</strong> <br>so how much power did it pulled on the direction of a, or how much on the direction of b?</p><h3>Vectors on same direction</h3><p>Let’s make it easier before digging in:<br>assume there’s no angle, Two forces &quot;a &amp; b&quot; are pulling to the same way, the same direction,<br>so how much power would it be pulled?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/188/0*toyoWgFMv6fNGAY8.png" /></figure><p>Well, the force a &amp; b working together, it&#39;s a process of <strong>Boosting</strong> the energy! <br><strong>It&#39;s not ADDING together anymore</strong>, it&#39;s BOOSTING!<br>Let&#39;s say the force a has 3 units power, b has 6 units power. <br>So every 1 unit power a pulls, b will pull 2 units power.<br>Then it make sense:<br>The total power pulling the thing would be 3 · 6 = 18 units</p><h3>Vectors on different direction</h3><p>So the Two forces AREN&#39;T pulling the box at the same direction anymore, how much power did it pulled on the direction of a, or how much on the direction of b?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/185/0*brEwQB9o69Kl42ZB.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/0*bDM4shLsC4v0omy0.gif" /></figure><p>Let’s think about how much power it’s pulling on the direction of b.<br>Since a is pulling on a bit <strong>wrong way</strong>, so <strong>a&#39;s power ISN&#39;T 100% working on </strong><strong>b&#39;s way</strong>.<br>How much power left there?<br>It depends on the angle.<br>So to calculate how much left, we use |a| × cos(θ), <br>and we got a <strong>PROJECTION</strong> or a reflection or a <strong>shadow</strong> of a on b! <br>Then it become like this picture again:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/188/0*YE0EGeYZzFPxeg5W.png" /></figure><p>How amazing it is!<br>And now we could <strong>Boost</strong> the power on b: |b| × |a|×cosθ</p><h3>Ways of calculating dot product</h3><p>There’re two ways to calculate the dot product (I made up the names):</p><ul><li>Shadow Boost:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/121/0*r0skYpsvRNxBK_rt.png" /></figure><ul><li>Axes Boost:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/134/0*4x1iukIIiG0nOA9J.png" /></figure><p>Result of two ways are <strong>SAME</strong>.</p><blockquote><em>Remember: Boosting is not working when two vectors are </em><strong><em>Perpendicular</em></strong><em>, which product is </em><em>0.</em></blockquote><h3>Shadow Boost</h3><blockquote><em>We reflect one vector on another one, then </em><strong><em>Boost</em></strong><em> the energy.</em></blockquote><p>Intuition:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/0*sg3pDb4P1SGQfP4u.png" /></figure><h3>Axes Boost</h3><blockquote><em>We break two vectors to </em><em>X-axis and </em><em>Y-axis, and BOOST on each axis.</em></blockquote><p>Easier to remember the formula is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/0*SBWY8O_jL8z6o4XB.png" /></figure><p>Intuition:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/0*ndPVj7-cVz6tpR2S.png" /></figure><h3>Examples:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/0*eJCJ6Y7xd3PjWXDi.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/0*MLrU-Ehni6ilxP9J.png" /></figure><h3>Example</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/214/0*7b1HUzmBVFpmvXAP.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/0*j4ZBdOK9WokqY24Y.png" /></figure><h3>Dot product &amp; Symmetry</h3><blockquote><em>Dot product has a relationship with Symmetry.</em></blockquote><p><a href="https://www.coursera.org/learn/linear-algebra-machine-learning/lecture/kI0DB/introduction-einstein-summation-convention-and-the-symmetry-of-the-dot-product">Refer to lecture of Imperial College London: Einstein summation convention and the symmetry of the dot product</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/0*KzEO76xVobw7yOKs.png" /></figure><p>-</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6f770f08dd9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linear-algebra-basics/vectors-multiplication-a6f770f08dd9">Vectors multiplication</a> was originally published in <a href="https://medium.com/linear-algebra-basics">Linear Algebra Basics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vector span]]></title>
            <link>https://medium.com/linear-algebra-basics/vector-span-f90b989d712d?source=rss----a90574cf0942---4</link>
            <guid isPermaLink="false">https://medium.com/p/f90b989d712d</guid>
            <category><![CDATA[vector]]></category>
            <category><![CDATA[linear-algebra]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Fri, 11 Jan 2019 14:01:30 GMT</pubDate>
            <atom:updated>2019-01-11T14:01:29.755Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>It’s extending the </strong><strong>unit vector idea.</strong></p><p>Refer to famous visualisation of 3Blue1Brown’s video: <a href="https://www.youtube.com/watch?v=k7RM-ot2NWY&amp;t=0s&amp;list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab&amp;index=3">Linear combinations, span, and basis vectors</a></p><h3>R² and R³</h3><p>R² means a Real numbers 2D plane.<br>Usually the X/Y Axes plane is this one.</p><p>R³ means Real numbers 3D plane.<br>Usually the X/Y/Z Axes plane.</p><h3>Linear combinations (Vector Addition)</h3><blockquote><em>DEFINITION: The sum of </em><em>cv and </em><em>dw is a linear combination of </em><em>v and </em><em>w.</em></blockquote><p>Linear combinations means to add vectors together: v₁ + v₂ + v₃..... to get a new vector. Simple like that.</p><h3>Span of vectors</h3><blockquote><em>It’s the </em><strong><em>Set</em></strong><em> of all the </em><em>linear combinations of a number vectors.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/0*0zONz8yJE6yMr_IN.png" /></figure><pre># v, w are vectors<br>span(v, w) = R²</pre><pre>span(0) = 0</pre><p>One vector with a scalar, no matter how much it stretches or shrinks, <strong>it ALWAYS on the same line</strong>, because the direction or slope is not changing. So <strong>ONE VECTOR&#39;S SPAN IS A LINE.</strong></p><p>Two vector with scalars, we then <strong>COULD</strong> change the slope! So that we could get to any position that we want in the 2D plane, i.e., R².</p><p>Exceptions:</p><ul><li>span(0) = 0, it only stay at origin.</li><li>v = w, if two vectors are the same, or collinear, then it&#39;s still ONE vector.</li></ul><h3>Linearly dependent &amp; independent</h3><ul><li>Linear dependence: two vectors are <strong>COLLINEAR</strong>, means on the same line.</li><li>Linear independence: two vectors are <strong>NOT COLLINEAR</strong>, means they&#39;re not on the same line.</li></ul><p>Vectors (2, 3) and (4, 6) are the <strong>SAME VECTOR</strong>! <br>Because (4,6) = 2*(2,3), so it&#39;s just a scaled version of the first vector.</p><p>So we say the vectors (2, 3) and (4, 6) are <strong>DEPENDENT</strong>, because they&#39;re <strong>COLLINEAR</strong>.</p><p>Other than that, any two vectors are <strong>INDEPENDENT</strong>, if they&#39;re not <strong>NOT COLLINEAR</strong>.</p><h3>List of some linear combinations</h3><p>Let’s list some vector combinations:</p><ul><li>Zero Vector: span(0) = 0.</li><li>One vector: span(v) = a line.</li><li>Two vector: span(v₁, v₂) = R², if they&#39;re not collinear.</li><li>Three vector or more: span(v₁, v₂, v₃...) = R². Other than two vectors, are all <strong>REDUNDANT</strong>.</li></ul><p>In another word:<br><strong>IF ANY TWO VECTORS ARE INDEPENDENT, THEN OTHERS ARE ALL DEPENDENT.</strong></p><h3>How to calculate a linear combination&#39;s independency</h3><p><a href="https://www.youtube.com/watch?v=rQZD3RM9ic0">Refer to Adam Panagos: Linear Algebra Example Problems — Linearly Independent Vectors #1</a><br>[Refer to TheTrevTutor: [Linear Algebra] Linear Independence and Bases](<a href="https://www.youtube.com/watch?v=OLqc_rt7abI)">https://www.youtube.com/watch?v=OLqc_rt7abI)</a><br><a href="https://www.khanacademy.org/math/linear-algebra/vectors-and-spaces/linear-independence/v/span-and-linear-independence-example">Refer to Khan lecture: Span and linear independence example</a></p><blockquote><em>It’s important for knowing if a </em><em>linear combination can fill out a plane or space. <br>For example, if two vectors aren&#39;t independent, then it&#39;s just one vector, and can only draw a line. If three vectors aren&#39;t independent, then they&#39;re just two vectors, one is redundant, so they can only fill out a 2D plane instead of a 3D space.</em></blockquote><p>A linear combination is <strong>independent</strong>, <strong>iff</strong> it could satisfy this equation:</p><pre>c₁v₁ + c₂v₂ + c₃v₃ .... = 0</pre><p>c.. means the scalar for each vector, and you could change the scalar to any number, positive or negative.<br>Note that: c ≠ 0, and vectors are not all zeros.</p><p>Assume that there’s a linear combination of two vectors v₁ + v₂ + v₃, <br>with scalars it could be c₁v₁ + c₂v₂ + c₃v₃.<br>To verify whether it&#39;s dependent or independent, <br>we assume c₁v₁ + c₂v₂ + c₃v₃= (0,0,0) and solve for c₁, c₂, c₃:</p><ul><li>it’s <strong>independent</strong> &lt;=&gt; if c₁ = c₂ = c₃ = 0 <strong>all</strong> are zeros</li><li>it’s <strong>dependent</strong> &lt;=&gt; If c₁, c₂, c₃ <strong>at least one</strong> is NON-ZERO number</li></ul><p>Independent Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/0*POo3152ewg6x0poy.png" /></figure><p>Dependent Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/0*NtPpHHIsKLcGXvl1.png" /></figure><p>-</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f90b989d712d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linear-algebra-basics/vector-span-f90b989d712d">Vector span</a> was originally published in <a href="https://medium.com/linear-algebra-basics">Linear Algebra Basics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vector forms]]></title>
            <link>https://medium.com/linear-algebra-basics/vector-forms-fe7654fe3576?source=rss----a90574cf0942---4</link>
            <guid isPermaLink="false">https://medium.com/p/fe7654fe3576</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[vector]]></category>
            <category><![CDATA[linear-algebra]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Fri, 11 Jan 2019 14:01:13 GMT</pubDate>
            <atom:updated>2019-01-11T14:01:13.796Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://www.khanacademy.org/math/precalculus/vectors-precalc/magnitude-direction/a/vector-forms-review">Refer to Khan academy article.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/0*vA4EZLiscFlx52NP.png" /></figure><p>In Gilbert Strang’s _Intro to Linear Algebra_, it’s different point of view:</p><p>For row form or column form:</p><ul><li>Row form: v = (1, 1, -1)</li><li>Column form:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/115/0*t8_L6nZqRP-1GSyL.png" /></figure><blockquote><em>“The reason for the row form (in parentheses) is to save space. But v = (1,1, -1) is not a row vector! It is in actuality a column vector, just temporarily lying down. “</em></blockquote><p>For representing method:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/0*SoJFXvLesJDWXWkx.png" /></figure><h3>Unit vectors</h3><blockquote><em>Simply say, a </em><em>unit vector is just a vector which length is </em><em>1. Kinda like the unit circle idea.<br>It&#39;s also called </em><em>Engineering notation, or the </em><em>basis vector.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/0*huCUxEfk1c_VZI67.png" /></figure><p>Which means, it could lie on axis or in between.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/221/0*-KnLjG4AIAvnD9o2.png" /></figure><p><strong>What’s it for?</strong><br>Basically just like the unit circle, make things easier to calculate angles or length or so. <br>Actually it’s working together with unit circle and all other trigonometric knowledges.<br>so, <br><strong>UNIT VECTOR IS RATHER A TRIGONOMETRIC WAY TO DEAL WITH VECTORS.</strong><br>Easier to think about it, is to think about the Similar graph knowledge in the Dilation section.</p><h3>Standard Basis Vectors &amp; Unit vector form</h3><blockquote><em>It’s also called </em><em>Unit Basis Vectors.<br></em><em>Unit vector is easy, but </em><em>unit vector form needs your bit more effort to understand.</em></blockquote><p><strong>THIS FORM DOESN’T PRESENT VECTOR AS A POSITION ANYMORE, RATHER PRESENT IT AS HOW MUCH IT STRETCHES UNIT VECTORS, OR SAY PRESENT IT AS A SCALAR.</strong></p><p>Assume that there are <strong>TWO</strong> unit vectors, one vertical, one horizontal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/97/0*u7vQdc2Kbq9usurX.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/0*OG5NaL-ZNAvlrOIe.png" /></figure><h3>How to find a vector&#39;s unit vector</h3><blockquote><em>More intuitively to solve it just to draw it out and solve it with trigonometry.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/0*IPDV819C_cfW0zt3.png" /></figure><p>Example: Find the unit vector of vector (-8, 5)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/210/0*TKBm4ipwPFqJ1UoK.png" /></figure><h3>Convert between vector forms</h3><p><strong>HIGHLY RECOMMEND TO REVIEW THE COMPLEX NUMBER CONVERSION SKILLS, HAVING THE VERY SAME IDEA.</strong><br><a href="https://github.com/solomonxie/solomonxie.github.io/issues/44#issuecomment-379646389">Refer to previous note: complex number forms conversion skills.</a></p><h3>How to find the direction angle of a vector</h3><blockquote><em>It’s the very same problem of the topic </em><em>Inverse trig function.</em></blockquote><p><strong>NOT EASY! NEED TO CONSIDER LOTS OF CONDITIONS, LIKE QUADRANTS, POSSIBLE SOLUTIONS, PRINCIPLE SOLUTION AND SO. RECOMMEND TO REVIEW INVERSE TRIG FUNCTIONS.</strong></p><p><a href="https://github.com/solomonxie/solomonxie.github.io/issues/44#issuecomment-377686394">Refer to previous notes: Inverse Trigonometric equations.</a></p><p>Example: Find the direction angle of vector (-2, 5) between 0° to 360°.<br>Solve:</p><ul><li>tanθ = (-5/2)</li><li>θ₁ = -68.2</li><li>θ₂ = 180° + -68.2 = 111.8 because θ₁ is negative could use this trig identity.</li><li>Vector (-2, 5) is located on Quadrant-2,</li><li>So the answer is 111.8.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe7654fe3576" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linear-algebra-basics/vector-forms-fe7654fe3576">Vector forms</a> was originally published in <a href="https://medium.com/linear-algebra-basics">Linear Algebra Basics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vector & basic operations]]></title>
            <link>https://medium.com/linear-algebra-basics/vector-basic-operations-5f084ecee391?source=rss----a90574cf0942---4</link>
            <guid isPermaLink="false">https://medium.com/p/5f084ecee391</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[linear-algebra]]></category>
            <category><![CDATA[vector]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Fri, 11 Jan 2019 14:00:11 GMT</pubDate>
            <atom:updated>2019-01-11T14:00:11.781Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/0*zcidDaCCmJeD8y-9.png" /></figure><h3>What is a vector</h3><blockquote><em>Definition: vector is a </em><strong><em>MAGNITUDE</em></strong><em> with a </em><strong><em>DIRECTION</em></strong></blockquote><p>Notation:</p><ul><li>v as a vector.</li><li>|v| or ||v|| as its <strong>Magnitude</strong>, or <strong>Length</strong>, or <strong>Distance</strong>, or <strong>Absolute value</strong>, same idea</li><li><strong>Slope or angle</strong> as its <strong>Direction.</strong></li><li>(a, b) the two position there are called X-component &amp; Y-component.</li></ul><p>It’s not hard to understand the basic ideas of a vector, which consists of very basic knowledges form what we learned previously in high school:</p><ul><li>Magnitude of vector: is the same with calculating the <strong>distance of two points</strong></li><li>Direction of vector: is the same with calculating the <strong>slope of a line</strong>.</li></ul><h3>Distance vs. Displacement</h3><ul><li>Distance is a <strong>scalar</strong> (“3 km”)</li><li>Displacement is a <strong>vector</strong> (“3 km Southeast”)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/0*2E9j7hXqMLIQSOpT.png" /></figure><h3>Speed vs Velocity</h3><ul><li>Speed is how fast something moves.</li><li>Velocity is speed with a direction.</li></ul><h3>UNDERSTAND VECTOR&#39;S MOVEMENT</h3><p>Now we got a vector start from (-3,8) to the point (4, 5). <br>We say this vector has a magnitude ||v|| = √40 and has a direction to the bottom right.<br>But we could also represent the vector as only one point with two components: (7, -3).<br>Which has a <strong>HIDDEN INFORMATION</strong> that it start from the <strong>origin</strong> and direction is to the point (7, -3).<br>Are they different vectors? NO! They&#39;re the same vector, just starts at different places.</p><blockquote><em>Because </em><strong><em>vector doesn’t specify where it starts.</em></strong><em> A vector only means </em><em>A magnitude &amp; a direction.</em></blockquote><p>That’s why we could represent a vector in two ways:</p><ul><li>v is (-3,8) to (4, 5)</li><li>v = (7, -3)</li></ul><p><strong>IT’S VERY IMPORTANT TO UNDERSTAND THIS IDEA, SO THAT WE COULD FURTHER UNDERSTAND WHY WE COULD MOVE VECTORS, AND BY SO WE COULD DO SUMS AND MULTIPLICATIONS AND SO ON</strong></p><h3>Adding &amp; subtracting vectors</h3><blockquote><em>“Linear algebra is built on these operations </em><em>v + w and </em><em>cv: </em><strong><em>Adding vectors and multiplying by scalars.</em></strong><em>&quot; - Gilbert Strang</em></blockquote><p>Adding &amp; subtracting could be seen as a movement to a vector, or say how it travels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/0*DlRPZ4ATtaTabCPj.png" /></figure><p><a href="http://www.mathsisfun.com/algebra/vectors.html">Refer to Maths is fun.</a></p><ul><li>Adding vectors:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/0*ix9m-BeQS0x39LD7.png" /></figure><ul><li>Subtracting vectors: is just <strong>ADDING</strong> a <strong>NEGATIVE VECTOR</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/0*TrlXMOLnHROsx6dB.png" /></figure><h3>Understand vector&#39;s addition &amp; subtraction</h3><p>Refer to _Intro to Linear Algebra by Gilbert Strang: 1.1_.</p><p><strong>“You can’t add apples and oranges.”</strong><br>But you can add <strong>fruits</strong>!<br>Imagine you have one bag of fruits (3 apples, 4 oranges), and another bag of fruits (1 apple, 2 oranges).<br>So adding them together you will get one big bag of fruits (4 apples, 6 oranges),<br>from this big bag you could also split a smaller bag of fruits, and then you will call it subtraction.</p><p>A vector is the very idea of <strong>a bag of fruits</strong>.</p><h3>Scalar Multiplication</h3><blockquote><em>It’s the same with the section </em><em>DILATION or </em><em>Scaling in Geometry.</em></blockquote><p>Just for review of dilating a graph geometrically:<br>When you scale a graph by a factor:</p><ul><li>Every line of the graph scale by the SAME factor</li><li>Every line will be PARALLEL to its origin line.</li></ul><p><a href="https://github.com/solomonxie/solomonxie.github.io/issues/44#issuecomment-371067923">Refer to previous note: Transformation.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/0*9uqDnS-wKGnWbPFC.png" /></figure><p>-</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f084ecee391" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linear-algebra-basics/vector-basic-operations-5f084ecee391">Vector &amp; basic operations</a> was originally published in <a href="https://medium.com/linear-algebra-basics">Linear Algebra Basics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Matrix Transformation]]></title>
            <link>https://medium.com/linear-algebra-basics/matrix-transformation-75680d7039a7?source=rss----a90574cf0942---4</link>
            <guid isPermaLink="false">https://medium.com/p/75680d7039a7</guid>
            <category><![CDATA[linear-algebra]]></category>
            <category><![CDATA[matrix]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Thu, 10 Jan 2019 02:44:54 GMT</pubDate>
            <atom:updated>2019-01-10T02:44:53.899Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>It’s a subset of </em><em>Linear transformation, just with </em><em>higher dimension rules &amp; </em><em>multiple points graph multiplying together.</em></blockquote><p><strong>YOU BREAK </strong><strong>THE RULE IN TO DIFFERENT UNIT VECTORS i, j, k... AND BREAK THE GRAPH INTO DIFFERENT POINTS, AND APPLY EACH i, j, k RULES TO EACH POINT.</strong></p><h3>Size of Matrix multiplication</h3><p>Unlike Vector multiplication gives you only a number, Matrix multiplicationgives you another Matrix, but a <strong>SHRINK-SIZED</strong> Matrix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/0*9lZE27bT-QY2vKY2.png" /></figure><p>In General:<br>To multiply an m×n matrix by an n×p matrix, the ns must be the same, <br>and the <strong>RESULT</strong> is an m×p matrix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/263/0*A24bU2cg_PZT_9X4.png" /></figure><h3>Example: 3x2 Matrix with 2x2 Matrix</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/0*Iwu_InTLjX15B_MX.png" /></figure><p>Solve:</p><ul><li>First we know it’s a 3x2 Matrix multiply a 2x2 Matrix, it’s valid, and the new Matrix’s size would be 3x2.</li><li>And then we multiply each by each according to their <strong>dimension</strong>:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/0*e524mYBOY9aYK65Y.png" /></figure><ul><li>We get the answer:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/0*h3dapyfDs3hai1hp.png" /></figure><h3>Example: 2x2 Matrix with 2x3 Matrix</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/0*nwwd5eevJNaKiYUD.png" /></figure><p>Solve:</p><ul><li>It’s will get a 2x3 new Matrix (just for intuition), then we get the answer:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/0*O-uDtByVEyobMGYz.png" /></figure><h3>More examples</h3><p>Refer to <a href="https://www.symbolab.com/solver/matrix-vector-calculator/%5Cbegin%7Bpmatrix%7D-1%5C%5C%204%5C%5C%204%5Cend%7Bpmatrix%7D%5Ccdot%5Cbegin%7Bpmatrix%7D0%26-2%5Cend%7Bpmatrix%7D">Symbolab the Online math solver</a>, which offers answers of any matrices operation step by step.</p><h3>Common Matrix Transformations</h3><blockquote><em>One single matrix to present the movement? Yes!</em></blockquote><p><a href="https://www.mathplanet.com/education/geometry/transformations/transformation-using-matrices">Refer to Math planet: Transformation using matrices</a></p><h3>Rotation of Shapes</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/0*YwerWX9uLyS7S85r.png" /></figure><p><a href="https://www.desmos.com/matrix">▶ Use the tool: Desmos Matrix Calculator</a></p><h3>Example: Transform Graphs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/0*VYXSYzFm629ZTh7w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/0*bs3SntbLr-vrgtCy.png" /></figure><p>Solve:</p><ul><li>Just to list all points of this graph:</li></ul><p>(-4,8), (-8,-4), (-4,-4), (0,4)</p><ul><li>Arrange points to a Matrix:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/117/0*KUNn5ZV2VKLqy9hc.png" /></figure><ul><li>Apply the Matrix R to the Graph’s matrix. Do the math.</li></ul><h3>Reflection of Shapes</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/0*3Nor5FC0LnBQfgOe.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/0*0-25_zsLxKH3JdxQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75680d7039a7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linear-algebra-basics/matrix-transformation-75680d7039a7">Matrix Transformation</a> was originally published in <a href="https://medium.com/linear-algebra-basics">Linear Algebra Basics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Composition of Matrix Multiplication]]></title>
            <link>https://medium.com/linear-algebra-basics/composition-of-matrix-multiplication-f36886f058d?source=rss----a90574cf0942---4</link>
            <guid isPermaLink="false">https://medium.com/p/f36886f058d</guid>
            <category><![CDATA[matrix]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[linear-algebra]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Thu, 10 Jan 2019 02:43:54 GMT</pubDate>
            <atom:updated>2019-01-10T02:43:54.490Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Composition of Matrix Multiplication means </em><strong><em>More than one linear transformations applies to a graph one by one.</em></strong></blockquote><p>**Although you can see two matrices multiplying together as a transform applying to a graph.<br>But actually sometime you can see it in slightly different perspective.**</p><p><a href="https://www.youtube.com/watch?v=XkY2DOUCWMU&amp;list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab&amp;index=5">Refer to 3Blue1Brown: Matrix multiplication as composition</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/0*ie6IPPkOBzTUysRL.png" /></figure><p>So extend from the equation above, we know that the transformation rules could <strong>Unite together as one</strong> and then apply it to the graph.<br>And here it comes, <strong>MATRICES MULTIPLICATION COULD ALSO REPRESENT TRANSFORM RULES UNITE TOGETHER AS A RESULT RULE, RATHER THAN ONE RULE WORK ON A GRAPH.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/0*Xqu2NHTqR9a4lBEs.png" /></figure><h3>Order matters!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/0*9RGj9MNQ5NGbSCo6.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f36886f058d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linear-algebra-basics/composition-of-matrix-multiplication-f36886f058d">Composition of Matrix Multiplication</a> was originally published in <a href="https://medium.com/linear-algebra-basics">Linear Algebra Basics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Determinant of Transformation]]></title>
            <link>https://medium.com/linear-algebra-basics/determinant-of-transformation-7619d01e7011?source=rss----a90574cf0942---4</link>
            <guid isPermaLink="false">https://medium.com/p/7619d01e7011</guid>
            <category><![CDATA[matrix]]></category>
            <category><![CDATA[linear-algebra]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Solomon Xie]]></dc:creator>
            <pubDate>Thu, 10 Jan 2019 02:43:01 GMT</pubDate>
            <atom:updated>2019-01-10T02:43:01.018Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s quite easy to calculate, and not too hard to understand what’s behind it.</p><blockquote><em>The </em><em>Determinant of a transformation is </em><strong><em>How much the AREA of the new Graph scaled.</em></strong></blockquote><p><strong>JUST TO REMEMBER: THE DETERMINANT IS ABOUT AREA OF THE GRAPH!</strong></p><p><a href="https://www.youtube.com/watch?v=Ip3X9LOh2dk&amp;index=7&amp;list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab&amp;t=0s">Refer to 3Blue1Brown: The determinant</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/0*UB2a8IFBCOv4Punr.png" /></figure><h3>Unit vector graph</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*5t1w2K-MDkc8madD.png" /></figure><p>We all know the unit vector i &amp; j made an area of 1.<br>But when we do a Linear transformation to the unit vector graph, the area is not 1 anymore, might be bigger or smaller. <br>So how much it re-sized we call it the determinant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/0*PJINAqFjdDxOjMhZ.png" /></figure><p>Note that:</p><ul><li>Since a/1 = a, so calculating the <strong>Area</strong> of the new unit vector graph, is equal to the scalar itself.</li><li>Calculating how much the unit vector graph scaled, is exactly equal to how much the whole graph scaled.</li></ul><h3>Irregular shape</h3><blockquote><em>If it’s not a </em><em>grid square can be approximately very well by many many </em><em>small piece of grid squares.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/232/0*FZKyNdvEnx3LbGf0.png" /></figure><h3>Determinant formula for 2x2 Matrix</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/0*OuinHGqK5v0NT2dq.png" /></figure><p><a href="https://www.khanacademy.org/math/precalculus/precalc-matrices/modal/v/finding-the-determinant-of-a-2x2-matrix">Refer to Khan video.</a></p><blockquote><em>It will be so much easier if you just to memorise the formula, than to understand where it comes from, which is also not necessary to do.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/0*aa5p2LQJ0M-XPZuH.png" /></figure><h3>Determinant formula for 3x3 Matrix</h3><blockquote><em>I hope you’re not gonna have chance to apply this formula.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/0*VsL6cjwC2nOYm5Yy.png" /></figure><blockquote><em>“This (determinant) is both tricky to show and derive, and is kind of </em><strong><em>pointless</em></strong><em>. Knowing how to do the operations (of determinant) </em><strong><em>isn’t a useful skill anymore</em></strong><em>because we just type </em><strong><em>det(A)</em></strong><em> into a computer. Thus I’ll just type det(A) and my computer gives me the answer, done. From a learning perspective, it doesn’t add much. So I’m not going to teach you how to do determinants. If you want to know, then look up a </em><strong><em>QR decomposition</em></strong><em> online, or better yet, look in a linear algebra textbook.” — David Dye, Imperial College London</em></blockquote><h3>Zero determinant</h3><p>If the determinant of a transformation det(M) = 0, then it means the Transformation squishes the graph to a line or a point!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/0*NF7quII8nXUl1f04.png" /></figure><h3>Negative determinant</h3><p>A negative determinant means the graph has been <strong>flipped over</strong> by the transformation. <br>Then the j unit vector flip over to the <strong>LEFT</strong> side of i unit vector.</p><p><a href="https://youtu.be/Ip3X9LOh2dk?t=3m46s">Refer to 3Blue1Brown for visualisation</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/0*fr32PE_IcZkRV3h2.png" /></figure><p>-</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7619d01e7011" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linear-algebra-basics/determinant-of-transformation-7619d01e7011">Determinant of Transformation</a> was originally published in <a href="https://medium.com/linear-algebra-basics">Linear Algebra Basics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>