Example
Alice's utility function is `u \left( X, Y \right) = XY`.
Her marginal rate of substitution is the ratio of the marginal utilities `MU_X` and `MU_Y`:
$$ MRS = - \frac{MU_X \left( X, Y \right)}{MU_Y \left( X, Y \right)} = - \frac{Y}{X} $$Question
Alice's utility function is `u (X, Y) = X^{375} Y^{398}`.
What is the Marginal Rate of Substitution of strawberries for a chocolate in function of X and Y?
$$
MU_X = \frac{du(X, Y)}{dX} = 375 X^{375 - 1} Y^{398} = 375 X^{374} Y^{398}
$$
$$
MU_Y = \frac{du(X,Y)}{dY} = 398 X^{375} Y^{398 - 1} = 398 X^{375} Y^{397}
$$
Therefore
$$ MRS = - \frac{MU_X \left( X, Y \right)}{MU_Y \left( X, Y \right)} = - \frac{375 X^{374} Y^{398}}{398 X^{375} Y^{397}} = - \frac{375 Y}{398 X} $$