Remember:∝ means "is proportional to". Another symbol that means the same thing is ∼.
Direct proportion formula: y=kx, where k is a constant.
A=πr2Area of a circleA∝r2When r2 doubles, A also doubles
We can also say that r12A1=r22A2=…
f(x)=kxk=πx=r2
set xrange [-1:5]
set yrange [-1:10]
set xtics 1
set ytics 1
set ylabel "A"
set xlabel "r^2"
f(x) = pi * x
plot f(x) title "f(r^2)"
Note: if you mistakenly graph A∝r, you'd get this:
set xrange [-1:5]
set yrange [-1:15]
set xtics 1
set ytics 1
set ylabel "A"
set xlabel "r"
f(x) = pi * x * x
plot f(x) title "f(r)"
This is wrong, because A is not proportional to r, but rather to r2. When r2 doubles, we also expect A to double, because they're directly proportional.
3.A.(b), example 2
V=πr2hVolume of a cylinderV∝hh1V1=h2V2V=khk=πr2
3.A.(c), example 3
V=34πr3Volume of a sphereV∝r3k=34π
3.A.(c), example 4
Period, T, of a simple pendulum of length l:
T=2πl/g=2πglT∝lk=2πg1=g2π
3.A.1
(1)
(a):
V∝h
hAVA=hBVB
4VA=1VB
VBVA=14
(b):
V∝r
rC2VC=rD2VD
1VC=16VD
VDVC=161
(2)
E=21Mv2E∝v2
v12E1=v22E2
25E1=900E2
E1E2=25900=36
(3)
V=34πr3V∝r3
r13V1=r23V2
8V1=512V2
V2V1=5128=641
(4)
T=2πl/gT∝l
l1T1=l2T2
3T1=5T2
T2T1=53
Partial direct proportion
Remember: the difference between direct and partial direct proportion is basically this:
Direct proportion: y=mx
This line goes through the origin of the graph
Partial direct proportion: y=mx+c
This line has a y-intercept of something else than 0
For example, if you have a car whose maintenance and other costs are 4000 per year, and you bought the car for 20 000, the cumulative cost at year x is:
f(x)=4000x+20000
set xrange [0:10]
set yrange [0:80000]
set xtics 1
set ytics 10000
set ylabel "Cost"
set xlabel "Year"
f(x) = 4000 * x + 20000
plot f(x)
Inverse proportion
A.k.a. "kääntäen verrannollisuus".
xy=k or y=xk
x∝y1
When x gets larger, y gets proportionally smaller, and vice versa.
If x gets 2 times larger, y gets 2 times smaller: 2x21y=k
If x gets 10 times smaller, y gets 10 times larger: 101x10y=k
set xrange [-4:10]
set yrange [-4:10]
set xtics 1
set ytics 1
f(x) = 2 / x
plot f(x) title "2/x"
x and y never reach 0. Therefore both x and y is an asymptote, i.e. a line that a curve approaches, but never reaches.
Example: travel time versus speed for a 100 km distance: f(x)=x100
set xrange [0:80]
set yrange [0:10]
set xtics 10
set ytics 1
set xlabel "Speed (km/h)"
set ylabel "Travel time (h)"
f(x) = 100 / x
plot f(x)
Example: rectangles with constant area: A=xy, where A=12
set xrange [0:12]
set yrange [0:12]
set xtics 1
set ytics 1
set style fill solid 0.1
$data1 << EOD
0 0
0 12
1 12
1 0
EOD
$data2 << EOD
0 0
0 6
2 6
2 0
EOD
$data3 << EOD
0 0
0 3
4 3
4 0
EOD
f(x) = 12 / x
plot f(x), "$data1" with filledcurves notitle, "$data2" with filledcurves notitle, "$data3" with filledcurves notitle
Mixed proportion
Example: Newton's law of gravitation: the force of attraction between two masses m1 and m2 is directly proportional to the product of the masses, but inversely proportional to the distance between them squared.
F=r2km1m2
Remember: when modeling physical phenomena with a mathematical model, make sure that your model fits the physical situation, and in which situations the model stops working as intended:
For example, the extension of a spring can be predicted for a known load but, if the load is too great, the spring deforms and the new length can no longer be found.
Functions
3.B.(a)
a) y=2x+3b) y=x2−2x−3c) y=x2+41d) y=(3x+1)1/2=3x+1=±3x+1
(1)
Is there only one y value for a specific x?
a: yes, because this is a straight line
b: yes, because this is a quadratic
c: yes. This looks like some kind of a normal distribution.
d: I think not, because a square root gives two values, e.g. y=4=±4=±2
Remember: the convention is that x only means positive square root, whereas x1/2 means both the positive and the negative. With you need to explicitly say plus-minus: ±x
(2)
Can two different x give the same y value?
a: no
More generally, for y=mx+c, yes, if the slope is 0
b: yes, because a quadratic gives a symmetric parabola
c: yes. This looks like some kind of a normal distribution when graphed.
d: not sure. When graphing this, the curve looks like it always changes y-value for each x. It looks like there exists a line that is an asymptote, i.e. a line that the curve is approaching, but never reaches. Therefore I think "no".
Correct, but note that Desmos only shows the positivey values for 3x+1 and (3x+1)1/2. The correct way to graph it is to have a quadratic parabola that is rotated 90 degrees. The book demonstrates how to get y=−5:
d: I think yes and no. No, if you want the output to be a real number, because e.g. −2 probably requires an imaginary number. Maybe yes, if you allow the output to have imaginary numbers.
Correct
(4)
If x is the largest set of all possible input values (e.g. x can be any real or imaginary number), what is the complete set of y values?
Remember:x is the set of input values (i.e. the domain) of the function. y is the set of output values (i.e. the codomain).
a:
x∈R
y∈R
More generally, for y=mx+c, if the slope =0, then y∈R, because this is a straight line. If the slope =0, then y∈{3}, that is, y=3.
b:
Looking at the equation, I can see that I can put in any real number, so therefore x∈R. I was wondering if there exist two vertical asymptotes, though, like this:
But this is probably not the case, since I should be able to put in any real number for x.
As for y, the vertex gives me the minimum y value. Therefore y should not be the full set R, but a subset of it, i.e. {y∈R∣y≥k}, where k is the vertex'sy point.
c:
x∈R I think, like in b above
A graph of this curve shows that both the minimum and maximum of y seem to be restricted: https://www.desmos.com/calculator/3uajczu3kp. When x is very large (i.e. approaches infinity), y seems to approach 0.
Therefore I'd say {y∈R∣y≤41 and y>0}.
The book uses interval notation here, i.e. (0,41], which means 0 is not inclusive, but 41 is inclusive
d:
If x∈R, then {x∈R∣x≥−31}, because any smaller x results in −n, which is an imaginary number. But if we allow imaginary number, then I guess x∈C.
If x∈R, then {y∈R∣y≥0}. If we allow imaginary numbers, then I'm not sure what y would be.
This is incorrect. If x∈R, then y∈R. This is because (3x+1)1/2=±3x+1, not3x+1.
Remember:xdoes not imply negative and positive square roots!x is the principal square root of x, and is always a non-negative value. Every positive number has two square roots: x and −x. Therefore you need to explicitly say ±x.
To graph ±3x+1, we need to graph the positive and negative y values separately:
set xrange [-2:10]
set yrange [-3:8]
set xtics 1
set ytics 1
f(x) = sqrt(3*x + 1)
g(x) = -sqrt(3*x + 1)
plot f(x) title "sqrt(3*x + 1)", g(x) title "-sqrt(3*x + 1)"
Important definitions of functions
A function is a particular form of relationship.
If the relationship y=f(x) is a function, then, for a specific value of x, there is only one value of y
y=3x+1is a function, because y can only have a single value per x
y=(3x+1)1/2 is not a function, because y can have multiple values per x
The "raindrop test": a vertical line on a graph must not cut the curve more than once, if the curve is of a function. (See vertical line test.)
The function y=f(x) is one-to-one if, for each value of y, there is only one possible x, and vice versa
y=2x+3is one-to-one
y=x2−2x−3 is not one-to-one. I guess you could test this with a "horizontal raindrop test". (See horizontal line test.)
The domain of the function is the set of numbers for the possible values of x
For example, R
In some cases you will want to restrict the possible input values. For example, if x represents a physical size, then a domain of x>0 is often suitable.
The codomain of the function is the set of numbers for the possible values of y
For example, R
The range of the function is the set of numbers for the actual possible output values of y
The function f(x)=0 has a codomain of R, but a range of {0}, since the only actually possible output value is 0
Transforming functions
Remember: horizontal and vertical shifting is also called translating (e.g. translate() in CSS).
Shift vertically
Add a value a to the function's output:
y=f(x)+a
set xrange [-4:8]
set yrange [-2:6]
set xtics 1
set ytics 1
f(x) = x*x - x
g(x) = x*x - x + 1
h(x) = x*x - x - 1
plot f(x) title "f(x)", g(x) title "f(x) + 1", h(x) title "f(x) - 1"
Shift horizontally
Add a value a to the function's input:
y=f(x+a)
set xrange [-4:8]
set yrange [-2:6]
set xtics 1
set ytics 1
f(x) = x*x - x
g(x) = (x + 1)*(x + 1) - (x + 1)
h(x) = (x - 1)*(x - 1) - (x - 1)
plot f(x) title "f(x)", g(x) title "f(x + 1)", h(x) title "f(x - 1)"
Scale vertically
Multiply/divide the function's output by a:
y=f(x)∗ay=f(x)/a
The scaling is applied through the origin.
set xrange [-4:8]
set yrange [-2:6]
set xtics 1
set ytics 1
f(x) = x*x - x
g(x) = (x*x - x) * 2
h(x) = (x*x - x) / 2
plot f(x) title "f(x)", g(x) title "f(x) * 2", h(x) title "f(x) / 2"
Scale horizontally
Multiply/divide the function's input by a:
y=f(x∗a)y=f(x/a)
The scaling is applied through the origin.
set xrange [-4:8]
set yrange [-2:6]
set xtics 1
set ytics 1
f(x) = x*x - x
g(x) = (x * 2)*(x * 2) - (x * 2)
h(x) = (x / 2)*(x / 2) - (x / 2)
plot f(x) title "f(x)", g(x) title "f(x * 2)", h(x) title "f(x / 2)"
If we know a value of f(x) for a particular function can we work out from this what the original value of x must have been?
So far I understand that:
A function is a mapping from an input value to a single output value
Raindrop test: if the same input (i.e. x) gives more than one output (i.e. y, e.g. ±7), then it's not a function
E.g. Map<x, y> in a programming language
If a specific output value (y) is only achievable with a specific input value (x), and no other input value (x) gives the same y, then the function is called "one-to-one"
I.e. a one-to-one mapping from an input value to a unique output value
In other words, if f(a)=f(b), then a=b. If a and b give the same y value on a graph, then a must be the same as b.
E.g. Map<y, x> in a programming language
Therefore I'd say that we can find the original value of xif the function is one-to-one. If it's not, then we can't find a single value of x from the function's output.
Remember: a function that undoes the effects of f(x) is called the inverse function of x, and is written as f−1(x).
Only a one-to-one function can have an inverse function
A function is only one-to-one if f(a)=f(b) and a=b
f−1(f(x))=f(f−1(x))=x
f−1(x) undoes f(x)
f(x) undoes f−1(x)
Remember: a self-inverse function is an inverse of itself:
f(f(x))=xf−1(x)=f(x)
Remember: another way to write a function is arrow notation:
f:x↦x−3
f−1:x↦x+3
f(x)=x−2f−1(x)=x+2
set xrange [-4:10]
set yrange [-3:6]
set xtics 1
set ytics 1
f(x) = x - 2
g(x) = x + 2
s(x) = x
plot f(x) title "f(x)", g(x) title "f^{-1}(x)", s(x) title "Line of symmetry, y = x
g(x)=2xg−1(x)=21x=2x
set xrange [-4:10]
set yrange [-3:6]
set xtics 1
set ytics 1
f(x) = 2 * x
g(x) = x / 2
s(x) = x
plot f(x) title "g(x)", g(x) title "g^{-1}(x)", s(x) title "Line of symmetry, y = x
p(x)=6−x=p−1(x)Self-inverse function
set xrange [-6:12]
set yrange [-3:10]
set xtics 1
set ytics 1
f(x) = 6 - x
s(x) = x
plot f(x) title "p(x) = p^{-1}(x)", s(x) title "Line of symmetry, y = x
q(x)=12/x=q−1(x)Self-inverse function
set xrange [-20:25]
set yrange [-12:18]
set xtics 5
set ytics 5
f(x) = 12 / x
s(x) = x
plot f(x) title "q(x) = q^{-1}(x)", s(x) title "Line of symmetry, y = x"
Remember:
A function and its inverse function are mirror images of each other when graphed
The line y=x is the mirror. The function and its inverse are reflected across this line.
Because of this symmetry, the domain of the function is the same as the range (or codomain?) of the inverse function
Because of this symmetry, the range (or codomain?) of the function is the same as the domain of the inverse function
Finding inverse functions
y=f(x)=3x+2x=3y−2=31(y−2)Rearrange the subject of the formula from y to xy=31(x−2)Swap x and yf−1(x)=31(x−2)Done
set xrange [-6:8]
set yrange [-5:5]
set xtics 1
set ytics 1
f(x) = 3*x + 2
g(x) = (x - 2) / 3
s(x) = x
plot f(x) title "f(x)", g(x) title "f^{-1}(x)", s(x) title "Line of symmetry, y = x"
Where do the two functions cross? From the graph I can see (1,1), but how can I get this point algebraically?
Because of the mirroring, it must be that y=x.
It should be enough to find where one of the functions crosses the "mirror" line, y=x.
Trying a system of equations:
{y=xy=3x+2
{3y=3xy=3x+2
Subtract the two equations:
{2y=−2
Therefore:
y=−1
Therefore the functions cross at (−1,−1) (because at the crossing point x=y).
The book says that the crossing point is where f(x)=f−1(x). TODO: play with this a bit more for better intuition.
Hover over this graph to see how swapping x and y mirrors the functions, i.e. f(x) becomes f−1(x) and vice versa. This can be achieved by e.g. rotating the graph 90 degrees and then flipping it vertically — or by simply flipping the graph diagonally along the line of symmetry.
set terminal svg size 500,500 enhanced font 'Verdana,10'
set xrange [-14:16]
set yrange [-14:16]
set xtics 2
set ytics 2
f(x) = (x + 3) / (x - 2)
g(x) = (2*x + 3) / (x - 1)
s(x) = x
h(x) = 1
i(x) = 2
set arrow from 2,16 to 2,-14 nohead dt 2 lc 1
set arrow from 1,16 to 1,-14 nohead dt 2 lc 2
plot f(x) title "f(x)", g(x) title "f^{-1}(x)", s(x) title "Line of symmetry, y = x", h(x) dt 2 lc 1 title "Asymptotes for f(x)", i(x) dt 2 lc 2 title "Asymptotes for f^{-1}(x)"
(a)f(x)=0 when x=−3
(b) When x=0, f(x)=−23
(c)x cannot be 2, because that would result in dividing by zero. When x is approcing 2, f(x) flips from −∞ to ∞ (or vice versa, if approaching from the right).
Therefore the line x=2 is a vertical asymptote. The curve approaches it but never reaches it.
(d) As x approaches ∞, f(x) approaches 1
Therefore the line y=1 is a horizontal asymptote. The curve approaches it but never reaches it.
The domain of f(x) is R∣x=2, because we need to exclude 2 to prevent division by zero. The range of f(x) is the same as the domain of f−1(x), i.e. f(x)=y cannot be 1.
The domain of f−1(x) is R∣x=1, because we need to exclude 1 to prevent division by zero. The range of f−1(x) is the same as the domain of f(x), i.e. f−1(x)=y cannot be 2.
3.B.4
(1)
g(x)=x+4x−2
The x-intercept is at (2,0)
The y-intercept is at (0,−21)
The vertical asymptote is x=−4
The horizontal asymptote is y=1
The domain is R∣x=−4
The range is R∣y=1
g−1(x)=x=y+4y−2Swapped x and yx(y+4)=y−2xy+4x+2=y4x+2=y−xy4x+2=y(1−x)g−1(x)=y=1−x4x+2
(2)
h(x)=x+12x−5
The x-intercept is at 2x−5=0, so x=25, so (25,0)
The y-intercept is at (0,−5)
The vertical asymptote is x=−1
The horizontal asymptote is y=2
The domain is R∣x=−1
The range is R∣y=2
h−1(x)=x=y+12y−5Swapped x and yx(y+1)+5=2yx+5=2y−xy=y(2−x)h−1(x)=y=2−xx+5
(3)
f(x)=x−22x+3
set xrange [-14:22]
set yrange [-10:18]
set xtics 2
set ytics 2
f(x) = (2*x + 3) / (x - 2)
g(x) = x
plot f(x) title "f(x)", g(x)
How do you center this function, so that the vertical asymptote is the y axis, and the horizontal asymptote is the x axis?
Graphically I can see that I need to shift the function left by 2 and down by 2.
Algebraically I can see the function's current asymptotes:
Vertical asymptote is 2 (because x=2 would result in division by zero)
Horizontal asymptote is 2 (because very large values of x will approach 12)
To shift a function to the left, I need a new function g(x)=x+asymptotevertical=x+2.
To shift a function down, I need a new function h(x)=x−asymptotehorizontal=x−2.
Therefore this set of transformations should work:
The result is a new, simpler function, where the x and y axis are asymptotes:
p(x)=x7
set xrange [-14:22]
set yrange [-10:18]
set xtics 2
set ytics 2
f(x) = 7/x
plot f(x)
3.B.(j)
set xrange [-8:20]
set yrange [-8:12]
set xtics 2
set ytics 2
f(x) = x
g(x) = x*x
h(x) = x*x*x
p(x) = abs(x)
plot f(x) title "y = x", g(x) title "y = x^2", h(x) title "y = x^3", p(x) title "y = |x|" dt 3 lw 4
Allow of these functions are centered on the origin. y=x and y=x3 are symmetric along the x and y axis, but y=x2 and y=∣x∣ are only symmetric along the y axis.
The book says that these are examples of even and odd functions.
Remember:
An even function is symmetrical about the y axis. For them f(x) = f(−x).
An odd function is unchanged when it is rotated 180 degrees. And if you flip it along the y axis, only the signs change, and therefore f(x)=−f(−x).
Which of the above four functions can have inverse functions?
Graphically I can see that only y=x and y=x3 should have inverse functions, since only they are reflected along the line of symmetry, x=y.
Algebraically I remember that:
Only one-to-one functions have inverse functions
A one-to-one function has only a single possible x for a specific y. This can be tested with the horizontal line test.
y=x (odd) passes the horizontal line test.
y=x2 (even) doesn't pass the horizontal line test. The inverse function would be x=y2, i.e., y=±x, giving two x values for a specific y.
y=x3 (odd) passes the horizontal line test.
y=∣x∣ (even) doesn't pass the horizontal line test.
The book raises an interesting point: y=x2 can be made to be one-to-one if you restrict its domain (i.e. set of input values) to x≥0:
f(x)=y=x2f−1(x)=y=x
set xrange [0:12]
set yrange [0:8]
set xtics 1
set ytics 1
f(x) = abs(x*x)
g(x) = sqrt(x)
s(x) = x
plot f(x) title "y = x^2", g(x) title "y = sqrt(x)", s(x) title "Line of symmetry"
These two functions don't look odd, though. TODO: can a function be one-to-one without being odd?
3.C.(a)
At t=0 there are 1000 cells. The number of cells doubles every hour. x=Thousands of cells.
set xrange [0:8]
set yrange [0:64]
set xtics 1
set ytics 4
set xlabel "t"
set ylabel "x"
f(x) = 2**x
plot f(x)
If I know x (e.g. 16), how do I get the t?
16=2tt16=2161/t=2..?
How do I bring down the t and make it the subject? I'll try with a simpler example — is there a p, that when multiplied with am, will result in m?
pam=mp=amm
Doesn't help me, as t remains as a power in the denominator. Instead I probably need a function for this.
p(am)=m
At this point I realize I can probably use an inverse function (the inverse of f(t)=2t), since that involves swapping x and t. That's probably a logarithmic function.
I want time (t) to be a function of number of cells (x).
I want a graph like this, where the axis are swapped (compared to the earlier graph):
set xrange [0:64]
set yrange [0:8]
set xtics 4
set ytics 1
set xlabel "x"
set ylabel "t"
f(x) = -1
plot f(x) title "f^{-1}(x) = ?"
Log functions
Indeed, a log function undoes exponentiation. Remember: the inverse of a growth function is a log function.
f(t)=2tf−1(t)=log2(t)f−1(f(t))=t=logb(bt)
set xrange [-6:24]
set yrange [-4:20]
set xtics 2
set ytics 2
set xlabel "x"
set ylabel "t"
f(x) = 2.0**x
g(x) = log(x) / log(2)
h(x) = x
plot f(x) title "f(t)", g(x) title "f^{-1}(t)", h(x) title "Line of symmetry"
Remember these:
If x=at, then logax=t
If t=logax, then at=x
logaa=1because a is implicitly a1
loga1=0because 1 is implicitly a0
When you see logbx, ask yourself: what power do I need to raise b to, so that I get x? E.g. log28=3.
Also remember the buttons on calculators:
log and lg usually mean log10, a.k.a. log to base 10
In some calculators log means loge, so always make sure which base log uses
The rules for working with logarithms are related to the rules for powers.
Rule
Logs
Powers
Rule 1
loga(xy)=loga(x)+loga(y)
am∗an=am+n
Rule 2
loga(x/y)=loga(x)−loga(y)
am/an=am−n
Rule 3
loga(xn)=n∗loga(x)
(am)n=amn
Remember these, as they are apparently very important when solving physical problems. They allow you to split expressions, or to combine multiple logs.
It's most important to remember rules 1 and 2. Rule 3 is basically rule 1, because: loga(x2)=loga(xx)=logax+logax=2logax
The compound interest formula is a good example to play with. For example, compounding 100€ once per year at 5% for 10 years:
f(x)=100(1.05x)f(10)=100(1.0510)≈163
How long would it take for 100€ to compound to 200€? Find the inverse function by swapping x and y, and solving for y:
f−1(x)=x=100(1.05y)1.05y=100xHow to isolate y?
Now I need to isolate the y, so that it's the subject of the equation. I could do that with log1.05(1.05y), but that's a bit silly, since I want to use base 10, not base 1.05.
I can use rule 3 above and say:
log10(1.05y)=log10(1.05)∗y
That allows me to isolate y.
Apparently it's also possible to apply the logarithm to both sides of an equation, or to pretty much do anything to both sides of an equation — like raising both sides to a power — as long as you're careful about domains/codomains/ranges/etc.. After all, it's an equation, with the same value on both sides.
Therefore:
1.05y=100xHow to isolate y? Take log of both sides.log10(1.05y)=log10(100x)log10(1.05)∗y=log10(100x)Rule 3
A.k.a. Euler's number. This apparently comes up a lot in modeling physical processes.
e≈2.71828ex is sometimes written as exp(x)exp(1)=e
(Note: some calculators show "exp" for very large or very small numbers, e.g. 3.14 EXP 5. In that context exp doesn't refer to e, but rather to powers of 10. Don't confuse the two.)
set xrange [-3:6]
set yrange [-3:6]
set xtics 1
set ytics 1
f(x) = exp(1)**x
g(x) = log(x)
plot f(x) title "e^x", g(x) title "log_e(x)"
Exponential decay
E.g. population decay or radioactive decay.
The graph of y=2−x could represent the radioactive decay of 1 tonne of a substance with a half-life of one hour.
f(x)=n−x
set xrange [-3:4]
set yrange [-1:4]
set xtics 1
set ytics 1
f(x) = 2**(-x)
g(x) = 2**x
plot f(x) title "2^{-x}", g(x) title "2^x"
Inverse of exponent: root or logarithm?
Answer: both. One gives you the base, the other gives you the exponent.
Solve for a. Take the b-th root of both sides:
ab=cbab=a=bc
(Remember that only gives you positive values when b is even, so
you would need to explicitly say ±. Therefore it's probably safer to
usually say a=c1/b.)
Solve for b with loga. Take the log of both sides:
ab=cloga(ab)=b=logac
Alternatively, solve for b with log10. Take the log of both sides: