Consider the following problem \begin{equation*} \begin{aligned} & \underset{x_1, x_2}{\text{maximize}} & & u(x_1, x_2) \\ & \text{subject to} & & p_1x_1 + p_2x_2 = y \end{aligned} \end{equation*} Suppose I found optimal values $(x_1^*, x_2^*)$ that maximize my function $u$.
Now consider problem
\begin{equation*} \begin{aligned} & \underset{x_1, x_2}{\text{maximize}} & & v(u(x_1, x_2)) \\ & \text{subject to} & & p_1x_1 + p_2x_2 = y \end{aligned} \end{equation*}
Does the optimal value change?
First order conditions (FOCs) for the first problem are \begin{equation*} \begin{aligned} & \frac{\partial u}{\partial x_1} - \lambda p_1 = 0 \\ & \frac{\partial u}{\partial x_2} - \lambda p_2 = 0 \end{aligned} \end{equation*}
For the second one
\begin{equation*} \begin{aligned} & \frac{\partial v}{\partial u}\frac{\partial u}{\partial x_1} - \lambda p_1 = 0 \\ & \frac{\partial v}{\partial u}\frac{\partial u}{\partial x_2} - \lambda p_2 = 0 \end{aligned} \end{equation*}
Not sure how to proceed from here. One way to find an example of $v$ that changes optimal value. I tried several candidates but get same optimal values. A link or description of relevant material will be helpful.