Everything is logarithms

(alexkritchevsky.com)

131 points | by E-Reverance 5 hours ago

8 comments

  • helterskelter 3 hours ago
    Logs are awesome. I started a math textbook from the 1920's a while ago, and all the calculations relied on tabulated logs, where you would convert the number to a log in a table to reduce the operation's degree, then convert back to the ordinary representation. This would reduce operations like finding cubed roots to division, would could be converted to log-log to be further reduced to subtraction before you would restore to ordinary notation. It feels like you're using a magic wormhole or something when you're doing this stuff by hand, it's really neat.
    • badlibrarian 3 hours ago
      The physical version of that magic wormhole is called a slide rule.
    • eager_learner 3 hours ago
      care to share the name of the said book?
      • helterskelter 3 hours ago
        Trigonometry for Navigating Officers by WP Winter

        https://www.google.com/books/edition/Trigonometry_for_Naviga...

        I found this book because I was a little rusty on my trig and most celestial navigation texts will just throw the PZX equation (and others) at you without breaking down what's actually being done with it on a mathematical level...it's just kind of treated like a magical black box without any discussion, and I'd rather have a complete understanding of what I'm doing and why. Having an application-specific approach also makes it a lot easier to learn.

        I'm using it with Norie's Nautical Tables, which has the log tables and a whole lot else:

        https://bluewaterweb.com/product/nories-nautical-tables-2025...

        I'm sure there are plenty of free PDF's of log tables you can find though.

        (I believe they used log tables on boats primarily because it's easier to use than a slide rule when everything is constantly rocking back and forth.)

  • badlibrarian 4 hours ago
    This essay needs a type system. Every time it says “log” it should say: log of what, into what?

    It’s like audio where people say "dB" as if it answers the next question. Relative to what, measured how, and weighted for whom?

    Author should brush up on https://en.wikipedia.org/wiki/Lie_theory

    • rq1 1 hour ago
      The important properties of the logarithm are structural: we usually do not care about units or bases, except when carrying out an actual numerical computation.

      As developed in the article, informally, but somewhat sufficiently, the change of base formula shows that the choice of base is largely irrelevant: different bases give equivalent logarithms up to a constant factor.

      The Taylor expansion of exp gives a more intrinsic and general definition of the exponential function. This allows exp to be generalised structurally to many algebraic settings, provided the relevant convergence conditions are met: for example, the complex exponential and its many possible logs, the matrix exponential, and so on…

    • jfengel 35 minutes ago
      I still don't understand why audio dB are negative. That's relative to what? What happens at 0dB?
      • deepspace 11 minutes ago
        0db is usually defined as the loudest sound that the audio system can produce. Hence, everything else must be negative.
      • kevin_thibedeau 13 minutes ago
        That is dB full scale where 0 is an absolute ceiling and you can deduct from there.
    • jmyeet 3 hours ago
      The first section details how the author thinks of "log N" with no base as an abstract object rather than a number. Or what are you referring to?
      • badlibrarian 3 hours ago
        The first section is the good part.

        The later reuse of “log” across valuations, dimension, vector fields, orders of vanishing is not so good. Those may be related ideas, but each needs a type signature: from what, to what, and preserving which operation?

        • exmadscientist 2 hours ago
          Or, to say a little more explicitly what you're getting at: when you take a logarithm of some quantity, log x, x absolutely must be unitless. There's no way whatsoever to take a logarithm of something with a unit attached. (This is an important and useful dimensional analysis check in formulas and long calculations!)

          So what do you do in practice? You have to normalize: you don't calculate log x, but instead log x/U for some scaling unit U. It's typical for U to be something like 1 mV or 1 W in electrical engineering, for example. This is completely legitimate, but it does mean that the thing that comes out needs a corresponding unit attached to it: dBmV, dBW, et cetera.

          And it's really kind of important to be careful about that.

  • kfse 26 minutes ago
    All this would be way more interesting if it actually helped to demonstrate a novel mathematical fact. Right now it's more like notational play.
  • aesthesia 1 hour ago
    I think what's going on with the complex logarithm is basically the same as the logarithm that outputs the set of all possible bases for a vector space. The complex logarithm produces a Z-torsor, and the basis logarithm produces a GL(V)-torsor. There's probably some way to represent a choice of branch cut as a part of the choice of the base of the complex logarithm, and similarly the choice of a specific basis as part of the choice of base of the vector space base logarithm.
  • saulpw 1 hour ago
    This sentiment (not necessarily the content) is what I'm striving to communicate with Mag World[0] (website and podcast so far).

    [0] magworld.pw

  • amelius 3 hours ago
    Does this answer the question of why we see hyperoperations until exponentiation in physics, but not higher?
    • AnotherGoodName 3 hours ago
      I think that's more about integrations/differentials not producing them (generally speaking). Physics likes to deal with integrals and differentiation as you calculate change over time or over spatial dimensions.

      Eg. the integral of x^10 is x^11 / 11 + c. No hyper-operation appears and it's just another exponential (with a division).

      The integral of log(x) is xlog(x) - x + c. So still basically just a logarithm

      Even the integral of 2^x is just 2^x / log(2). Still basically the same thing.

      There's no easy way to pull a hyper-operation out.

  • jongjong 4 hours ago
    That's a lot of ways to think about logarithms.

    Logarithms are laughably simple once you've fully internalized the meaning of the log function; it simply answers the question:

    "To what power must I raise the base to get the argument?"

    This is why the output tapers out as you increase the argument; because even if you increase the argument exponentially, you only need a fixed increment in the power to reach that number... So if you increase the argument only by a fixed amount (linearly) instead of exponentially, then it makes sense that the output will grow sub-linearly.

    I remember when I was doing algebra with logs many years ago at school, I was applying rules to remove the log from one side of the equation.

    Then when I got to uni, I had to revise the rules but it was kind of silly of me because those rules can be trivially derived if you just think about what the log function means. Turns out I had been solving equations with logs throughout school without understanding what they even meant... It's only at university that I actually bothered to learn them.

    Actually TBH. I didn't even fully understand powers for some time even though I was doing calculus with them at school. I only fully understood powers once I properly internalized the concept of k-ary trees as a proxy.

    It's one thing to be able to apply something, another to understand it. And I think to innovate with something, as a tool, it's not enough to be able to apply it. You must understand it.

  • yaccb3 4 hours ago
    Look, the whole thing actually makes sense and the core idea is pretty cool because it's true that a lot of stuff in math looks identical. But in my opinion this is way too much of a macro-level overgeneralization and you risk throwing everything into the same pot, which ends up diluting the actual point of things.I mean, if you take a hammer and a meat mallet, at the end of the day they're both chunks of metal used to hit stuff, but if you bunch them together without making any distinction, you lose track of why you use one to drive nails into a wall and the other to prep cutlets.Saying everything is just one big logarithm is a nice mental exercise, but I feel like it flattens out the differences too much and makes you lose the practical utility of the individual math tools, which are meant to solve completely different problems.