Consider a two period, single good, $2$ agent model. Time beings in perios $0$ in a known state (state $0$) but in period $1$ the world may find itself in any one of two states $s = 1,2$ with probabilities $\pi_s = 1/2$ for each state. Both of the consumers agree on the probabilities.
Each consumer as a constant relative risk aversion utility function with utility index $u^{i}(c_{s}^{i}) = \frac{(c^{i}_{s})^{1-\gamma^i}-1}{1-\gamma^i}$, $i = A,B$. Specifically, we assume that $\gamma^{A} > 0$ and $\gamma^{B} = 0$.
In addition to the consumption good there are $J=2$ financial securities with period $1$ payoffs $D$ (a $J\times S$ matrix) given by $$D = \begin{pmatrix} 1 & 0\\ -1 & 4\\ \end{pmatrix}$$ Thus, the first security pays off $1$ in both states and the second security pays off $-1$ in state $1$ and $4$ in state $2$. There is a spot market for these securities in period $0$ at prices $p_j > 0$. Each security is in zero net supply so that if one consumer is a buyer then the other consumer must be the seller. There are no short-sell constraints on the securities.
Consumers have no period zero endowment and do not consume in the first period so that $e_0^{i} = c_{0}^{i} = 0$, $i = A,B$.
The consumers are not allowed to short-sell the consumption good. I.e., we impost the restriction that $c_{s}^{i}\geq 0$,$\forall i = A,B$ and $s = 1,2$. There is no production in this economy so each agent is exogenously endowed with period $1$ endowments of: $e^{A} = (6,2)$ and $e^{B} = (6,6)$ in states $s = 1$, and $2$, for each agent respectively.
a.) Carefully write out the second consumer's maximization problem including the relevant budget constraints. Let $\lambda_{s}^{B}$ be the Lagrange multipliers on the budget constraints. Carefully write out the first-order conditions for this consumer including the inequality and complementary slackness conditions.
b.) Solve for the contract curve for this economy.
c.) Verify that the Arrow security prices for this economy are $q_1 = q_2$ and that the optimal allocation of goods is $c^{A} = (4,4)$ and $c^{B} = (8,4)$.
d.) Find the consumers' security portfolios $\theta^{A}$ and $\theta^{B}$.
e.) Normalize the Arrow security prices so that $q_1 = q_2$ and find the security prices $p_1$ and $p_2$.
Solution a.) The utility maximization problem for $B$ is \begin{align*} \max_{c^{B},\theta}\mathbb{E}\left[u(c^{B})\right] = \frac{1}{2}(c_1^{B} - 1) + \frac{1}{2}(c_2^{B} - 1) \ \ \text{s.t.} \ \ &p_1\theta_{1}^{B} + p_2\theta_{2}^{B} = 0, s = 0\\ &c_1^{B}\leq 6 + \theta_{1}^{B} - \theta_{2}^{B}, s = 1\\ &c_{2}^{B}\leq 6 + \theta_{1}^{B} + 4\theta_{2}^{B}, s =2; c_1^{B}\geq 0, c_2^{B}\geq 0 \end{align*} We have the Lagrangian, $$\mathcal{L}(c^{B},\theta^{B},\lambda^{B}) = \frac{1}{2}(c_1^{B} - 1) + \frac{1}{2}(c_2^{B} - 1) + \lambda_{0}^{B}(0- p_1 \theta_1^{B} - p_2 \theta_2^{B}) + \lambda_{1}^{B}(6 + \theta_1^{B} - \theta_2^{B} - c_1^{B}) + \lambda_2^{B}(6 + \theta_{1}^{B} + 4\theta_2^{B} - c_2^{B})$$ The First-order conditions are: \begin{align*} &\lambda_{0}^{B}: p_1\theta_1^{B} + p_2 \theta_{2}^{B} = 0; \lambda_{0}^{B}\geq 0\\ &\lambda_1^{B}: c_1^{B}\leq 6 + \theta_1^{B} - \theta_2^{B};\lambda_1^{B}\geq 0, \lambda_1^{B}(6+\theta_1^{B} - \theta_2^{B} - c_1^{B}) = 0\\ &\lambda_2^{B}: c_2{B} \leq 6+\theta_{1}^{B} + 4\theta_2^{B}, \lambda_2^{B}\geq 0, \lambda_2^{B}(6+\theta_{1}^{B} + 4\theta_2^{B} - c_2^{B}) = 0\\ &c_1^{B}: \frac{1}{2}-\lambda_1^{B}\leq 0; c_1^{B}\geq 0, c_1^{B}\left(\frac{1}{2} - \lambda_{1}^{B}\right) = 0\\ &c_2^{B}: \frac{1}{2}-\lambda_2^{B}\leq 0; c_2^{B}\geq 0, c_2^{B}\left(\frac{1}{2} - \lambda_{2}^{B}\right) = 0\\ &\theta_1^{B}: - \lambda_0^{B}p_1 + \lambda_1^{B} + \lambda_2^{B} = 0\\ &\theta_2^{B}: - \lambda_0^{B}p_2 - \lambda_1^{B} + 4\lambda_2^{B} = 0 \end{align*}
Solution b.) We have $$c_1^{A} + c_2^{B} = 12 \ \ \text{and} \ \ c_2^{A} + c_2^{B} = 8$$ We want to find the set of pareto optimal points (contact curve). We are looking for $$MRS^{A} = MRS^{B}$$ Note that $u^{i} = \pi_1 u(c_1^{i}) + \pi_2 u(c_2^{i})$ Thus, $$MRS^{i} = \frac{\pi_1 u^{i \prime}(c_1^{i})}{\pi_2 u^{i\prime}(c_2^{i})}$$ $$MRS^{A} = \left(\frac{c_1^{A}}{c_2^{A}}\right)^{-\gamma_A} = 1 = MRS^{B}$$ $c_1^{A} = c_2^{A}$ is the equation of the contract curve.
Attempted solution c.) This is where I am stuck, I know that we have to solve for the Planner's problem: $$\mathcal{L} = \sum_{i=A,B} \eta^{i}u^{i}(c_1^{i}) + \lambda_1\left(\sum_{i}e_1^{i} - \sum_{i}c_1^{i}\right) + \lambda_2\left(\sum_{i}e_2^{i} - \sum_{i}c_2^{i}\right)$$ but I am not sure how to proceed any further. Any suggestions would be greatly appreciated. This is my first time solving a planners problem and I am a Mathematics grad student so do not have much exposure to economics.