Endowments & Utility Function to get Demand Function
I agree, it is hard to tell how to answer the question because I don't know what "competitive equilibrium" means. But, if I assume that it means that given prices, the consumption decision of each person is optimized and such that market clearing conditions hold, then you can solve using the following. Solve for the optimal $x_i, y_i$ in each of the following. Solve $$ \max_{x_a,y_a} y_a+ 50 \ln x_a \\ s.t. \; p_x x_a + p_y y_a \leq 200 p_x + 200 p_y $$ for person A, and $$ \max_{x_b,y_b} y_b + 150 \ln x_b \\ s.t. \; p_x x_b + p_y y_b \leq 100 p_x + 100 p_y $$ for person B. Use the method of Lagrange multipliers. The inequalities will hold with equality. Then, to pin down a solution, normalize the price of one good, say, by letting p_x = 1. Then apply the market clearing conditions (you'll only need to use one of them)
$$ x_a + x_b = 300 \\ y_a + y_b = 300.$$
(This gives the Walrasian (competitive) equilibrium in the general equilibrium framework.)
Related videos on Youtube
Stuckonmaths
Updated on March 27, 2020Comments

Stuckonmaths over 2 years
We have two people, $A$ and $B$, A has $200$ units each of both good $X$ and $Y$ and $B$ has $100$ units each of both good $X$ and $Y$.
$A$ has tastes providing a utility function such that $u(X,Y) = y + 50 \ln x$ and $B$ $u(X,Y) = y + 150 \ln x$.
Given competitive equilibrium prices $p$ and $p_1$, how do I derive each person $A$ and $B$'s demand functions for both goods?

joriki over 9 yearsIt's a pity that the economics.SE beta failed. This appears to be a question about economics, not mathematics. If you know the economical theory for determining demand functions and have a mathematical question about how to apply it, please state the theory you're trying to apply so your mathematical question can be answered by noneconomists. If your question is about the economical theory to be applied, it's offtopic on this site.
