Linear and quadratic functions

45 min · 12 drills

In this topic the stimulus is a function or a small business situation: a cost function with fixed costs, a price per unit, a parabola in one of its three forms, a line next to a parabola. Five statements follow, and anywhere from one to five of them are true. Almost every one is decided at one of a few places: the intercept, the slope, a zero, the vertex or a point of intersection (Schnittpunkt). If you know where these places sit in the equation of the function, there is little to calculate.

The formula sheet (Formelsammlung) gives you exactly one formula for this topic: number (1), the quadratic formula for ax2+bx+c=0 with a≠0. It also gives four notations for bounded intervals, (a,b), [a,b], (a,b] and [a,b), with which you write down a profit zone, for instance. Intervals with ∞, as they occur for ranges and intervals of monotonicity, are not on it. It does not contain the equation of a line or the slope from two points, the vertex form, completing the square, the vertex position (Scheitelstelle) xS=−b2a, or the rule by which the discriminant fixes the number of zeros; nor the terms fixed costs, revenue, profit and break-even point. The differentiation rules (2) to (10) are on the sheet, but you do not need them here: the vertex of a parabola gives its highest or lowest point without a derivative.

The article starts with the line and its business reading as cost, revenue and profit. Then comes the parabola: its forms, its vertex, its zeros, its common points with a line, and at the end the revenue that arises from a price-demand function. How to test a statement and refute it with a single counterexample is covered in the article on logic; here the subject is the calculations the statements depend on.

A linear function grows by the same amount at every step

Linear function (lineare Funktion)

A linear function has the form f(x)=k⋅x+d with real numbers k and d. Its graph is a straight line. Austrian textbooks call the two numbers k and d, German ones often m and b; the meaning is the same.

Slope (Steigung)

The slope k states how much the function value grows when x increases by 1, and it is the same amount at every point: f(x+1)−f(x)=k. If k is negative, the function value falls by ∣k∣ at every step.

The intercept d (Achsenabschnitt) is the function value at zero, because f(0)=k⋅0+d=d. That is where the graph crosses the y-axis. If two points (x1∣y1) and (x2∣y2) of the line are known, the slope is the quotient of the two increases:

k=y2−y1x2−x1

One of the two points then gives the intercept. For the points (1∣5) and (4∣−1) we get k=−1−54−1=−63=−2. Substituting the first point gives 5=−2⋅1+d, so d=7 and f(x)=−2x+7. The check with the second point, −2⋅4+7=−1, takes a moment and catches sign errors. Mind the order in the fraction: the increase of the function values goes on top, the increase of the inputs below. Dividing the other way round gives the reciprocal of the slope.

SlopeBehaviourZeros
k>0strictly increasing (streng monoton steigend)exactly one
k<0strictly decreasing (streng monoton fallend)exactly one
k=0constant, horizontalnone for d≠0, every point for d=0

A zero (Nullstelle) is the point where f(x)=0. For k≠0 there is exactly one: from kx+d=0 it follows that x=−dk. For f(x)=−2x+7 this is x=72=3.5. In the same way you ask backwards for the input that gives a prescribed value: f(x)=15 means −2x+7=15, so x=−4. A line with k≠0 is always monotonic, but increasing only when k is positive.

Your turn1 of 12

A linear function has the value 11 at 2 and the value 2 at 5. What is its equation?

In the simplest model, cost, revenue and profit are lines

The business problems of this topic always use the same terms. x is the quantity, the number of units produced or sold, and all amounts are in euros.

Fixed costs (Fixkosten)

Fixed costs arise no matter how much is produced: rent, insurance, the depreciation of a machine. They are the value of the cost function at quantity zero, so in a linear cost function K(x)=k⋅x+d they are the intercept d.

Variable costs (variable Kosten)

Variable costs grow with the quantity, for example materials and energy. In the linear cost function they are k⋅x, and the slope k is called the variable cost per unit (variable Stückkosten): every additional unit makes production more expensive by exactly this amount.

Revenue and profit (Erlös und Gewinn)

Revenue (Erlös, also Umsatz) is what the sales bring in: price times quantity, so with a fixed price p it is E(x)=p⋅x. Profit is revenue minus costs, G(x)=E(x)−K(x). A negative profit is a loss.

