Im working my way through the book "Algorithmic and High-Frequency Trading" (AHFT) by Cartea, Jaimungal and Penalva and i'm curious to see how the market making model with an exponential utility function compares to the similar model published by Avelaneda and Stoikov, but im having some problems understanding the result from the book.
In both models the bid and ask prices entered into the order book are calculated from an inventory dependent function, $\theta$ in 2 and $g(t,q)$ or $h(t,q)$ in 1.
To me the main differences seem to be that in in the paper by A&S, this inventory dependent function is expanded in terms of the inventory parameter $q$. And importantly A&S makes a linear approximation of the exponential terms in the exponential part of the HJB equation for $\theta$ (see eq 26 in 2).
In 1 the authors never explicitely calculate the inventory dependent function, $h(t,q)$, but state that one can find it via:
However, I cant figure out how to do the product between $e^\mathbf{A}$ and $\mathbf{z}$ in order to calculate $\omega(t,q)$ and $h(t,q)$ for a given inventory $q$.
Can you help me understand this better?