Marginal rate of substitution
In economics, the marginal rate of substitution is the rate at which a consumer is ready to give up one good in exchange for another good while maintaining the same level of utility. At consumption levels, our marginal rates of substitution are identical.
Marginal rate of substitution as the slope of indifference curve 
Under the standard assumption of neoclassical economics that goods and services are continuously divisible, the marginal rates of substitution will be the same regardless of the direction of exchange, and will correspond to the slope of an indifference curve (more precisely, to the slope multiplied by -1) passing through the consumption bundle in question, at that point: mathematically, it is the implicit derivative. MRS of X for Y is the amount of Y for which a consumer is willing to exchange X locally. The MRS is different at each point along the indifference curve thus it is important to keep locally in the definition. Further on this assumption, or otherwise on the assumption that utility is quantified, the marginal rate of substitution of good or service X for good or service Y (MRSxy) is also equivalent to the marginal utility of X over the marginal utility of Y. Formally,
It is important to note that when comparing bundles of goods X and Y that give a constant utility (points along an indifference curve), the marginal utility of X is measured in terms of units of Y that is being given up.
For example, if the MRSxy = 2, the consumer will give up 2 units of Y to obtain 1 additional unit of X.
As one moves down a (standardly convex) indifference curve, the marginal rate of substitution decreases (as measured by the absolute value of the slope of the indifference curve, which decreases). This is known as the law of diminishing marginal rate of substitution.
Since the indifference curve is convex with respect to the origin and we have defined the MRS as the negative slope of the indifference curve,
Simple mathematical analysis 
Also, note that:
where is the marginal utility with respect to good x and is the marginal utility with respect to good y.
By taking the total differential of the utility function equation, we obtain the following results:
- , or substituting from above,
- , or, without loss of generality, the total derivative of the utility function with respect to good x,
- , that is,
Through any point on the indifference curve, dU/dx = 0, because U = c, where c is a constant. It follows from the above equation that:
- , or rearranging
The marginal rate of substitution is defined by minus the slope of the indifference curve at whichever commodity bundle quantities are of interest. That turns out to equal the ratio of the marginal utilities:
When consumers maximize utility with respect to a budget constraint, the indifference curve is tangent to the budget line, therefore, with m representing slope:
Therefore, when the consumer is choosing his utility maximized market basket on his budget line,
This important result tells us that utility is maximized when the consumer's budget is allocated so that the marginal utility per unit of money spent is equal for each good. If this equality did not hold, the consumer could increase his/her utility by cutting spending on the good with lower marginal utility per unit of money and increase spending on the other good.
- Microeconomics (2005, 6th Edition) by Pindyck, and Rubinfeld. ISBN 978-0-13-008461-3.
- Microeconomics(2nd edition) by Paul Krugman and Robin Wells