Derive the first-order conditions for maximizing
$$
U(x)=\sum_{i=1}^n \beta_i \cdot \log \left(x_i-\gamma_i\right) .
$$
where $\beta_i$, and $\gamma_i, i=1, \ldots, n$, respectively, are positive and nonpositive parameters, subject to a budget constraint.