Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

1.1: Linear Functions and Models

( \newcommand{\kernel}{\mathrm{null}\,}\)

We will start this chapter with a review of linear functions. In business there are quite a few examples of linear equations. Examples include supply and demand functions. There are some standard concepts related to lines that we will review, including the slope.

Following the conventions of microeconomics, we will often use the variables p and q, for price and quantity, rather than x and y. We will also follow the conventions of economics in treating quantity as the independent variable. (The q-axis will be the horizontal axis. A fast web search for supply demand equilibrium will convince you this standard usage.)

Equations of a line

From prior courses, such as college algebra, you will remember that lines can be written in several different forms. If we are given the slope and the y-intercept, the slope intercept form will be the equation of choice. If we are given a point and a slope, it might be faster if we use the point-slope form of a line.

y=mx+b

the slope-intercept form of a line

yy0=m(xx0)

the point-slope form of a line

In a business setting we are likely to use q instead of x and p instead of y. With this notation these standard equations of a line become:

p=mq+b

the slope-intercept form of a line

pp0=m(qq0)

the point-slope form of a line

Example 1.1.1

Supply and demand equations are often modeled by linear equations. The supply function is a line with a positive slope, and the demand function is a line with a negative slope.

Solution

clipboard_ef727d8405744738c2a7f10b120e9aff0.png

Figure 1.1.2. The intersection of a supply and demand curve

The vertical axis shows the price, the horizontal axis shows quantity. Both supply (S) and demand (D) are linear functions. In this diagram ‘B’ denotes a surplus of supply, and ‘A’ denotes a surplus of demand.

Recall, that the slope of a line through the points P0=(q0,p0) and P1=(q1,p1) is given by:

m=riserun=(p1p0)(q1q0)

clipboard_e2f98718452b389f8ada52f48dfa06362.png

There are two other forms of a line that are sometimes used. The general form of a line is a standard notation used in mathematics. The 2-point form of a line is very handy in those situations where we are not given a slope, but we are given information about two points that lie on the line.

ax+by+c=0

The general form of a line

yy0=y1y0x1x0(xx0)

The 2-point form of a line

As above, in the setting of this course we may be using p (price) and q (quantity) as our variables. This would result in equations that look as follows:

aq+bp+c=0

The general form of a line

pp0=p1p0q1q0(qq0)

The 2-point form of a line

Example 1.1.3: Finding four versions of a line.

We find that we can sell 150 widgets a day if we sell them at $10. If we raise the price to $15, we can only sell 110 widgets a day. Assume that there is a linear relationship between price and quantity sold. Find the equation of the line in all four forms.

Solution

Writing this using our variables p (price) and q (quantity of widgets) we see that when p=10, q=150 and when p=15, q=110. Points are (usually) given as (q,p), so this means we have two point (150,10) and (110,15) on the line. We always need to find the slope of the line, and in this case

m=1510110150=540=18.

We are given two points, so the 2-point form of the line should be the easiest formula to find:

pp0=p1p0q1q0(qq0).

We just found the slope and we just need to pick a point (p0,q0) to finish the problem. (Recall that p and q are the variables, so we want to leave those as they are.) In this case lets pick (p0,q0)=(150,10). Then we get this simplified version, which is also the point-slope form of this line.

p10=18(q150).

From here we can very easily find the slope intercept form by some straight-forward algebra: p10=18(q150) implies that

p=18(q150)+10=18q+1508+10=18q+2308.

And finally the general form will be another exercise in algebra. We clear the fractions and put everything on one side.

8p+q230=0.

Example 1.1.3: Finding a line from two points

Suppose that a linear cost-quantity relationship exists in producing widgets. There is a fixed cost of $400. There is also a per-unit cost of $11.

  1. Find the equation of the line.
  2. Find the cost of making 200 widgets.
Solution
  1. We have one point of the form (quantity, cost) at (0, 400) from the fixed cost. This point happens to be an intercept. The slope of the line is m=11/1=11. We will let C stand for Cost and q stand for quantity. The general formula for a line with these variables will have the form \[ C=m q+b. \nonumber \nonumber \] In this example m=11 and b=400, hence the equation of the line is C=11q+400
  2. Using the equation form part a) we see that the cost of producing 200 widgets is \[ C=11 (200)+400=\$2,600 \nonumber \nonumber \]
