I’ve been wanting to get LaTeX working on this blog for at least a few months now. When I first tried it, I had the impression that it would be all sorts of convoluted. Fortunately, I just found another blog post with a variety of links on how to make it simple, so I’m going to try some of them out. (See the final remark at the bottom, plus the comments, for some observations on how well this works.)
Here is what prompted my initial crise de foi regarding the marriage of LaTeX and Blogger. This past spring, I taught an “advanced calculus” course, which amounted to an introduction to (embedded) manifolds. I was a TA for this class, twice, as a graduate student, and it has some of my favorite calculus material—the kind that makes you realize what a breathtaking endeavor it is. One of the first big revelations is the nature of the derivative. I love this part of the class, and I wanted to share it.
When we first teach the derivative, we teach it as a number. We have to. It’s hard to imagine conveying anything more abstract about it when the definition already involves tangents, limits, possibly infinitesimals, and we just want to instill some level of understanding. But the purpose of the derivative—indeed, the philosophy behind all of differential calculus—is to take a curvy object and make it straight. Since we apply it to functions, the result should be a straightened function, i.e., a linear function. A linear function from $\mathbb{R}^m$ to $\mathbb{R}^n$ may be encoded by an $n \times m$ matrix. That's often convenient, but not always. Here’s a simple example that shows that sometimes it’s best to avoid matrices.
First, the matrix-free definition of the derivative. Let $U \subseteq \mathbb{R}^m$ be an open set, and let $f : U \to \mathbb{R}^n$ be a function. Then $f$ is differentiable at $\mathbf{x} \in U$ if there exists a linear function $L : \mathbb{R}^m \to \mathbb{R}^n$ such that \[ \lim_{|\mathbf{h}|\to0} \frac{|f(\mathbf{x}+\mathbf{h}) - f(\mathbf{x}) - L(\mathbf{h})|}{|\mathbf{h}|} = 0. \] If such a function $L$ exists, then it is unique, and we write $Df(\mathbf{x}) = L$.
Now consider the set of $n \times n$ matrices, and identify this set with $\mathbb{R}^{n^2}$. Define $S : \mathbb{R}^{n^2} \to \mathbb{R}^{n^2}$ by $S(A) = A^2$. If we were to write this function out in coordinates, we would see that all of the entries are polynomials, and so it is differentiable. What is its derivative at a point $A$? Note that the derivative must be a linear map from $\mathbb{R}^{n^2}$ to itself, so writing out a matrix would be fairly taxing.
Instead, we can get an idea of what the derivative should be by adding a variable matrix $H$ (presumed to be small) to the matrix $A$ and seeing the result of the function: $S(A+H) = (A+H)^2 = A^2 + AH + HA + H^2$. The part of this expression that “looks linear in $H$” is the middle two terms. Indeed, if we set $L(H) = AH + HA$, then we find \[ \lim_{|H|\to0} \frac{|(A+H)^2 - A^2 - (AH + HA)|}{|H|} = \lim_{|H|\to0} \frac{|H|^2}{|H|} = 0. \] Ah-ha! The derivative of the squaring function $S$ at $A$ is $DS(A) : H \mapsto AH + HA$! I still find this computation incredibly insightful.
What happens when $n = 1$? Then our matrix $A$ is $1 \times 1$, so it’s just a number, say $a$. The squaring map is $S(a) = a^2$, and the derivative of this map sends $h$ to $ah + ha = ah + ah = 2ah$. In the one-variable setting, we find $S'(a) = 2a$, and so this perspective on the derivative in terms of linear maps has reaffirmed the geometric meaning of the ordinary derivative: it describes the amount by which the range variable changes, infinitesimally, when the domain variable is altered infinitesimally.
Remarks:
- I learned this way of thinking about derivatives from John Hubbard through his textbook Vector Calculus, Linear Algebra, and Differential Forms: A Unified Approach. He was the instructor the first time I was a TA for this class.
- This experiment with including LaTeX seems to have been a success, provided I include the MathJax code in the post itself. Other methods which rely on altering the template have not worked for me.