An example. A firm has the costs K(x)=5x+390 and sells at a price of 18 euros per unit, so E(x)=18x. The profit is

G(x)=18x−(5x+390)=13x−390

The bracket is not cosmetic: the minus applies to the whole cost function, so the fixed costs are subtracted too. The slope 13 is the amount each unit sold leaves over after its variable costs. It is called the contribution margin per unit (Stückdeckungsbeitrag), because it contributes to covering the fixed costs. The difference of two linear functions is again linear, and its slope is the difference of the two slopes.

Break-even point (Gewinnschwelle)

The break-even point (Gewinnschwelle) is the quantity at which revenue and costs are equal and the profit is zero. In the picture it is the point where the revenue line and the cost line intersect.

In the example, 13x−390=0 gives the break-even point x=30. There E(30)=18⋅30=540 and K(30)=5⋅30+390=540. Below it the firm makes a loss, above it a profit. So the break-even point comes from dividing the fixed costs by the contribution margin per unit, not by the price: 39018 would give about 21.7 units, and there the profit is still clearly negative.

The revenue line E(x) = 18x starts at the origin, the cost line K(x) = 5x + 390 at the fixed costs of 390. They cross at the break-even point (30 | 540); to the left lies the loss, to the right the profit. Axes: quantity x from 0 to 50, euros up to 900. The revenue line E(x) = 18x starts at the origin, the cost line K(x) = 5x + 390 at the fixed costs of 390. They cross at the break-even point (30 | 540); to the left lies the loss, to the right the profit. Axes: quantity x from 0 to 50, euros up to 900.

You can compute the profit at a given quantity in two ways, and the second serves as a check. At 50 units, G(50)=13⋅50−390=260. Equally: 50 units are 20 units above the break-even point, each of them brings 13 euros, and 20⋅13=260.

Your turn2 of 12

A good causes variable costs of 9 euros per unit and fixed costs of 630 euros; it sells for 16 euros per unit. Where is the break-even point?

With fixed costs a linear function is not proportional

Proportional function (proportionale Funktion)

A function is proportional if it has the form f(x)=k⋅x, so its line passes through the origin. Only then does twice the x give twice the function value.

With an intercept d≠0 this is lost. Twice the function value is 2⋅f(x)=2kx+2d, while the function value at twice the input is f(2x)=2kx+d. The two differ by d, because the intercept occurs only once. In the example K(10)=440 and K(20)=490, not 880: the fixed costs of 390 euros do not arise twice at 20 units.

f(2x)=2⋅f(x) for every x  ⇔  d=0
Average cost per unit (Stückkosten)

The average cost per unit (Stückkosten, also Durchschnittskosten) is the total cost divided by the quantity, K(x)x. For a linear cost function this is k+dx: the fixed amount k plus a share of the fixed costs that shrinks as the quantity grows.

Two quantities must therefore be kept apart. The increase per additional unit is the same everywhere for a linear cost function, namely k. The average cost per unit, by contrast, falls with the quantity, because the fixed costs are spread over more units. In the example each additional unit costs 5 euros, while the average cost is 44010=44 euros at 10 units and 54030=18 euros at 30 units. That at 30 units it equals the price exactly is no accident: at the break-even point the price just covers the average cost of a unit.

Your turn3 of 12

For f(x)=4x+12 and every x>0:

Two cost lines: left of the intersection the lower fixed costs win

Often two processes, tariffs or suppliers are compared. Let process A have the costs KA(x)=9x+150 and process B the costs KB(x)=4x+400. A has the lower fixed costs, B the lower variable cost per unit.

Both cost the same where the lines intersect: 9x+150=4x+400 gives 5x=250, so x=50, and there both cost 600 euros. Which process is cheaper to the left and right of it is shown by the difference KA(x)−KB(x)=5x−250. It is negative for x<50, where A is cheaper, and positive for x>50, where B is cheaper. A numerical check on each side confirms this: at 10 units A costs 240 and B 440 euros, at 80 units A costs 870 and B 720 euros.

This gives a rule that needs no calculation. Two lines with different slopes intersect exactly once; to the left of the intersection the line with the larger slope lies below, to the right it lies above. If the lines have the same slope and different intercepts, they are parallel and never meet, and then one process is cheaper at every quantity. The claim that one of two processes with different slopes is cheaper at every quantity is therefore true only if the intersection lies outside the quantities under consideration, for example at a negative quantity.

