This problem I am working on comes out of--surprise--the Mas-Colell book for graduate micro (3.D.6). I think I have correctly used the FOC of the Lagrangian of the utility maximization problem to derive the consumer's Walrasian demand. My answer does not match the book. We are given that
$u(x) = (x_1-b_1)^\alpha (x_2-b_2)^\beta(x_3-b_3)^\gamma$
(and then from the first part we can say that $\alpha + \beta + \gamma = 1 $ WLOG.)
The solutions say that we take a monotonic transformation:
$\ln(u(x)) = \alpha \ln(x_1-b_1) + \beta \ln(x_2-b_2) + \gamma \ln(x_3-b_3)$
and then I set up the Lagrangian of this:
$ \mathcal{L} = \alpha \ln(x_1-b_1) + \beta \ln(x_2-b_2) + \gamma \ln(x_3-b_3) - \lambda(p_1x_1 + p_2x_2 + p_3x_3 - w)$
and the FOCs are:
$\frac{\alpha}{x_1-b_1} - \lambda p_1 = 0$
$\frac{\beta}{x_2-b_2} - \lambda p_2 = 0$
$\frac{\gamma}{x_3-b_3} - \lambda p_3 = 0$
Solve for the x's:
$x_1 = \frac{\alpha}{\lambda p_1} + b_1$
$x_2 = \frac{\beta}{\lambda p_2} + b_2$
$x_3 = \frac{\gamma}{\lambda p_3} + b_3$
Which leads us to:
$$x(p,w) = (b_1, b_2, b_3) + \left(\frac{\alpha}{\lambda p_1},\frac{\beta}{\lambda p_2},\frac{\gamma}{\lambda p_3}\right)$$
This is not what the book got, so I used Walras law to get the desired result:
$p \cdot x = w$
$\implies w - (b \cdot p) = \frac{1}{\lambda}(\alpha + \beta + \gamma)= \frac{1}{\lambda}$
$$\implies x(p,w) = (b_1, b_2, b_3) + (w - (b \cdot p))\left(\frac{\alpha}{p_1},\frac{\beta}{p_2},\frac{\gamma}{p_3}\right)$$
which is the book's solution.
So my questions are:
Did I do the derivation right? How should I know to take a log transformation of the original utility function? Is there any particular information that is supposed to tip me off?