We have the minimization function: $$ \begin{align*} \text{minimize}~ f(x) &= \sum_{i=1}^{n} x_i \log x_i\\ \text{subject to}~ Ax &= b \end{align*} $$
And we want to find the Lagrangian dual. The first step is to find the conjugate which is $$ f^*(y) = \sum_{i=1}^{n} e^{y_i-1} $$
Let us have the variable $v$ for the equality constraint, how do we get the function $g(v)$?
We know that what we have to end up with, is the maximization problem $$ \text{maximize}~ -b^T v - n - e^{-v - 1} \sum_{i=1}^p \exp(-a_i^T v) $$