Skip to main content
Mathematics LibreTexts

7.8: Economics Applications of the Integral

  • Page ID
    85475
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    We have looked at the definite integral as the signed area under a curve. This lets us compute total profit, or revenue, or cost, from the related marginal functions. We have looked at a number of applications where this was interpreted as an accumulation over time, including total production of an oil well and present value of a revenue stream. For some applications we want to look at the area between two curves. For example, considering profit as the area between the cost and revenue curves.

    In this section we will look at more applications from finance and economics where the concepts can easily be described in terms as of the area between curves.

    Consumer and Producer Surplus

    When we looked at supply and demand curves we found an equilibrium point where the amount being offered for sale was equal to the amount people wanted to buy.

    clipboard_e0f93745059c91883d334a509b0a6b083.png

    However, in that model, there were people who were willing to sell for less than the equilibrium price and people who were willing to buy for more than the equilibrium price. These people got an exceptionally good deal in the transaction. We would like to measure that benefit, since we can think of it as the extra profit the suppliers and buyers make on the transaction. We note that each side will have an incentive to maximize that benefit.

    Focus first on the consumer side. The area under the demand function, from 0 to the quantity sold, measures the consumers’ willingness to spend. The area in the rectangle with that same base and height equal to the sale price measures the actual consumer expenditure. The difference between the two is a quantity we will call consumer surplus.

    clipboard_e87af2798355b48549a06a70b0f8ec7a7.png

    In calculus terms:

    \[ Willingness\ To\ Spend= \int_0^{q_s} demand\ function(q) dq \nonumber \]

    \[ consumer\ expendature= \int_0^{q_s} p_s dq \nonumber \]

    \[ consumer surplus= \int_0^{q_s} (demand\ function(q)- p_s ) dq \nonumber \]

    As long as the price stays on the demand function curve, a lower price means a greater quantity sold, and a greater consumer surplus.

    In a similar manner, we can focus on the producer side. The area under the supply function, from 0 to the quantity sold, measures the producers’ need for revenue. The area in the rectangle with that same base and height equal to the sale price measures the actual producer revenue. The difference between the two is a quantity we will call producer surplus.

    clipboard_ed44f72a11a26179fd14a9b194aebe400.png

    In calculus terms:

    \[ Needed\ revenue= \int_0^{q_s} supply function(q) dq \nonumber \]

    \[ producer\ revenue= \int_0^{q_s} p_s dq \nonumber \]

    \[ producer\ surplus= \int_0^{q_s} ( p_s-supply function(q)) dq \nonumber \]

    As long as the price stays on the supply function curve, a higher price means a greater quantity sold, and a greater producer surplus. Consider first an example where the supply and demand functions are simple enough that the computations can all be done by hand.

    Example 7.8.1: Producer Surplus with Linear Functions.

    I am trying to sell widgets and have determined the supply and demand functions to be:

    \[ supply price(quantity)=4+quantity \nonumber \]

    \[ demand price(quantity)=106- 2*quantity \nonumber \]

    Find the equilibrium price and quantity. Find the producer and consumer surpluses when the shirts are sold at the equilibrium price. If the producers form a cartel, find the price that maximizes producer surplus.

    Solution

    By setting supply price and demand price equal to each other we find an equilibrium quantity of 34 and an equilibrium price of 38. The formulas for the consumer and producer surpluses become:

    \[ consumer surplus= \int_0^{34} ((106-2q)-38) dq \nonumber \]

    \[ producer surplus= \int_0^{34} ( 38-(4+q)) dq \nonumber \]

    To evaluate the integrals we can notice that each is a triangle of base 34. One has height of 34 and the other has a height of 68. Using geometry, the consumer surplus is $1,156 and the producer surplus is $578.

    To find the maximum producer surplus, we need to turn the endpoint into a variable. If the producers act as a cartel

    \[ producer\ surplus= \int_0^x ( (106-2x)-(4+q)) dq=\int_0^x ( 102-2x-q) dq \nonumber \]

    \[ =\left.\left((102-2x)q-\frac{q^2}{2}\right) \right|_0^x=((102-2x)x-\frac{x^2}{2}=102x-\frac{5x^2}{2} \nonumber \]

    We can find the maximum of this by taking its derivative and setting it equal to 0. The maximum occurs when \(x=\frac{102}{5}=20.4\text{.}\) At that point the producer surplus is $1,040.40

    We now try an example where we need other techniques to evaluate the integrals.

    Example 7.8.2: Producer Surplus with Numeric Integration.

    A store trying to sell t-shirts on campus has determined the supply and demand functions to be:

    \[ supply price(quantity)=5+\ln (quantity+10) \nonumber \]

    \[ demand price(quantity)=10+100/(quantity+2) \nonumber \]

    Find the equilibrium price and quantity. Find the producer and consumer surpluses when the shirts are sold at the equilibrium price.

    Solution

    We load the supply and demand price functions into excel and use Goal Seek to find an equilibrium price. Rounding to the nearest unit for quantity and cent for price, we have an equilibrium price of $10.45 for a quantity of 222 shirts.

    clipboard_edaade3a35695f048480bab3f5c385f32.png
    clipboard_e90b3cc30a015caeaba805dd1d8e854d1.png

    We then substitute these values into the equations for consumer and producer surplus.

    \[ consumer\ surplus= \int_0^{q_s} (demand\ function(q)- p_s ) dq \nonumber \]

    \[ consumer\ surplus= \int_0^{222} ((10+100/(quantity+2))- 10.45) dq \nonumber \]

    \[ producer\ surplus=\int_0^{q_s} ( p_s-supply\ function(q)) dq \nonumber \]

    \[ producer\ surplus=\int_0^{222} ( 10.45-(5+\ln (quantity+10))) dq \nonumber \]

    To evaluate these integrals we either use a Riemann sum approximation, like the one found on the example worksheet, or use Wolfram Alpha. In either case, rounded to the nearest dollar, we have a consumer surplus of $372 and a producer surplus of $191.

    clipboard_ebc669a7ad650c894e6956f7bd8c7b2ef.png
    clipboard_e5bd043222f898f9592809103b6b773dd.png

    The sum of the consumer surplus and the producer surplus is referred to as the total social gain. As we looked at consumers' surplus, we assumed that the sales were determined by supply and the price-quantity point was on the supply curve. Similarly, when looking at producers' surplus we assume price is set by demand and the price-quantity point was on the demand curve. If both sides are made up of many individuals acting independently, the price-quantity point is the equilibrium point, which is on both curves. Selling at that point also maximizes the total social gain.

    clipboard_e88ec7da3b488e3fc2c74ac143df3afb2.png

    If however, either the producers or consumers can organize and act as a unit, they can form a cartel and limit the amount sold. If the producers form a cartel, they can lower production and raise the price.

    clipboard_e22b9b4231caa4a2bd88f641f704e7699.png

    As we can see from the picture, this always lowers the total social gain. However for some reduction of quantity the producers’ surplus is increased. In the equation for producer surplus the price \(p_s\) is \(demand\ function (q_s)\) rather than \(supply\ function (q_s)\text{.}\) If the quantity goes down too far the producer surplus will also go down.

    Example 7.8.3: Computing Loss of Social Gain.

    A store trying to sell t-shirts on campus has determined the supply and demand functions to be:

    \[ supply\ price(quantity)=5+\ln (quantity+10) \nonumber \]

    \[ demand\ price(quantity)=10+100/(quantity+2) \nonumber \]

    The store owner has a monopoly on campus and decides to limit the quantity sold to 200 shirts and charge what the market will bear. Find the price, the producer surplus, and consumer surpluses. Find these numbers if the owner decides to limit sales to 50. How many shirts should the owner sell at what price to maximize producer surplus? If producer surplus is maximized, how much is the total social gain reduced?

    Solution

    The formulas involved for supply and demand are the same ones we used in example 2. With a slight modification if the worksheet from that example we can set it to compute the Riemann sums approximating the surpluses. In particular, we use the demand function for finding the height of producer surplus. (See cell D7.)

    clipboard_e6a518a9aaba4c65c37a3b0e1f2768a06.png

    If we only want to sell 200 shirts, we can raise the price to from $10.45 to $10.50. The producer surplus rises from $191 to $199. However the consumer surplus falls from $372 to $362.

    clipboard_e3e2cd98c91a74206c3e5e7b0265faab1.png

    If we only want to sell 50 shirts, we can raise the price from$10.45 to $11.92. The producer surplus falls from $191 to $174. The consumer surplus falls from $372 to $230.

    clipboard_ec2a550bd0aacf097f39c5d88fdebef29.png

    We can use solver to maximize the Producer surplus by varying the quantity. A quantity of 140 maximizes the producer surplus at $210, but is doing that the total social gain is down to $537 from $563.

    clipboard_e2d71314dfd399ea44d0a2c415daf18d6.png

    Similarly, if the consumers form a cartel, they can artificially reduce the demand. Since they will then pay the supply price the total social gain will be decreased, but the consumers’ surplus may be increased. In this case the consumer surplus is the integral of the difference between the demand function and the supply price of the quantity that will be sold.

    clipboard_e8ca157e1888565ca1cdcad5efb995a22.png

    In the example we just looked at, both the supply and demand curves have a small slope, so the market is quite elastic from both the producers and consumers point of view. Is such a case there is less incentive to form a cartel. In other markets, like gas and oil, where the market is more inelastic, there is more incentive to engage in monopolistic practices.

    Lorenz Curves and the Gini Index

    A question that arises in economics looks at the equity of income or wealth distribution in a country. In standard economic theories either too much or too little equity indicates a lack of opportunity and is a hindrance to growth. However, before being able to address the advantages or disadvantages of a level of inequity we need to be able to quantify the level of equity or inequity. The standard method is to use the Lorenz curve and the Gini index.

    The Lorenz curve is defined by a function \(L(x)\text{,}\) with \(0\le x\le 1\text{,}\) that measures the proportion of something is held by the bottom \(x\) proportion of the population. Thus, if \(L(0.2)=.1\text{,}\) for the Lorenz function for income in a country, then the bottom 20% of the population earns 10% of the income in the country. Since, under usual definitions, a person cannot have negative income, the Lorenz functions are nonnegative and increasing. Since the Lorenz functions are measured from the bottom, we also have \(L(x)\le x\) for all \(x\text{.}\)

    We can make a few more observations. The population as a whole has the entire income of the population. An empty set of the population has none of the population's income. Any bottom segment will have nonnegative income. In formulas these observations become \(L(1)=1\text{,}\) \(L(0)=0\text{,}\) and \(L(x)\ge 0\text{,}\) for all \(x\text{,}\) respectively.

    If we had perfect equity, our Lorenz function would be \(L(x)=x\text{.}\) Any Lorenz curve we find for a real population will be below this curve. The Gini index (or Gini coefficient) measures the percentage that a real Lorenz curve is below the ideal curve.

    clipboard_e4dcd5668bebe2b2ec8d2d2a7a708291c.png

    Computationally,

    \[ G=\frac{\int_0^1 (x-L(x))dx}{\int_0^1 x dx}=2\int_0^1 (x-L(x))dx. \nonumber \]

    In practice this number is often multiply by 100, reporting the percentage (0 to 100) rather than proportion (0 to 1) of the area under the ideal function and above the measured function.

    Example 7.8.4: Gini Index with a Formula for Income Distribution.

    The Lorenz curve for income in a certain country is given by \(L(x)=.8x^3+.2x\text{.}\) What proportion of the income is earned by the bottom half of the population? Find the Gini index.

    Solution

    To find the proportion earned by the bottom half of the population we substitute 0.5 in the equation.

    \[ L(0.5)=(0.8) (0.5)^3+(0.2)(0.5)=0.1+0.1=0.2. \nonumber \]

    Thus the bottom 50% of the population earns 20.% of the total income. To compute the Gini index, we compute:

    \[ G=2\int_0^1 (x-0.8x^3-0.2x)dx=(2)(0.4x^2-0.2x^4 ) |_0^1=.4 \nonumber \]

    So the Gini index in this hypothetical country is 40. To put this number in context, the reported Gini index for the United States in 2009 was 46.8.

    In practice, the Gini index is an application where a numeric approximation of an integral is the method most likely to be used. We are unlikely to get a formula for income distribution. Instead we are likely to find data points. Since there is no good model for how the income will be distributed, we can simply connect the points with line segments and find the area using the area formula for a trapezoid.

    Example 7.8.5: Gini Index with a Chart for Income Distribution.

    We have the following data from the census bureau on income distribution in the US in 2008. Compute the Gini index.

    Population %tile 0 20 40 60 80 90 100
    Income %tile 0 3.4 12.0 26.7 50.0 78.5 100

    Solution

    We recall that the area of a trapezoid is (width)(average height). We put the data into a spreadsheet.

    clipboard_ef812fe258d2cb6784af846571777337e.png

    Then we evaluate the formulas.

    clipboard_e595828261c7bf1b394756f8b94d7d2e9.png

    In percentages, the Gini index is approximated at 45.

    Exercises: Business Applications of the Integral Problems

    class="

    For exercises 1-6, assume we have a free market and that goods are sold at market equilibrium. Find the consumer surplus, producer surplus, and total social gain.

    Exercise 1:

    \(SupplyPrice(q)= 50+q/2\) and \(DemandPrice(q)= 150-q/5\text{.}\)

    Answer

    The two curve intersect at the point of market equilibrium, \(\left({\frac{1000}{7},\frac{850}{7}}\right)\text{.}\)

    \[ ProducerSurplus= \int_0^{1000/7} \left({\frac{850}{7}}\right)- \left({50+\frac{x}{2}}\right)\ dx=5102.04 \nonumber \]

    \[ ConsumerSurplus= \int_0^{1000/7} \left({150-\frac{x}{5}}\right)-\left({\frac{850}{7}}\right)\ dx=2040.82. \nonumber \]

    \[ TotalSocialGaine=ProducerSurplus+ConsumerSurplus=7142.86 \nonumber \]

    Exercise 2:

    \(SupplyPrice(q)=\ln (q+10)\) and \(DemandPrice(q)= 100-q\text{.}\)

    Exercise 3:

    \(SupplyPrice(q)= 50(1-(0.99)^q)\) and \(DemandPrice(q)= 100(0.99)^q\text{.}\)

    Answer

    The two curve intersect at the point of market equilibrium, \((109.31, 33.33)\text{.}\)

    \[ ProducerSurplus= \int_0^{109.31} (33.33)- \left({50(1-(0.99)^q)}\right)\ dx=1494.79 \nonumber \]

    \[ ConsumerSurplus= \int_0^{109.31} \left({100(0.99)^q}\right)-33.33)\ dx=2989.58. \nonumber \]

    \[ TotalSocialGaine=ProducerSurplus+ConsumerSurplus=4484.37 \nonumber \]

    Exercise 4:

    \(SupplyPrice(q)= 50(1-(0.95)^{q/10}\) and \(DemandPrice(q)= 150(0.95)^{q/10}\text{.}\)

    Exercise 5:

    \[ SupplyPrice(q)=\begin{cases} 5&q\le 10\\ q^2/20&q>10\\ \end{cases} \nonumber \]

    and

    \[ DemandPrice(q)=\begin{cases} 100&q\le 10\\ 110-q&q>10\\ \end{cases} \nonumber \]

    Answer

    The two curve intersect at the point of market equilibrium, \((37.958, 72.042)\text{.}\)

    \[ ProdSurplus= \int_0^{37.958} (72.042)- (SupplyPrice(q))\ dx=1789.732. \nonumber \]

    The integral needs to be done in two parts with the break at 10.

    \[ ConsSurplus= \int_0^{37.958} DemandPrice(q)-72.042\ dx=670.405. \nonumber \]

    \[ TotalSocialGain=ProdSurplus+ConsSurplus=2460.137. \nonumber \]

    Exercise 6:

    \(SupplyPrice(q)= q/2\) and

    \[ DemandPrice(q)=\begin{cases} 200&q\le 10\\ 250*.8^{q/10}&q>10\\ \end{cases} \nonumber \]

    Exercise 7:

    Assume SupplyPrice(q)= 30+q and DemandPrice(q)= 170-q.

    1. Find the consumer surplus, producer surplus, and total social gain at market equilibrium.
    2. If the producers can form a cartel and restrict the available quantity to 50, selling at the supply price for 50, what are the consumer surplus, producer surplus, and total social gain?
    3. Find the price where a producer cartel will maximize the producer surplus. Find the producer surplus at that price.
    Answer
    1. The two curve intersect at the point of market equilibrium, \((70, 100)\text{.}\)

      \[ ProdSurplus= \int_0^{70} (100)- (30+q)\ dx=2450. \nonumber \]

    \[ ConsSurplus= \int_0^{70} (170-q)-100\ dx=2450. \nonumber \]

    \[ TotalSocialGain=ProdSurplus+ConsSurplus=4900. \nonumber \]


    7.8: Economics Applications of the Integral is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?