Tested tool guide
Tested browser tools
Checked August 16, 2026
What Utility Function Explorer does, with a checked example
A two-good utility function U(x, y) defines two families of curves on the plane, and this tool draws both at once: indifference curves U(x, y) = c and the budget line p_x x + p_y y = m set by the prices and income you enter. The marked optimum is the highest indifference curve the budget line reaches, with marginal utilities reported at any point you click. The usual surprise: the textbook tangency MRS = p_x/p_y only holds for smooth, convex preferences with an interior solution - corner optima and non-convex utility break it, and the tool shows where.
Worked example
A concrete input and expected output from the current implementation.
Input
U = x^0.5 * y^0.5 with p_x = 2, p_y = 1, m = 100
->
Expected output
Budget line y = 100 - 2x. Optimal bundle (25, 50) at utility 35.36, on the indifference curve x*y = 1250. There MU_x = 0.71 and MU_y = 0.35, so MRS = 2 = p_x/p_y. The budget is exhausted: 2*25 + 50 = 100.
For Cobb-Douglas U = x^a * y^b the tangency MRS = (a*y)/(b*x) = p_x/p_y together with the budget gives x* = a*m/((a+b)*p_x) = 0.5*100/2 = 25 and y* = b*m/((a+b)*p_y) = 0.5*100/1 = 50.