Example 1.1.5: A nonlinear function

Sarah is paid $500 for working up to 40 hours per week. For work beyond 40 hours per week she is paid $18/hour.

  1. Find the equation of the line.
  2. How much is she paid if she works 56 hours in a week?
  3. What is she paid for working 30 hours in a week?
Solution
  1. For this example we will use “designer variables”. The output will be Pay, and the input variable – the number of hours worked – will be hrs. We are told that Pay = 500 when hrs = 40. The slope of the line work beyond 40 hours is m=18. Another way to think of this is to say that there is a fixed Pay of $500 and a variable Pay for any hours in excess of 40: i.e. (hrs - 40). Thus, the equation of the line, according to the point-slope form is \[ \text{Pay} = \text{variable pay} + \text{Fixed pay}\text{.} \nonumber \nonumber \] This gives us Pay=m(hrs40)+500=18(hrs40)+500.
  2. The pay for working 56 hours is 18(56-40)+500=$788.
  3. The pay for working 30 hours is $500. This is a trick question part of the problem. From the text of the problem, the linear model only works for overtime, with a flat rate applying to less than 40 hours per week. Comment: The function should be written as a piecewise defined function.

This question is all about the function f defined by

Pay={500hrs4018(hrs40)+500hrs>40

It can be useful when writing reports to have variables that convey some meaning. We could have used y for Pay, and x for hrs, but using the much more easily interpreted variables named Pay and hrs helps when using the formulas.

Exercises 1.1.2Exercises 1.1 Linear Functions and models

For problems 1-6, given two points in the (q,p) plane and a value q0:

  1. Find the slope of the line determined by the points.
  2. Give the equation of the line determined by the points.
  3. Give the value of p predicted for q0 by the line.
Exercise 1:

Points (2,5) and (6,17), with q0=4.

Hint.

Find the slope and use the point-slope form

Answer

First find the slope: m=change in pchange in q=17562=124=3

Next we find the equation of the line. There are several ways to do this and two methods are outlined below.

  • Method 1: use the point-slope equation: pp0=m(qq0). We can choose either one of the points, so in this case we will find the line using the point (q0,p0)=(2,5). This gives the equation p5=3(q2).

    Rewrite this as p=3q1

  • Method 2: use the slope- intercept equation p=mq+b. Use (q,p)=(2,5) and m=3 and solve for b: 5=3(2)+b. And solving for b we have that b=1, and hence p=3q1

Evaluate at the given point. p(4)=341=11

Exercise 2:

Points (5,7) and (10,7), with q0=20.

Exercise 3:

Points (20,10) and (40,5), with q0=12.

Answer

Just as in problem 1 we find the slope and then find the equation of the line.

First find the slope: m=change in pchange in q=5104020=520=14

Using p=m(qq0)+p0 with (q0,p0)=(20,10) and m=14, we get p=14(q20)+10. Solving for p we get p=14q+15

Evaluate at the given point. p(12)=14(12)+15=12

Exercise 4:

Points (5,62) and (115,783), with q0=415.

Exercise 5:

Points (273,578) and (412,6), with q0=309.

Answer

Just as in problem 1 we find the slope and then find the equation of the line.

First find the slope: m=change in pchange in q=5786273412=572139

Using p=m(qq0)+p0 with (q0,p0)=(412,6) and m=572139, we get p=572139(q412)+6. (We can combine the constant terms – the 6 and the 572139(412), but leaving the equation in this form is acceptable.)

Evaluate at the given point. p(309)=572139(309412)+6=572139(103)+6=429119139

Exercise 6:

Points (509,17) and (211,132), with q0=4.

  • For problems 7-12, start with the information given:
  1. Give the equation of the line determined by that information.
  2. Using the line, give the predicted value of p for the given q0.
  3. Give the value of q for which the predicted value of p is 0.
Exercise 7:

A slope of 3, passing through (6,3), with q0=4.

Answer

Using p=mq+b, we get 3=3(6)+b, so b=15 and the equation of the line is p=3q15

If q0=4, then p=3q15=3(4)15=3

The predicted value of p is 0, when 0=3q15. Solving for q we get q=5. [Comment: in part a) we could have used the point-slope for as well.]

