<p>The graph is not correct for your parameters <span class="math-container">$a=9.3$</span> and <span class="math-container">$b=1.5$</span>, elasticity will be equal to 1 (in absolute value) at price:</p>
<p><span class="math-container">$-1 = -1.5 \frac{P}{Q(P)}  \implies -1 = -1.5 \frac{P}{9.3−1.5P} \implies P \approx 3.1$</span>. At the price of 3.1 the quantity demanded is supposed to be <span class="math-container">$Q=9.3-1.5P=4.65$</span> If the green curves are the elasticity they clearly cross the point <span class="math-container">$(4.65,3.1)$</span> nowhere.</p>
<p>To plot this correctly you also have to solve the elasticity formula for <span class="math-container">$P$</span> as a function of <span class="math-container">$Q$</span> so you need to plot:</p>
<p><span class="math-container">$$P = -\frac{1}{b} \frac{Q}{\epsilon} \implies P= -\frac{1}{−1.5} \frac{Q}{-1.5 \left(\frac{P}{9.3−1.5P}\right)} $$</span></p>
<p>and then plot this, however you would get a nonsensical graph (or to be more specific the graph would be a shadow of elasticity projected onto (Q,P) space, but such shadow has no interpretation and is not informative as you cannot know what the elasticity is from it). Elasticity is neither price nor quantity so it is impossible to plot it on a same 2D graph as quantity and price, you need to add at least one extra dimension.</p>
<p>If you want to  plot it properly you can use <code>R</code>:</p>
<pre><code>library(&quot;plotly&quot;)
p&lt;-(1:10)
demand = =9.3-1.5*p
elasticity = -1.5 *(p/(9.3−1.5*p))
  
fig&lt;-plot_ly(x=demand, y=p, z=0, type=&quot;scatter3d&quot;, mode=&quot;lines&quot;) %&gt;% add_trace() 
fig %&gt;% add_trace(x=0, y=p, z=elasticity, type=&quot;scatter3d&quot;, mode=&quot;lines&quot;)
</code></pre>
<p><a href="https://i.sstatic.net/xMMKv.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/xMMKv.jpg" alt="enter image description here" /></a></p>
<p>I forgot to label axes but <span class="math-container">$x$</span> is quantity, <span class="math-container">$y$</span> price and <span class="math-container">$z$</span> elasticity. Demand is orange elasticity is green.</p>
<p>We can verify that the picture above is correct by plotting all combinations of <span class="math-container">$P,Q, \epsilon$</span>. The graph does not have high granularity (I generated <span class="math-container">$P$</span> at increment of 1) but you can see that at <span class="math-container">$P\approx 3$</span>, <span class="math-container">$Q\approx4.65$</span> and <span class="math-container">$\epsilon \approx -1$</span> exactly as we calculated above. Hence these graphs are correct.</p>
<p><a href="https://i.sstatic.net/PYoLR.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/PYoLR.png" alt="enter image description here" /></a></p>
<p>PS: Also price is not function of <span class="math-container">$x$</span> in the elasticity formula. Moreover, <span class="math-container">$x$</span> cannot be at the same time price and quantity, you use it for all variables.</p>

