# How would I solve this using Mathematica?

**URL:** <https://community.wolfram.com/t/how-would-i-solve-this-using-mathematica/971>\
**Category:** Questions\
**Tags:** economics, mathematica\
**Created:** [November 25, 2013, 1:27pm UTC](https://community.wolfram.com/t/how-would-i-solve-this-using-mathematica/971 "2013-11-25T13:27:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiwayb103](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@shiwayb103](https://community.wolfram.com/u/shiwayb103)\
**Post date:** [November 25, 2013, 1:27pm UTC](https://community.wolfram.com/t/how-would-i-solve-this-using-mathematica/971/1 "2013-11-25T13:27:50Z")

</div>

I have some equations that i want to plug in to see what the outcome is and was wondering if anyone can help,

I have: q1 = 4/3-2/3a-4/3p1+2/3p2

&

q2 = 4/3a-2/3+2/3p1-4/3p2

I am trying to find the inverse demand functions in respects to price.

Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![danl](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/danl/32/41267_2.png) [@danl](https://community.wolfram.com/u/danl)\
**Post date:** [November 25, 2013, 3:08pm UTC](https://community.wolfram.com/t/how-would-i-solve-this-using-mathematica/971/2 "2013-11-25T15:08:46Z")

</div>

Use Solve to solve equations.

```auto
In[8]:= Solve[{q1 == 4/3 - 2/3 a - 4/3 p1 + 2/3 p2,
  q2 == 4/3 a - 2/3 + 2/3 p1 - 4/3 p2}, {p1, p2}]

Out[8]= {{p1 -> 1/2 (2 - 2 q1 - q2), p2 -> a - q1/2 - q2}}

```

---

<div class="post-metadata">

**Author:** ![seanc](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/seanc/32/34005_2.png) [@seanc](https://community.wolfram.com/u/seanc)\
**Post date:** [November 25, 2013, 7:29pm UTC](https://community.wolfram.com/t/how-would-i-solve-this-using-mathematica/971/3 "2013-11-25T19:29:38Z")

</div>

You can also do this easily in Wolfram|Alpha:

[http://www.wolframalpha.com/input/?i=Solve+for+p1+and+p2+%7Bq1+%3D+4%2F3-2%2F3a-4%2F3p1%2B2%2F3p2%2C++q2+%3D+4%2F3a-2%2F3%2B2%2F3p1-4%2F3p2%7D](http://www.wolframalpha.com/input/?i=Solve+for+p1+and+p2+%7Bq1+%3D+4%2F3-2%2F3a-4%2F3p1%2B2%2F3p2%2C++q2+%3D+4%2F3a-2%2F3%2B2%2F3p1-4%2F3p2%7D)

---

<div class="post-metadata">

**Author:** ![punkymunky45](https://avatars.discourse-cdn.com/v4/letter/p/73ab20/32.png) [@punkymunky45](https://community.wolfram.com/u/punkymunky45)\
**Post date:** [November 25, 2013, 11:12pm UTC](https://community.wolfram.com/t/how-would-i-solve-this-using-mathematica/971/4 "2013-11-25T23:12:46Z")

</div>

On top of that.

Assume that two firms, say firm 1 and firm 2 sell differentiated goods and face the following demand functions:  
q1= 4/3 - 2/3a - 4/3p1 + 2/3  
q2= 4/3a - 2/3 + 2/3p1 - 4/3p2  
where a\>1 . In addition assume that firms target own profit maximisation, compete(simultaneously) in quantities and have marginal costs equal to c1= c2=c. Assume that 1\>c?0.

question) Derive each firms best response function. Are quantities strategic substitutes or complements?

---

<div class="post-metadata">

**Author:** ![punkymunky45](https://avatars.discourse-cdn.com/v4/letter/p/73ab20/32.png) [@punkymunky45](https://community.wolfram.com/u/punkymunky45)\
**Post date:** [November 25, 2013, 11:49pm UTC](https://community.wolfram.com/t/how-would-i-solve-this-using-mathematica/971/5 "2013-11-25T23:49:34Z")

</div>

and a further question)

derive the equilibrium in quantities any help would be greatly appreciated.
