TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Relearning Matrices as Linear Functions

294 点作者 dhruvp大约 6 年前

22 条评论

_hardwaregeek大约 6 年前
Linear Algebra, at least at my school, is taught pretty poorly. Instead of teaching the beauty of transformations, the course is boggled down in numerical nonsense and tedious calculations (who wants to find the inverse of a 3x3 matrix? Bueller? Bueller?). Only after learning Algebra and homomorphisms, isomorphisms and automorphisms did I appreciate the importance of linear transformations. Stuff like Singular Value Decomposition gets a lot more interesting once you know some basic Algebra. I suppose Linear can't get too abstract because non math majors have to take it, but starting from generalized ideas of transformations is a far better way to teach it imo.
评论 #19733467 未加载
评论 #19735040 未加载
andrewla大约 6 年前
It took until I started learning differential geometry in the form of General Relativity to arrive at this insight, even though I feel like the notion of a matrix as a linear map was drilled in pretty thoroughly. The notion of matrix multiplication as function composition was presented almost as an interesting side effect of matrix multiplication -- that is, multiplication by these rules came first, and, hey, look, they compose!<p>Personally I found the prospect of tensor algebra to be much more intuitive than either of these; with matrices thrown in mostly as a computational device. Even a vector (through the dot product) is just a linear function on other vectors, and the notion of function composition carries through to that and to higher-order tensors.<p>Covariance and contravariance are a little more complicated to completely grok, but for most applications in Euclidean space (where the metric is the identity function) the distinction is of more theoretical interest anyway.
评论 #19734329 未加载
评论 #19733989 未加载
munchbunny大约 6 年前
In my high school matrices were first taught in geometry class, starting with using matrices as affine transformations in 2-d and then 3-d, and using that to teach concepts like what eigenvectors&#x2F;values are, the equivalence of matrix and function composition, etc.<p>That was taught right after a unit on complex numbers and trigonometry so that we could see the parallels between composing polynomial functions on complex numbers and composing affine transformations.<p>To this day I think that was one of the most beautiful and eye opening lessons I&#x27;ve had in mathematics.<p>In hindsight, I think I got lucky that the teachers who wrote the curriculum this way were math, physics, and comp sci masters&#x2F;phd&#x27;s who looked at their own educations and decided that geometry class was a great Trojan horse for linear algebra.
评论 #19735821 未加载
whatshisface大约 6 年前
FWIW, I was told that matrices are linear maps pretty early on in my education. Are there any college level linear algebra &#x2F; matrix calculations courses that <i>don&#x27;t</i> tell students about that?
评论 #19733497 未加载
评论 #19731877 未加载
评论 #19731862 未加载
评论 #19736276 未加载
评论 #19732316 未加载
评论 #19731797 未加载
评论 #19737234 未加载
评论 #19732512 未加载
dhruvp大约 6 年前
Hey OP here!<p>When I first was introduced to matrices (high school) it was in the context of systems of equations. Matrices were a shorthand for writing out the equations and happened to have interesting rules for addition etc. It took me a while to think about them as functions on their own right and not just tables. This post is my attempt to relearn them as functions which has helped me develop a much stronger intuition for linear algebra. That’s my motivation for this post and why I decided to work on it. Feedback is more than welcome.
评论 #19732247 未加载
评论 #19733720 未加载
评论 #19732303 未加载
michelpp大约 6 年前
This is great and a nice mathematical approach to the ideas of matrices. Another great resource is 3blue1brown&#x27;s essence of linear algebra:<p><a href="https:&#x2F;&#x2F;www.3blue1brown.com&#x2F;essence-of-linear-algebra-page" rel="nofollow">https:&#x2F;&#x2F;www.3blue1brown.com&#x2F;essence-of-linear-algebra-page</a><p>Math is Fun also has a nice writeup that explain matrix multiplication from a real world example of a bakery making pies and tracking costs:<p><a href="https:&#x2F;&#x2F;www.mathsisfun.com&#x2F;algebra&#x2F;matrix-multiplying.html" rel="nofollow">https:&#x2F;&#x2F;www.mathsisfun.com&#x2F;algebra&#x2F;matrix-multiplying.html</a>
noobermin大约 6 年前
One of the things that always irked me about the term &quot;linear transformation&quot; is it doesn&#x27;t include affline transformations, which is funny because back in elementary school, you learn that a &quot;linear equation&quot; looks like Mx + b. Of course, the article states the term &quot;linearity&quot; when talking vector spaces (or modules) means linearity in arguments, while the term linear for a child in school means &quot;something like a line on graph paper&quot;, and this is yet another example of terminology in the way mathematics is taught, possibly for historical reasons, that leads to even more confusion.<p>PS. incase you didn&#x27;t know, affline transformations are not linear:<p><pre><code> f(x) = mx + b =&gt; f(x+y) = m(x+y) + b &#x2F;= mx+b + my+b = f(x) + f(y), f(cx) = c m x + b &#x2F;= c(mx + b) = c f(x)</code></pre>
tptacek大约 6 年前
Their most recent post about kernels is even better than this:<p><a href="https:&#x2F;&#x2F;www.dhruvonmath.com&#x2F;2019&#x2F;04&#x2F;04&#x2F;kernels&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.dhruvonmath.com&#x2F;2019&#x2F;04&#x2F;04&#x2F;kernels&#x2F;</a><p>The matrix&#x2F;function stuff is elementary enough that I understand it intuitively (I suck at math), although it&#x27;s neat to be reminded that given a enough independent points you can reconstruct the function (this breaks a variety of bad ciphers, sometimes including ciphers that otherwise look strong).<p>The kernel post actually does some neat stuff with the kernel, which I found more intuitively accessible than (say) what Strang does with nullspaces.
adenadel大约 6 年前
If you&#x27;re interested in this approach to linear algebra you should read Linear Algebra Done Right by Sheldon Axler.
评论 #19731968 未加载
meuk大约 6 年前
It recently occurred to me that if you use that matrices represent linear functions, you don&#x27;t have to do tedious math to prove that matrix multiplication is associative (that is, (A * B) * C = A * (B * C), which allows us to write A * B * C without brackets, since it doesn&#x27;t matter how we place the brackets anyway).<p>For a matrix M, denote f_M(x) = M * x. Then f_{A * B} = f_A(f_B(x)) so that f_{(A * B) * C} = f_{A * B}(f_C(x)) = f_A(f_B(f_C(x))) and also f_{A * (B * C)} = f_A(f_{B * C}(x)) = f_A(f_B(f_C(x))).<p>So f_{(A * B) * C} = f_{A * (B * C)} = f_A(f_B(f_C(x)))
adamnemecek大约 6 年前
Conjugate transpose and other adjoints are kinda nuts, they are the other part of the story<p><a href="http:&#x2F;&#x2F;www.reproducibility.org&#x2F;RSF&#x2F;book&#x2F;bei&#x2F;conj&#x2F;paper_html&#x2F;index.html" rel="nofollow">http:&#x2F;&#x2F;www.reproducibility.org&#x2F;RSF&#x2F;book&#x2F;bei&#x2F;conj&#x2F;paper_html&#x2F;...</a><p>Esp the ray tracing&#x2F;topology relationship is nuts.
ivan_ah大约 6 年前
Nice! The illustrations + color coding for the vectors are very useful.<p>Here is a video tutorial that goes through some of the same topics (build up matrix product from the general principle of a linear function with vector inputs): <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=WfrwVMTgrfc" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=WfrwVMTgrfc</a><p>Associated Jupyter notebook here: <a href="https:&#x2F;&#x2F;github.com&#x2F;minireference&#x2F;noBSLAnotebooks&#x2F;blob&#x2F;master&#x2F;chapter02_linearity_intuition.ipynb" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;minireference&#x2F;noBSLAnotebooks&#x2F;blob&#x2F;master...</a>
Jun8大约 6 年前
Good, intuitive introduction to matrices. Next steps could be showing that there are infinitely many different matrix representations of a linear map (different from the polynomials) and they can be used for function spaces, too.<p>One question that usually pops up that I was confused about till recently: are rank two tensor equivalent to matrices? Answer is no, e.g. see here: <a href="https:&#x2F;&#x2F;physics.stackexchange.com&#x2F;questions&#x2F;20437&#x2F;are-matrices-and-second-rank-tensors-the-same-thing" rel="nofollow">https:&#x2F;&#x2F;physics.stackexchange.com&#x2F;questions&#x2F;20437&#x2F;are-matric...</a>
评论 #19732161 未加载
S4M大约 6 年前
I just skimmed the article quickly. Are there other ways to learn about matrices? If you don&#x27;t treat them as linear applications, they are just boring grids of numbers and the matrices multiplication doesn&#x27;t make any sense.
评论 #19736437 未加载
sytelus大约 6 年前
The basic equivalency is fine but what about all other things you can do with matrices but can’t do with functions? For example, what is the equivalent of transpose in functions? How about Eigen values or Gaussian elimination?
zwieback大约 6 年前
Nice article. That&#x27;s how I learned matrices in high school in Germany. Maybe it&#x27;s different here in the US, I&#x27;ll have to take a look at my daughters&#x27; textbooks.
评论 #19732113 未加载
kregasaurusrex大约 6 年前
Having not taken a linear algebra course in college, does anyone have a recommendation for a book&#x2F;course to follow?
评论 #19733229 未加载
评论 #19734002 未加载
diehunde大约 6 年前
Gilbert Strang uses similar approach on his Linear Algebra lectures. Much more intuitive
mikorym大约 6 年前
The next relearning step is to construct the category where arrows are matrices...
评论 #19732441 未加载
评论 #19732430 未加载
je42大约 6 年前
this was an important result in the linear algebra class for first year math&#x2F;cs&#x2F;eng students at my university.
Grustaf大约 6 年前
What could possibly be a more basic understanding of a matrix in mathematics? There’s a reason the first teach you Linear Algebra before anything else.
j7ake大约 6 年前
Who is &quot;we&quot; in this context?
评论 #19732179 未加载
评论 #19731811 未加载