CC BY-SA 4.0
2022-04-26T12:35:56.087Z
2022-04-26T16:53:25.007Z
2022-04-26T16:53:25.007Z
1muflon1
<p>The formula for price elasticity of demand uses price as independent variable.</p>
<p>But I wonder what the elasticity graph looks like on an ordinary microeconomics system of coordinates, where demand is on the X axis.</p>
<p>After some reflection, it seems to me that my problem amounts to : <em><strong>how to convert the elasticity formula ( in which the input is price) into an equivalent formula in which the input ( indep. variable)  is demand</strong></em>. For it seems to me that only the transformed formula would be  suitable for ordinary microeconomics representation ( with demand on the X axis).</p>
<hr />
<p>My goal is to visualize the graph of the elasticity function for a linear demand curve .</p>
<p>The problem I face is that the elasticity function graph I came up with looks unfamiliar.</p>
<p>I suppose my formula for the elasticity function contains a mistake, but I can't locate it.</p>
<p>Here is what I've done ( and I add a Desmos image below).</p>
<p>(1) I start with a demand function ( with price as independent variable) :</p>
<p><span class="math-container">$$D(x)= a-bx$$</span>.</p>
<p>(2) I transform this function into a price function ( with demand as independent variable), in order to obtain the traditonal demand curve ( with demand on the X axis and price on the Y axis) :</p>
<p><span class="math-container">$$P(x)= - \frac 1b x +\frac ab$$</span>.</p>
<p>(3) I use the calculus version of the elasticity function, namely :</p>
<p><span class="math-container">$$ \epsilon_{\small P}= \frac {\mathit dD(P)} {\mathit dP} \times \frac {\mathit P} {\mathit D}$$</span></p>
<p>wich ( so it seems) should yield</p>
<p><span class="math-container">$$ \Large\epsilon(x) = D'(x) \frac {P(x)}{Q(x)}$$</span></p>
<p>and finally ( since <span class="math-container">$D'(x)=-b$</span> here)</p>
<p><span class="math-container">$$ \Large\epsilon(x) = -b \frac {P(x)}{Q(x)}$$</span>.</p>
<p>But, as I said above, the graph of my alledged elasticity function looks unfamiliar.</p>
<p>In particular, it seems to me that the elasticity should be equal to <span class="math-container">$1$</span> for the X-value of the middle point on the demand curve.</p>
<p>Desmos (<a href="https://www.desmos.com/calculator/fp7elscgtq" rel="nofollow noreferrer">https://www.desmos.com/calculator/fp7elscgtq</a>)  :</p>
<p><a href="https://i.sstatic.net/jf8z8.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/jf8z8.png" alt="enter image description here" /></a></p>

<elasticity>
How to represent the elasticity function with demand on the X axis? How to transform the elasticity formula to this effect?
Vince Vickler
# How to represent the elasticity function with demand on the X axis? How to transform the elasticity formula to this effect?

(Asked by: username_0 on 2022-04-26)

The formula for price elasticity of demand uses price as independent variable.

But I wonder what the elasticity graph looks like on an ordinary microeconomics system of coordinates, where demand is on the X axis.

After some reflection, it seems to me that my problem amounts to : ***how to convert the elasticity formula ( in which the input is price) into an equivalent formula in which the input ( indep. variable) is demand***. For it seems to me that only the transformed formula would be suitable for ordinary microeconomics representation ( with demand on the X axis).

---

My goal is to visualize the graph of the elasticity function for a linear demand curve .

The problem I face is that the elasticity function graph I came up with looks unfamiliar.

I suppose my formula for the elasticity function contains a mistake, but I can't locate it.

Here is what I've done ( and I add a Desmos image below).

(1) I start with a demand function ( with price as independent variable) :

$$D(x)= a-bx$$.

(2) I transform this function into a price function ( with demand as independent variable), in order to obtain the traditonal demand curve ( with demand on the X axis and price on the Y axis) :

$$P(x)= - \frac 1b x +\frac ab$$.

(3) I use the calculus version of the elasticity function, namely :

$$ \epsilon\_{\small P}= \frac {\mathit dD(P)} {\mathit dP} \times \frac {\mathit P} {\mathit D}$$

wich ( so it seems) should yield

$$ \Large\epsilon(x) = D'(x) \frac {P(x)}{Q(x)}$$

and finally ( since $D'(x)=-b$ here)

$$ \Large\epsilon(x) = -b \frac {P(x)}{Q(x)}$$.

But, as I said above, the graph of my alledged elasticity function looks unfamiliar.

In particular, it seems to me that the elasticity should be equal to $1$ for the X-value of the middle point on the demand curve.

Desmos (<https://www.desmos.com/calculator/fp7elscgtq>) :

[![enter image description here](https://i.sstatic.net/jf8z8.png)](https://i.sstatic.net/jf8z8.png)

**Tags:** elasticity

---

## 1 answers

### Answer by username_1 on 2022-04-26. Score: 3 | Accepted answer

The graph is not correct for your parameters $a=9.3$ and $b=1.5$, elasticity will be equal to 1 (in absolute value) at price:
$-1 = -1.5 \frac{P}{Q(P)}  \implies -1 = -1.5 \frac{P}{9.3−1.5P} \implies P \approx 3.1$. At the price of 3.1 the quantity demanded is supposed to be $Q=9.3-1.5P=4.65$ If the green curves are the elasticity they clearly cross the point $(4.65,3.1)$ nowhere.
To plot this correctly you also have to solve the elasticity formula for $P$ as a function of $Q$ so you need to plot:
$$P = -\frac{1}{b} \frac{Q}{\epsilon} \implies P= -\frac{1}{−1.5} \frac{Q}{-1.5 \left(\frac{P}{9.3−1.5P}\right)} $$
and then plot this, however you would get a nonsensical graph (or to be more specific the graph would be a shadow of elasticity projected onto (Q,P) space, but such shadow has no interpretation and is not informative as you cannot know what the elasticity is from it). Elasticity is neither price nor quantity so it is impossible to plot it on a same 2D graph as quantity and price, you need to add at least one extra dimension.
If you want to  plot it properly you can use R:
library("plotly")
p<-(1:10)
demand = =9.3-1.5*p
elasticity = -1.5 *(p/(9.3−1.5*p))
  
fig<-plot_ly(x=demand, y=p, z=0, type="scatter3d", mode="lines") %>% add_trace() 
fig %>% add_trace(x=0, y=p, z=elasticity, type="scatter3d", mode="lines")


I forgot to label axes but $x$ is quantity, $y$ price and $z$ elasticity. Demand is orange elasticity is green.
We can verify that the picture above is correct by plotting all combinations of $P,Q, \epsilon$. The graph does not have high granularity (I generated $P$ at increment of 1) but you can see that at $P\approx 3$, $Q\approx4.65$ and $\epsilon \approx -1$ exactly as we calculated above. Hence these graphs are correct.

PS: Also price is not function of $x$ in the elasticity formula. Moreover, $x$ cannot be at the same time price and quantity, you use it for all variables.


---

