\\frac"}︡
︠093d51e1-99bb-472b-8f97-6f27c2aa61a9︠
}}}
From these we can derive some insightful expressions on the ratios L1/L2 and q1/q2.
I will turn now to the firms' profit maximisation problem.
For some reason maxima fails to express q1(p1,p2) after substituting q2 from above. But we can easily do it by hand. This is the demand after the substitution. Of what we will express q1.
{{{id=14|
q1.substitute(q2=sol2[0][1].right()).simplify_full().show()
︡79eaea9c-e0fb-46ce-95ae-cc7ca09be9de︡{"html": "
{{{{{f_{1}}^{{\\alpha}^{2} - 1} {p_{1}}^{{\\left( \\alpha - {\\alpha}^{2} \\right) \\beta} + \\alpha - 1} } {p_{2}}^{{\\left( 1 - \\alpha \\right) \\beta} + {\\alpha}^{2} - \\alpha} } {q_{1}}^{{\\alpha}^{2} } } {A}^{1 - {\\alpha}^{2} } }
"}︡
︠df7c01cd-7178-440d-b5e9-a189a473d4be︠
solve([q1==q1.substitute(q2=sol2[0][1].right()).simplify_full()], q1)
︡bbec961c-ac39-4c1d-ab85-dc81f72f6310︡{"stderr": "Traceback (most recent call last):\n File \"
\", line 1, in \n File \"/home/sage/sagenb/sage_notebook/worksheets/nagyv/1/code/8.py\", line 7, in \n exec compile(ur'solve([q1==q1.substitute(q2=sol2[_sage_const_0 ][_sage_const_1 ].right()).simplify_full()], q1)' + '\\n', '', 'single')\n File \"/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/SQLAlchemy-0.4.6-py2.5.egg/\", line 1, in \n \n File \"/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/calculus/equations.py\", line 1563, in solve\n raise TypeError, \"%s is not a valid variable.\"%v\nTypeError: \n alpha alpha - 1 beta - alpha beta alpha 1 - alpha\n f2 p1 p2 q2 A\n ----------------------------------------------------------\n f1 is not a valid variable."}︡
︠dcba9507-9d2b-42ab-b2a9-bc953a4e61ba︠
D1p = q1==A*(p2^(beta-alpha)/p1^(1-alpha*beta))^(1/(1+alpha))*f1^-1*f2^(-alpha/(1-alpha^2))
D1p.right().show()
︡2d708cfd-6112-41f6-92a4-523b8068f2aa︡{"html": "\\frac{{{\\left( {{p_{1}}^{{\\alpha \\beta} - 1} {p_{2}}^{\\beta - \\alpha} } \\right)}^{\\frac{1}{\\alpha + 1}} A}}{{f_{1} {f_{2}}^{\\frac{\\alpha}{1 - {\\alpha}^{2} }} }}
"}︡