Your turn4 of 12

A print shop can do a job with process A at a cost of KA(x)=12x+180 or with process B at KB(x)=4x+660 euros for x units. For which quantities is B cheaper than A?

A quadratic function has three forms, and each shows something different

Quadratic function (quadratische Funktion)

A quadratic function has the form f(x)=ax2+bx+c with a≠0. Its graph is called a parabola (Parabel). If a=0, a linear function is left.

Vertex (Scheitelpunkt)

The vertex S=(xS∣yS) is the lowest point of a parabola that opens upwards (nach oben offen) and the highest point of one that opens downwards (nach unten offen). The vertical line x=xS is its axis of symmetry (Symmetrieachse).

The same function can be written in three ways. In the exam one of them often appears in the stimulus and another in a statement, and you have to check whether both describe the same function.

FormShapeWhat you read off at once
general form (allgemeine Form)f(x)=ax2+bx+copening from a, y-intercept c=f(0)
vertex form (Scheitelform)f(x)=a(x−xS)2+ySvertex (xS∣yS)
factored form (Produktform, Nullstellenform)f(x)=a(x−x1)(x−x2)zeros x1 and x2

An example with all three forms:

f(x)=2x2−4x−6=2(x−1)2−8=2(x+1)(x−3)

From the general form you read off that the parabola opens upwards (a=2>0) and crosses the y-axis at −6. The vertex form shows the vertex (1∣−8), the factored form the zeros −1 and 3. A factored form exists only if the function has real zeros. Whether two forms belong together you check by multiplying out: 2(x−1)2−8=2x2−4x+2−8=2x2−4x−6.

Upward-opening parabola with zeros −1 and 3, y-intercept −6, vertex S(1 | −8) and the dashed axis of symmetry x = 1. Beside it the three forms: general form 2x² − 4x − 6 shows f(0) = −6, vertex form 2(x − 1)² − 8 shows S(1 | −8), factored form 2(x + 1)(x − 3) shows −1 and 3. Upward-opening parabola with zeros −1 and 3, y-intercept −6, vertex S(1 | −8) and the dashed axis of symmetry x = 1. Beside it the three forms: general form 2x² − 4x − 6 shows f(0) = −6, vertex form 2(x − 1)² − 8 shows S(1 | −8), factored form 2(x + 1)(x − 3) shows −1 and 3.

The signs inside the brackets are the most common source of errors. (x−1)2 contains the vertex position +1, (x+1) the zero −1: the number in the bracket appears with the opposite sign, because the bracket becomes zero exactly at that point. You may not drop the factor a in any of the forms. (x+1)(x−3) has the same zeros as f but is a different function: its vertex value (Scheitelwert) is −4, not −8.

The vertex form also describes a shift of the standard parabola y=x2 (Normalparabel). If it is shifted u to the right and v upwards, the following equation results; shifts to the left and downwards correspond to negative u and v. So to the right means a minus in the bracket: the graph of (x−u)2 reaches at the point u the value that x2 has at 0.

y=(x−u)2+v,S=(u∣v)

Shifting x2 by 1 to the left and 2 upwards gives (x+1)2+2 with the vertex (−1∣2), multiplied out x2+2x+3. This parabola has no zeros: its lowest point lies at height 2 above the x-axis, and a square plus 2 is never zero. The discriminant confirms it: D=4−12=−8.

Your turn5 of 12

A quadratic function is given in vertex form: f(x)=2(x−1)2−18. Which factored form describes the same function?

Completing the square gives the vertex

If the general form is given, you obtain the vertex form by completing the square (quadratische Ergänzung). The pattern is the binomial formula (x+h)2=x2+2hx+h2: half the coefficient of x becomes h, and h2 is added and immediately subtracted again.

x2+10x+18=(x2+10x+25)−25+18=(x+5)2−7

The vertex is (−5∣−7). If a≠1, first factor a out of the two terms containing x:

−3x2+12x−4=−3(x2−4x)−4=−3((x−2)2−4)−4=−3(x−2)2+8

The vertex is (2∣8), and since a=−3<0 it is a maximum point (Hochpunkt). Carrying out the same calculation with letters instead of numbers gives the vertex position as a formula:

