← Laboratorium Mathematics · experiment

Mathematics · functions

Functions and growth from a straight line to an explosion

A function is a recipe: put in x, get out y. A straight line describes a taxi fare, a parabola — the flight of a ball and a satellite dish, and an exponential function — bacteria, savings accounts and rumors. Drag points, shift graphs by a vector, race linear growth against exponential, multiply with a slide rule and find out which formula really fits the data.

y = ax + b y = a(x − p)² + q y = ax loga b = c ⇔ ac = b
Q–Y modes Challenges 0/6

Laboratorium · linear function

Equation of the line

Second line through point Q

Zero—
Angle of slope—
Monotonicity—
Second line—

Lines in everyday life

Guess the line

round 1 · total 0 pts

Read off the picture where the line crosses the y-axis (that is b) and how much it rises when you move 1 to the right (that is a).

MathematicsHow to read a function

Function, domain, range

A function assigns to every argument x from its domain exactly one value y = f(x). All the values it produces form its range, and the points (x, f(x)) form its graph. A zero is an argument for which f(x) = 0: there the graph crosses the x-axis. A function is increasing when a larger argument gives a larger value, and decreasing when it is the other way round — that is its monotonicity.

Linear function

y = ax + b, a = ΔyΔx = tan α, x0 = −ba

The slope a tells you how much y grows when x grows by 1, and the intercept b is where the line crosses the y-axis. Lines are parallel when they have equal a, and perpendicular when a1 · a2 = −1. A taxi fare, a phone plan and converting degrees Celsius to Fahrenheit (F = 1.8 · C + 32) are all linear functions: a fixed fee plus a fixed rate for every unit.

Quadratic function

y = ax² + bx + c y = a(x − p)² + q y = a(x − x1)(x − x2)
Δ = b² − 4ac, p = −b2a, q = −Δ4a, x1,2 = −b ± √Δ2a

These are three ways of writing the same parabola: standard, vertex (you can see the vertex W = (p, q) right away) and factored (you can see the zeros; it exists only when Δ ≥ 0). A parabola is symmetric about the line x = p. For a > 0 the arms point up, and the range is [q, +∞).

Shifting by a vector, and reflections

y = f(x − p) + q — the graph of f shifted by the vector [p, q]

Subtracting p inside the parentheses shifts the graph to the right, because the value the function used to have at 0 it now reaches only at p. A minus in front of the function reflects the graph in the x-axis, a minus on the argument — in the y-axis.

Exponential growth and the number e

K = K0 (1 + rm)mt, K = K0 ert (continuous compounding), T2 = ln 2ln(1 + r) ≈ 70r [%]

Linear growth adds the same amount each step; exponential growth multiplies by the same factor. That is why exponential growth always overtakes linear in the end — even when it starts much lower. When interest is added more and more often, (1 + 1/n)n approaches e ≈ 2.71828. The same formula works in reverse as decay: N = N0 · (½)t/T, where T is the half-life.

Logarithm

loga b = c ⇔ ac = b, log(x · y) = log x + log y, loga b = log blog a

A logarithm answers the question “to what power must I raise the base?”. The logarithmic function is the inverse of the exponential one, so their graphs are symmetric about the line y = x. Because log(xy) = log x + log y, a slide rule multiplies by adding lengths. On a logarithmic scale every step of the same length means multiplying by the same number — that is how decibels, pH, and the magnitudes of stars and earthquakes work.

Simplifications on this page

Taxi fares and phone plans are examples. The ball's flight and the fountain ignore air resistance. Compound interest ignores capital gains tax (19% in Poland) and assumes a constant interest rate and constant inflation. The cooling coffee follows a simplified Newton's law of cooling, and the drug in the blood — the simplest one-compartment model with doses given instantly. The data in the “Functions in the world” mode are illustrative but have a realistic shape; day length in Warsaw is calculated from an astronomical formula, and the transistor counts come from manufacturers' data (rounded).

Did you know…?

  • If you could fold a sheet of paper 0.1 mm thick in half 42 times, it would be 0.1 mm · 2⁴² ≈ 440,000 km thick — more than the average distance to the Moon (about 384,400 km). In practice you can't fold a sheet more than a dozen or so times.
  • Apollo program engineers did their everyday calculations on slide rules, and the astronauts carried a small slide rule on board as a backup “calculator”.
  • In many real data sets about 30% of the numbers start with 1, and fewer than 5% with 9 (Benford's law). Auditors use this to catch made-up numbers in accounts: people invent first digits too evenly.

Challenges

  • A line through both targetsIn “Line” mode, set a line that passes through both gold stars.not completed
  • Parabola to orderSet a parabola with its vertex at (2, −3) and one zero at 5. Where does the other one land?not completed
  • Bull's-eyeSolve the puzzle in transformation mode: match your graph to the dashed target.not completed
  • The overtaking momentSet the step n at which exponential growth first overtakes linear.not completed
  • Multiplying without a calculatorDo a task on the slide rule: move scale C and the cursor so you can read off the product.not completed
  • The right modelChoose a model that makes sense for the data and get a fit of R² > 0.95.not completed

Challenges check themselves. Progress is saved in this browser.

See also

A derivative is the slope of a tangent, sine is a periodic function, and radioactive decay, chemical reactions and animal populations grow or shrink exponentially.