Exercise 8:

A slope of 2, passing through (2,5), with q0=3.

Exercise 9:

A slope of 12.7, passing through (22,183), with q0=46.

Answer

Using p=m(qq0)+p0 we get p=12.7(q22)+183.

When q0=46, we get that p=12.7(4622)+183=12.7(24)+183. And hence p=487.8

The predicted value of p is 0, when 0=183+12.7(q22). Solving for q we get: 12.7(q22)=183 This implies (q22)=18312.7. Therefore,

q=2218312.7=7.59.

Exercise 10:

A slope of 0.23, passing through (7.6,19.7), with q0=59.6.

Exercise 11:

A slope of 0, passing through (12.3,9.8), with q0=74.

Answer

Using p=m(qq0)+p0 we get p=0(q12.3)+9.8 or p=9.8.

When q0=74, we get that p=9.8. (This is a constant function, and the output is going to be 9.8 no matter what value of q we plug in.)

The predicted value of p is never 0, because the predicted value of p is always 9.8.

Exercise 12:

Add exercises text here.

Answer

A slope that is undefined, passing through (6,3), explaining why part b would not make sense.

  • For problems 13-18, start with the equation given:
  1. Give the slope of the line or say that the slope is undefined.
  2. Give the intercepts of the line with the axes.
  3. Give two points that are on the line but not on the axes.
Exercise 13:

3p+2q=6.

Answer

Solve for p so we can read off the slope more easily: p=2/3q+2. Hence the slope is m=2/3

To get the p-intercept we set q=0, so that 3p=6, and we get p=2 To get the q-intercept we set p=0, so that 2q=6, and we get q=3

We can pick any two values for q (except 0 and 3 because those are intercepts), so arbitrarily pick some values: say q=1 and q=1. If q=1, then 3p+2=6, and hence p=4/3 so the point would be (q,p)=(1,4/3) If q=1, then 3p2=6, and hence p=8/3 so the point would be (q,p)=(1,8/3)

Exercise 14:

7p4q+14=0.

Exercise 15:

y=5.

Answer

The slope is 0

The y-intercept is y=5. There is no x-intercept

No matter what x we choose the y value will always be 5. So we can pick any two values of x (not 0 to avoid the intercept). For instance (x,y)=(20,5), (x,y)=(2,5), (x,y)=(7,5), etc are all points on the line.

Exercise 16:

x=3.

Exercise 17:

y=4(x3)+9.

Answer

The slope is 4

To get the y-intercept we set y=0, so that y=4(3)+9=3,

To get the x-intercept we set y=0, so that 0=4(x3)+9. Solve for x and we get x3=94 and x=394=34

Avoiding the intercepts we can choose x to be any number other than x=0 and x=3/4. We may look for nice values of x that make the arithmetic come out nice: for example choose x=3 and x=4. When x=3, y=9, and we get the point (x,y)=(3,9). When x=4, y=13, and we get the point (x,y)=(4,13).

Exercise 18:

112p+257q=4783.

Exercise 19:

Suppose that the relationship between price and quantity of widgets sold is linear. When the price is $23, we can sell 4783 widgets. If we raise the price to $27, we can only sell 4295 widgets. Find the equation of the line.

Answer

The information tells us we have two points: (q,p)=(4783,23) and (q,p)=(4295,27). (Note that in business the quantity q is usually the input and price p is usually the output.)

Next we need the slope: m=(2723)/(42954783)=4/(488)=1/122

Using pp0=m(qq0) we get p23=1/122(q4783). We can rewrite the latter as p=231/122(q4783).

Exercise 20:

Suppose that the relationship between price and quantity of gizmo kits we can buy is linear. When the price is $15, we can buy 6000 gizmo kits. If we lower the price we will pay to $13, we can only buy 4500 kits. Find the equation of the line.


This page titled 1.1: Linear Functions and Models is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Mike May, S.J. & Anneke Bart via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?