xS=−b2a,yS=f(xS)

This formula is not on the formula sheet. It is short enough to remember, and it contains a minus that is easily forgotten. For −3x2+12x−4 it gives xS=−122⋅(−3)=2 and f(2)=−12+24−4=8, so the same vertex. Two further routes lead to the vertex position without the formula: it lies exactly halfway between the two zeros, xS=x1+x22, and equally halfway between any two points at which the function has the same value.

Your turn6 of 12

Where is the vertex of f(x)=2x2+16x+24?

The sign of a decides the opening, the range and the monotonicity

Propertya>0a<0
openingupwardsdownwards
vertexminimum point (Tiefpunkt), smallest valuemaximum point, largest value
range (Wertebereich)[yS,∞)(−∞,yS]
left of xSstrictly decreasingstrictly increasing
right of xSstrictly increasingstrictly decreasing

The reason lies in the vertex form a(x−xS)2+yS: the square is never negative and is zero only at x=xS. For a>0 something non-negative is always added to the vertex value, for a<0 it is subtracted. The larger ∣a∣, the narrower the parabola; the direction is determined by the sign alone.

For f(x)=−(x+1)2+4 this means: the largest value is 4 and is attained at x=−1, the range is (−∞,4], on (−∞,−1] the function is strictly increasing, on [−1,∞) it is decreasing. It does not take arbitrarily large values, but it does take arbitrarily small ones. The formula sheet shows only bounded intervals; the notation with ∞ you have to know yourself: at ∞ there is always a round bracket, because ∞ is not a number that is attained. A statement that the parabola is monotonic on an interval containing the vertex position in its interior is always false.

The axis of symmetry x=xS saves work. At two points equally far to the left and right of xS the parabola has the same value: f(xS−h)=f(xS+h). For f(x)=2x2−4x−6 with xS=1 we therefore have f(−2)=f(4)=10. Two special cases can be read off the coefficients. If b=0, then xS=0 and the graph is symmetric about the y-axis. If c=0, then f(0)=0 and x=0 is a zero, because x can be factored out of ax2+bx.

Three points with different inputs determine a parabola. Let (0∣−1), (2∣5) and (−1∣2) be given. The point on the y-axis immediately gives c=−1. The other two give 4a+2b−1=5 and a−b−1=2, so 2a+b=3 and a−b=3. Adding the two equations gives 3a=6, hence a=2 and b=−1, so f(x)=2x2−x−1. Check the result at all three points. And do not confuse given points with zeros: a point (x∣y) lies on the x-axis only if y=0.

Your turn7 of 12

What is the range of f(x)=−2x2+12x−10?

Formula (1) gives the zeros, the discriminant gives their number

The zeros of a quadratic function are the solutions of ax2+bx+c=0. The formula for them is supplied as number (1):

x=−b±b2−4ac2a,a≠0

For 2x2+x−6=0 we have a=2, b=1 and c=−6, so x=−1±1+484=−1±74, and the zeros are 1.5 and −2. The sign of c enters −4ac: −4⋅2⋅(−6)=48.

Discriminant (Diskriminante)

The discriminant is the expression under the root, D=b2−4ac. Its sign decides how many real zeros there are, before you take the root.

DZerosPicture
D>0two different onesthe parabola crosses the x-axis twice
D=0one, counted twicethe vertex lies on the x-axis
D<0no real onethe parabola lies entirely above or entirely below the x-axis

One example for each row: x2−2x−3 has D=4+12=16 and the zeros −1 and 3; x2−6x+9=(x−3)2 has D=0 and only the zero 3; x2+2x+5 has D=4−20=−16 and none. If a, b and c are whole numbers and D is positive but not a perfect square, the zeros are irrational. A statement naming two whole numbers as zeros is then checked fastest by substituting: if one of the two numbers does not give zero, the statement is settled.

Not every equation needs the formula. If the constant term (absolutes Glied) is missing, factor out x: 3x2−12x=3x(x−4) has the zeros 0 and 4. If the linear term is missing, solve for x2: 2x2−18=0 gives x2=9 and x=±3. And a function in factored form has its zeros already in the brackets, because a product is zero exactly when one factor is zero.

