---
title: "Comment by love on \"Automated Market Makers\" | Hashnode"
description: "The most valuable part of AMM mathematics is seeing (x \\times y = k) as an invariant rather than a formula to memorize. Once the marginal price (y/x) is compare"
url: "https://hashnode.com/posts/amm-math/69b3bafa93256dfc5347fd15/comment/6a9a1969f9572005eb54f308"
---

[Discussion](https://hashnode.com/posts/amm-math/69b3bafa93256dfc5347fd15)

Comment [Automated Market Makers](https://hashnode.com/posts/amm-math/69b3bafa93256dfc5347fd15)

[Sep 4](https://hashnode.com/posts/amm-math/69b3bafa93256dfc5347fd15/comment/6a9a1969f9572005eb54f308)

The most valuable part of AMM mathematics is seeing (x \\times y = k) as an invariant rather than a formula to memorize. Once the marginal price (y/x) is compared with the average execution price calculated from reserve changes, slippage and price impact become much easier to understand. A useful follow-up could extend the derivation to include swap fees, explain how arbitrage brings the pool price back toward the external market price, and derive liquidity-provider returns versus simply holding the two assets. Connecting the invariant’s curvature to capital efficiency would make the mechanics even more intuitive.
