Cobb-Douglas optimal demand calculator with GUI

Juan Andrés Cabral

This code create a graphical user interface (GUI) application that calculates the optimal demands based on the Cobb-Douglas utility function. The application is built using Python's built-in Tkinter library.

The user inputs the values of income (M), prices (p1, p2), and the Cobb-Douglas function's coefficients (alpha, beta). Upon clicking the 'Calculate' button, the application uses these inputs to calculate and display the optimal quantities of two goods (x1, x2), and the utility (U) using the formula for the Cobb-Douglas utility function.

The application also displays the mathematical representation of the Cobb-Douglas utility function and the budget constraint, providing users a clear understanding of the calculations happening behind the scenes.