Between two zeros and outside them a parabola has a fixed sign, because the sign changes at a simple zero and nowhere else. A parabola that opens upwards is negative between its zeros and positive outside them, one that opens downwards the other way round. The factored form shows the reason: in 2(x+1)(x−3) both brackets are negative for x<−1, both positive for x>3, and in between exactly one is negative.

Conversely, the factored form is built from the zeros. The zeros x1 and x2 belong to a(x−x1)(x−x2), where a is the coefficient of x2. The zeros 4 and −2 with a=1 belong to (x−4)(x+2)=x2−2x−8. A wrong sign in one bracket gives itself away in the linear term when you multiply out.

Your turn8 of 12

The standard parabola y=x2 is shifted 2 to the left and 9 downwards. Where are the zeros of the shifted parabola?

Your turn9 of 12

For f(x)=−(x+4)(x−2) with x∈R:

Parabola and line: the discriminant of the difference counts the common points

Common points of a parabola p and a line g are found by setting them equal. Bringing everything to one side gives p(x)−g(x)=0. This is again a quadratic equation, because a line has no term with x2 that could cancel the ax2 of the parabola. Its discriminant counts the common points.

Discriminant of p−gcommon pointsposition
positivetwothe line cuts the parabola (schneiden)
zeroonethe line touches the parabola (berühren, tangent)
negativenonethe line passes the parabola by

Take the parabola p(x)=x2+x+1 and the lines g(x)=−x+d for different d. Setting them equal gives x2+2x+1−d=0 with the discriminant D=4−4(1−d)=4d.

  • d=4: D=16>0. From x2+2x−3=0 we get x=1 and x=−3; the points of intersection are (1∣3) and (−3∣7).
  • d=0: D=0. From x2+2x+1=(x+1)2=0 only x=−1 follows; the line touches the parabola at the point (−1∣1).
  • d=−1: D=−4<0. There is no common point.

Compute the second coordinate of a common point with the simpler of the two functions, usually the line, and check it with the other. The difference p(x)−g(x) also tells you which curve lies on top: where it is positive, the parabola runs above the line. In the touching case p(x)−g(x)=(x+1)2≥0, so the upward parabola lies above the line everywhere and meets it at only one point. If such a tangent is shifted upwards, two points of intersection appear; shifted downwards, none. For a downward parabola it is the other way round.

Your turn10 of 12

How many common points do the parabola p(x)=x2+6x+7 and the line g(x)=−2x−9 have?

A price-demand function turns revenue into a parabola

Price-demand function (Preis-Absatz-Funktion)

The price-demand function p(x) states at which price the quantity x can be sold. It is decreasing: whoever wants to sell more has to offer at a lower price. Some problems state the relation the other way round, as the quantity sold depending on the price; the calculation is the same, only with the price as the variable.

With a price that depends on the quantity, the revenue E(x)=p(x)⋅x is no longer linear. For p(x)=21−0.3x we get

E(x)=(21−0.3x)⋅x=21x−0.3x2

This is a downward parabola with the zeros 0 and 70: without sales there is no revenue, and at a price of zero there is none either. Its vertex lies at x=−212⋅(−0.3)=35, halfway between the zeros. The largest revenue is E(35)=735−367.5=367.5 euros, at the price p(35)=10.5 euros. Anyone who computes only the first term at the revenue maximum gets 735 and forgets that the second is subtracted.

With the costs K(x)=3x+150 the profit is

G(x)=21x−0.3x2−(3x+150)=−0.3x2+18x−150

Its vertex lies at x=−182⋅(−0.3)=30, and the largest profit is G(30)=−270+540−150=120 euros. So profit reaches its maximum at a smaller quantity than revenue does. This is the rule and not a coincidence of this example: the variable costs lower the coefficient of x from 21 to 18, and with it the vertex position −b2a moves to the left. Put plainly, each additional unit brings less and less extra revenue but costs the same, and profit stops growing as soon as the extra revenue has fallen to the variable cost per unit of 3 euros.

Profit zone (Gewinnzone)

The profit zone is the range of quantities at which the firm makes a profit. For a downward profit parabola it is the interval between its two zeros: the break-even point on the left and the profit limit (Gewinngrenze) on the right. Both notations occur: closed if the endpoints with zero profit count, and open if a strictly positive profit is meant.

