I'm not sure if it's more economic than mathematical question but it's about analyzing a model from economics so I'd rather ask it here.
There's a model with two goods, 1 and 2. The first one has both consumer demand ($D_1(P_1)$) and the government demand ($G$, the variable is predefined externally). The second one has only $D_2(P_2)$.
The supply functions for both goods are: $Q^s_{1,2}=S(P_1,P_2)$ (some quantity of good 2 is used in good 1 production and vice versa) The supply quantity of good 1 increases when its own price $P_1$ increases but decreases when there's an increase in $P_2$ (as the costs increase). Also own effects dominate, so $\frac {\partial S_1}{\partial P_1} > |\frac {\partial S_1}{\partial P_2}|$ in absolute terms. The same is true for $S_2$. Again, I'll write out all the equations below for more clarity:
$$Q^d_1 = D_1(P_1)+G$$ $$Q^d_2 = D_2(P_2)$$ $$Q^s_1 = S^1(P_1, P_2)$$ $$Q^s_2 = S^2(P_1, P_2)$$
Where I got stuck is in calculation of $\frac {\partial Q}{\partial G}$ for $Q_1, Q_2$ (the change in $Q_1$ or $Q_2$ after a change in G). The only thing that comes to my mind is:
$$\frac {\partial D_1}{\partial P_1}*\frac {dP_1}{dG} + 1 = \frac {\partial S^1}{\partial P_1}*\frac {dP_1}{dG} + \frac {\partial S^1}{\partial P_2}*\frac {dP_2}{dG}$$ for $Q_1$, but how to calculate the $\frac {\partial Q_1}{\partial G}$ from here?