This page allows you to practice some exercises on Functions of One Variable. If you notice that you have difficulties, we advise you to go over the corresponding sections in the book.
These questions correspond to the following sections:
- Section 4.4 - Linear Functions
- Section 4.5 - Linear Models
- Section 4.6 - Quadratic Functions
Question 7
Find lines of the formy=a+bx passing through the following pairs of points(x,y):
(a) (2,3) and (5,8)
(b) (−1,−3) and (2,−5)
(c) (21,23) and (31,−51)
Show answer
(a) When x goes from 2 to 5 (i.e., Δx=5−2=3) then y from 3 to 8 (i.e., Δy=8−3=5). Thus, for each one-unit increase in x, we have that y increases by b=ΔxΔy=35=132. Given this value for b, we can evaluate a+bx at x=2. From the first coordinate, we know that y=3 at that point. Thus, we have a+132⋅2=3⇔a=3−331=−31. In other words the intercept (i.e., the value for y when x=0 for the straight line passing through the two coordinates provided in the question) is −31. We can write this compactly as y=−31+132x.
(b) Similarly to Question 7a, we have that b=ΔxΔy=3−2=−32. Solving for a using the first coordinate, we have a−32⋅(−1)=−3⇔a=−332. Thus, y=−332−32x.
(c) We have b=ΔxΔy=31−21−51−23=62−63−102−1015=−61−1017=1017⋅6=517⋅3=1051. Solving for a using the second coordinate, we have a+517⋅3⋅31=−51⇔a=−51−517=−518=−353. Thus, y=−353+1051x.
Question 8
Decide which of the following relationships between two variables are linear.
(a) 5y+2x=2
(b) P=10(1−0.3t)
(c) C=(21x+2)(x−3)
(d) p1x1+p2x2=R, where p1,p2, and R are constants
Show answer
(a) Linear: we can subtract 2x from both sides, and divide both sides of the new equation by 5 to find an expression for y as a linear function of x.
(b) Linear: we only have to expand the brackets to find that P s a linear function of t.
(c) Quadratic (so not linear): by expanding the parentheses, we find C=0.5x2+21x−6.
(d) Linear: we can subtract p1x1 from both sides of the equation. Dividing the subsequent equation by p2, we have expressed x2 as linear function of x1.
Question 9
A printing company quotes the price of €1400 for producing 100 copies of a report, and €3000 for 500 copies. Assuming a linear relation, what would be the price of printing 300 copies?
Show answer
Let x denote the number of copies and y the price in euros. Effectively, we are given coordinate (x,y)=(100,1400), coordinate (x,y)=(500,3000), and the assumption of a linear relation between x and y (i.e., we can write y in the form a+bx for constants a and b).
Now, we can use the same approach as before:
Slope b=ΔxΔy=500−1003000−1400=4001600=4 euros per copy. So for each additional copy, you pay an additional 4 euros.
Find intercept a by solving equation for one coordinate under linear relation, given b=4. Using the first coordinate: 1400=a+4⋅100⇔a=1000 euros.
Thus, y=1000+4x.
Question 10
Determine the equations for the following straight lines:
(a) ℓ1 passes through (1,3) and has a slope of 2.
(b) ℓ2 passes through (−2,2) and (3,3).
Show answer
(a) We write y=a+bx. The slope is given: b=2. Solving for a using the provided coordinate: 3=a+2⋅1⇔a=1. Thus, y=1+2x.
(b) We write y=a+bx. We have b=ΔxΔy=3−(−2)3−2=51. Solving for a using the second coordinate that is provided: 3=a+51⋅3⇔a=3−53=252. Thus, y=252+51x.
Question 11
Find the equilibrium price for each of the following linear models of supply and demand:
(a) D=75−3P and S=2P
(b) D=100−21P and S=−20+21P
Show answer
(a) D=S⇔75−3P=2P⇔75=5P⇔P=575=15
(b) D=S⇔100−21P=−20+21P⇔100=−20+P⇔P=120
Question 12
The total cost C of producing x units of some commodity is a linear function of x. Records show that on one occasion, 100 units were made at a total cost of €200, and on another occasion, 150 units were made at a total cost of €275. Express the linear equation for total cost in terms of the number of units produced.
Show answer
Let y denote the price in euros. We assume a linear relation between x and y. That is, we can write y=a+bx. We are effectively given the following two coordinates (x,y)=(100,200) and (x,y)=(150,275).
Hence, b=ΔxΔy=150−100275−200=5075=121 euros per unit. Solving for a using the first coordinate: 200=a+121⋅100⇔200=a+150⇔a=50. Thus: y=50+121x.
Question 13
The expenditure of a household on consumer goods, C, is related to the household's income, y, in the following way. When the household's income is €1000, the expenditure on consumer goods is €900, and whenever income increases by €100, the expenditure on consumer goods increases by €80. Express the expenditure on consumer goods as a function of income, assuming a linear relationship.
Show answer
We seek to express C in the following form: C=a+by for appropriate constants a and b. Recognising that y now is the value of the argument and C the value of the function, we have that b=ΔyΔC=10080=54. Notice that we are also provided with a single coordinate: (y,C)=(1000,900). Using this coordinate to solve for a: 900=a+54⋅1000⇔900=a+800⇔a=100 euros. Hence, C=100+54y.
Question 14
Determine the maximum/minimum points of the following functions. Moreover, for each function, find all the roots (i.e., points where the function equals zero) and where possible write each function in the form a(x−x1)(x−x2) where x1 and x2 are integers.
(a) x2+4x
(b) x2+6x+18
(c) −3x2+30x−30
(d) 9x2−6x−44
Show answer
Recap: a quadratic function of the form y=ax2+bx+c, for constants a, b, and c is a parabola opening upwards (Dutch: dalparabool) if a>0 and a parabola opening downwards (Dutch: bergparabool) if a<0.
For a parabola, its extreme value is found at x∗=−2ab. In case of a parabola opening upwards, this is the global minimum point. In case of a parabola opening downwards, this is the global maximum point.
If we can write the quadratic function in the form a(x−x1)(x−x2) its roots are given by x1 and x2. In case it is (too) difficult to write the quadratic function in that form, you can instead use the quadratic formula (Dutch: abc-formule), which states x0=2a−b±d are the roots, where d=b2−4ac (aka the discriminant). In case d<0, the quadratic function has no roots. In case d=0, the quadratic function equals zero at precisely one point. In case d>0, the quadratic function has two roots.
(a) Here, a=1, b=4, c=0. Because a>0 it is a parabola opening upwards. Hence, x∗=−2ab=−2 is the global minimum point. We can write this function in the form x(x+4). Thus, its roots are given by x=0 and x=−4
(b) Here, a=1, b=6, c=18. Because a>0 it is a parabola opening upwards. Thus,x=−2ab=−3 is the global minimum point. By applying the quadratic formula, we find x0=2a−b±b2−4ac=2−6±36−4⋅1⋅18=NaN, because the discriminant is negative. In other words, the function has no roots, and cannot be written in the form a(x−x1)(x−x2).
(c) Here, a=−3, b=30, c=−30. Because a<0 it is a parabola opening downwards. Thus, x=−2ab=5 is the global maximum point. By applying the quadratic formulate, we find x0=−6−30±900−4⋅(−3)⋅(−30)=5±61540=5±6122⋅33⋅5=5±15.
(d) Here, a=9, b=−6, c=−44. Because a>0 it is a parabola opening upwards. Thus, x=−2ab=31 is the global minimum point. By applying the quadratic formula, we find the following roots: x0=186±36−4⋅9⋅(−44)=31±18136+36⋅44=31±18136⋅45=31±1816⋅6⋅3⋅3⋅5=31±5
Question 15
Find solutions to the following equations, where a and b are parameters.
(a) x2−3ax+2a2=0
(b) x2−(a+b)x+ab=0
(c) 2x2+(4b−a)x=2ab
Show answer
(a) We can write this equation in the form (x−2a)(x−a)=0, which implies x−2a=0 or x−a=0. Thus, x=2a∨x=a.
(b) We can write this equation in the form (x−a)(x−b)=0. Thus, x=a∨x=b.
(c) First notice that we can rearrange this equation as follows: 2x2+(4b−a)x−2ab=0. Now, we can write the equation as (2x−a)(x+2b)=0. Thus, 2x−a=0⇔x=21a or x+2b=0⇔x=−2b.
Notice: finding such factorisations may take quite some practice to get right. Do not be disheartened if you are unable to find the right solution right away! Just take your time to practise. Please keep in mind that factorisations (not just for quadratic equations and formulas) play a big role in mathematics, statistics, linear algebra, and so on.
Question 16
If a cocoa shipping firm sells Q tons of cocoa in the UK, the price it receives is given by PU=α1−31Q. On the other hand, if it buys Q tons of cocoa from its only source in Ghana, the price it has to pay is given by PG=α2+61Q. In addition, it costs γ per ton to ship cocoa from its supplier in Ghana to its customers in the UK (its only market). The numbers α1,α2, and γ are all positive.
(a) Express the cocoa shipper’s profit as a function of Q, the number of tons shipped.
(b) Assuming that α1−α2−γ>0, find the profit-maximizing shipment of cocoa. What happens if α1−α2−γ≤0?
(c) Suppose the government of Ghana imposes an export tax on cocoa of τ per ton. Find the new
expression for the shipper’s profits and the new profit-maximizing quantity shipped.
(d) Calculate the Ghanaian government’s export tax revenue as a function of τ.
(e) Advise the Ghanaian government on how to obtain as much tax revenue as possible.
Show answer
(a) Total costs are given by the sum of shipping costs and buying costs. The shipping costs are given by γQ. The buying costs are given by buying price (i.e., α2+61Q) times the quantity bought (i.e., Q). Hence, buying costs equal α2Q+61Q2. Therefore, total costs equal 61Q2+(α2+γ)Q.
Total revenue is given by selling price (i.e., α1−31Q) times the quantity sold. Therefore, total revenue equals −31Q2+α1Q.
Profit π is defined as total revenue minus total costs. Thus, π=−31Q2+α1Q−61Q2−(α2+γ)=−21Q2+(α1−α2−γ)Q.
(b) Clearly, π is quadratic function in Q with a=−21, b=α1−α2−γ, and c=0. Since a<0, the function is a parabola opening downwards. Thus, Q∗=−2ab=α1−α2−γ is the global maximum point. Thus, if α1−α2−γ≤0, then Q∗≤0. This is a nonsense solution: it would suggest buying, shipping, and selling negative quantities. A more reasonable interpretation would be to say that (1) Q cannot be negative and (2) transport and buying costs are so high, that the best choice is to set Q=0, in which case π=0.
(c) Similar to the shipping cost, the total tax is given by τQ. These costs need to be subtracted from the profit. Thus, π after tax is given by −21Q2+(α1−α2−γ−τ)Q. The optimum for the firm has a similar structure to what we found before, viz., Q∗=α1−α2−γ−τ.
(d) Assuming the firm maximises profit and, thus, always sets Q=α1−α2−γ−τ tons, the tax revenue (r) for the Ghanaian government is given by the tax per ton (i.e., τ) times that amount of tons. Hence, r=(α1−α2−γ−τ)τ=−τ2+(α1−α2−γ)τ is the total export tax revenue for the government.
(e) Clearly, r is a quadratic function with respect to τ, that reaches its maximum at τ=21(α1−α2−γ).
Question 17
Let a1,a2,…,an and b1,b2,…,bn be arbitrary real numbers. The inequality
(a1b1+a2b2+…+anbn)2≤(a12+a22+…+an2)(b12+b22+…+bn2) is called the Cauchy–Schwarz inequality.
(a) Check the inequality for n=2, when a1=−3,a2=2,b1=5, and b2=−2.
(b) Prove the inequality by means of the following trick:
First, define f for all x by f(x)=(a1x+b1)2+…+(anx+bn)2. It should be obvious that f(x)≥0 for all x.
Write f(x) as Ax2+Bx+C, where the expressions for the coefficients A,B, and C are related to the terms in the Cauchy-Schwarz inequality. Because Ax2+Bx+C≥0 for all x, we must have B2−4AC≤0. Why?
(c) Show that the Cauchy-Schwarz inequality directly follows from this.
Show answer
(a) In this case, we have (−3⋅5+2⋅−2)2=(−19)2=361 on the left-hand side (LHS) and (−32+22)⋅(52+(−2)2)=(9+4)⋅(25+4)=13⋅29=377 on the right-hand side (RHS). Clearly, 361≤377. So the Cauchy-Schwarz inequality holds true for the particular numbers considered here. Now let's move to the general case.
(b) In the function f outlined in this subquestion, we effectively take the sum of (aix+bi)2 for i=1,2,…,n. That is, we can write f(x)=∑i=1n(aix+bi)2. Here, notice that (aix+bi)2=ai2x2+2aibix+bi2. Thus, we can write f(x)=∑i=1nai2x2+2aibix+bi2.
Using properties of the sum operator, this can be further rearranged as f(x)=(∑i=1nai2)x2+2(∑i=1naibi)x+∑i=1nbi2. Thus, we can write f(x) in the desired form for this subquestion by setting A=∑i=1nai2, B=2∑i=1naibi, and C=∑i=1nbi2, which reveals that f(x) is a parabola.
Going back to the formulation in which we state that f(x)=∑i=1n(aix+bi)2, notice that (aix+bi)2≥0 for any x∈R, because squaring the output of aix+bi always yields a nonnegative number. Hence, each term in the sum is always nonnegative, and, therefore, f(x) itself is always nonnegative.
Since f(x) is a parabola that is nonnegative, it either has exactly one point where it touches the horizontal axis (i.e., y=0), in which case the discriminant (here given by B2−4AC) is zero, or it has no points at all where it touches the horizontal axis, in which case the discriminant is negative. Thus, positive values of the discriminant cannot arise, because that would yield two roots and values for x where f<0 (which contradicts what we established earlier: f≥0). Thus, we have shown that B2−4AC≤0.
(c) Plugging our expressions for A, B, and C into the inequality for the discriminant, yields the following inequality: 4(∑i=1naibi)2−4(∑i=1nai2)(∑i=1nbi2)≤0. Dividing both sides of the inequality by 4 and then adding (∑i=1nai2)(∑i=1nbi2) to both sides yields (∑i=1naibi)2≤(∑i=1nai2)(∑i=1nbi2).
Writing out this inequality element-wise (i.e., without using the summation operator), the inequality states that (a1b1+…+anbn)2≤(a12+…+an2)⋅(b12+…+bn2), which is the Cauchy-Schwarz inequality!
To recap how you proved this: you were presented with a smartly chosen function f. For that function, you were able to prove it was a nonnegative quadratic function. With that insight in mind, you were able to argue that the discriminant d of that function cannot be positive (i.e., d≤0). By rearranging this inequality, you established the Cauchy-Schwarz inequality.