In the example the fastest route is the vertex form G(x)=−0.3(x−30)2+120. From G(x)=0 it follows that (x−30)2=400, so x−30=±20 and x=10 or x=50. The profit zone is [10,50] if the endpoints with zero profit are included, and (10,50) if a strictly positive profit is required. In a statement, note which bracket is used and whether it speaks of profit or of no loss. The vertex position 30 is not the right end of the profit zone but its middle, and at points equally far to the left and right of it the profit is the same: G(20)=G(40)=90.

To the right of the vertex profit falls again, although more is sold: in the example 40 units bring only 90 euros of profit, while 30 units bring 120 euros. A statement that profit rises with the quantity holds for a profit parabola only to the left of the vertex. The same tools work wherever profit comes out as a downward parabola: the vertex for the maximum, the zeros for the profit zone.

Your turn11 of 12

For a product the price-demand function is p(x)=60−2x and the costs are K(x)=12x+100. Which statement is true?

Five statements: the cheapest check first

For this task format, what the logic article says applies: a statement is true if it holds for every admissible value, and a single value at which it fails refutes it. With functions this value is usually a function value you substitute. The checks, ordered by effort:

  1. Substitute. A claimed zero, a claimed function value or point is confirmed or refuted with one line of calculation.
  2. The point zero. f(0) is the y-intercept and, for costs, the fixed costs; in the general form it is the constant term.
  3. The sign of a. It decides the opening, largest or smallest value, the range and the sign between the zeros.
  4. The vertex position. −b2a or the midpoint of the zeros decides every statement about monotonicity, maximum and symmetry.
  5. The discriminant. It decides every statement about the number of zeros or common points without your computing the solutions.

A complete example. Let f(x)=−x2+2x+8; the vertex form is −(x−1)2+9, the factored form −(x+2)(x−4).

  • The graph crosses the y-axis at 8. True: f(0)=8, the constant term.
  • The largest function value is 9, attained at x=1. True. Since a=−1<0, the vertex (1∣9) is a maximum point.
  • On (−∞,2], f is strictly increasing. False. The interval extends beyond the vertex position 1, and f(2)=8 is smaller than f(1)=9.
  • f(−1)=f(3) holds. True. Both points are at distance 2 from the axis of symmetry x=1; both values are 5.
  • Between the zeros −2 and 4, f is negative. False. The parabola opens downwards and is positive there, as f(0)=8 already shows.

Four of the five decisions need no real calculation, only the constant term, the sign of a and the position of the vertex.

Your turn12 of 12

Let f(x)=−x2−4x+5. Which statement is true?

Common mistakes

  • Forgetting the fixed costs. K(x)=kx+d is not kx at x units, and twice the quantity does not mean twice the costs.
  • Dividing the fixed costs by the price. The break-even point is dp−k: fixed costs divided by the contribution margin per unit.
  • The sign of the vertex position. It is −b2a, not b2a, and (x−3)2 contains the point +3.
  • Taking the vertex height for the y-intercept. The y-intercept is f(0), the vertex height is f(xS); they are equal only when xS=0.
  • Confusing touching and cutting. D=0 means one common point at which the line touches the parabola; two points exist only when D>0.
  • Taking the revenue maximum for the profit maximum. With variable costs, the largest profit lies at a smaller quantity than the largest revenue.
  • Computing only one term at the maximum. The vertex value is f(xS) with all three terms.

Key takeaways

  • Line. In f(x)=kx+d, k is the fixed increase per unit and d=f(0); with d≠0 the function is not proportional.
  • Cost, revenue, profit. G=E−K; the break-even point is the zero of G and the intersection of revenue and costs.
  • Three forms of the parabola. The general form shows c=f(0), the vertex form the vertex, the factored form the zeros; the sign of a shows the opening.
  • Vertex. Completing the square or xS=−b2a, neither on the formula sheet; the axis of symmetry lies halfway between points with equal values.
  • Discriminant. D=b2−4ac counts the zeros, and for p−g the common points of parabola and line.
f(x)=a(x−xS)2+yS,xS=−b2a

Now practise it

Linear and quadratic functions

Trainer · Mathematics

Practise
Next: Power Functions (Potenzfunktionen)
0/12

Was this article helpful?