Functions and analysis
Functions and their graphs, then limits, derivatives and integrals — how fast something grows, where it peaks and how much of it adds up.
Topics in this branch
Why this branch is worth learning
Every topic here settles a real situation. One example from each lesson:
- Dosing a child’s medicineThe leaflet gives 15 mg of paracetamol per kilogram of body weight — a function f(m) = 15m whose argument is the weight and whose value is the dose. A child of 18 kg gets 270 mg at a time and 1,080 mg across four doses in a day. The domain matters just as much: the formula holds from roughly 4 to 50 kg, and above that a flat adult dose of 1,000 mg takes over, so substituting into the formula stops meaning anything.
- The electricity billA bill comes in two parts: standing charges that do not depend on usage, and a price per kilowatt-hour. With 38 of standing charges and 0.92 per kWh the bill is f(x) = 0.92x + 38, so 210 kWh costs 231.20. The intercept explains the thing that surprises people most: twice the usage is not twice the bill — 420 kWh comes to 424.40, which is 1.84 times as much, not two.
- Braking distanceBraking distance grows with the square of the speed: s = v²/(2a). On dry asphalt the deceleration is around 7 m/s², so at 50 km/h (13.9 m/s) a car needs 13.8 m, and at 100 km/h it needs 55.1 m — four times as far for twice the speed. The same parabola is why dropping a limit from 50 to 30 km/h shortens braking to 5.0 m rather than to the 8.3 m a proportion would predict.
- Tuning an instrumentA tuning fork sounds A4 at 440 Hz, that is the wave y = a·sin(2π·440·t). The same string pulled tighter sounds 466 Hz — the coefficient beside t grows, so the period drops from 1/440 ≈ 2.27 ms to 1/466 ≈ 2.15 ms. The tuner changes no shape, only one coefficient in the formula; plucking harder changes the amplitude alone, which is the loudness.
- The weight chart in an appThe app plots 12 weeks of readings. The extreme points on their own say little: a maximum of 84.2 kg in week 3, a minimum of 79.6 kg in week 11. It is the intervals of monotonicity that form a sentence — the curve falls from week 3 to week 11, that is 4.6 kg over 8 weeks, 0.58 kg a week. The last week climbs again, which reading the extremes alone would never have shown.
- Travel timeThe Warsaw–Kraków route is about 295 km, so the driving time is t = 295/v — inverse proportion in its purest form. At 90 km/h that is 3 h 17 min, at 120 km/h only 2 h 28 min. Doubling the speed from 100 to 200 km/h would cut the drive from 2 h 57 min to 1 h 29 min, exactly in half — and that is the whole content of the word "inverse".
- Carbon-14 datingThe half-life of carbon-14 is 5730 years, so N(t) = N₀·(1/2)^(t/5730). An archaeologist measures 25% of the original isotope content in a find and solves (1/2)^(t/5730) = 0.25, that is t/5730 = 2 — the sample is 11,460 years old. At 12.5% it would come out at 17,190 years: each further halving is one more full period.
- Training planA ten-week running plan: 20 minutes of easy running in week one, 5 minutes more in every week after that. That is a sequence with the general term aₙ = 15 + 5n, so week ten calls for 15 + 50 = 65 minutes. The difference between consecutive terms is a constant 5 minutes — positive, so the load rises and no week is lighter than the one before it.
- A savings accountYou deposit 10,000 into an account paying 4% a year, compounded annually. The balance after each year is a geometric sequence with ratio q = 1.04: after five years you hold 10,000 · 1.04⁵ = 12,166.53, so 2,166.53 in interest — 166.53 more than plain addition of 400 a year would give. That surplus is exactly the interest earned on interest.
- A bouncing ballA ball dropped from 2 m returns to 60% of the previous height after every bounce. The bounce heights form a geometric sequence with q = 0.6, and the whole distance travelled is 2 + 2 · (1.2 + 0.72 + 0.432 + …) = 2 + 2 · 1.2/(1 − 0.6) = 8 metres. There are infinitely many bounces and the distance is finite — which is exactly the situation a convergent series describes.
- A currency desk with a commissionAn exchange office converts euros to zloty at g(x) = 4.30x and then takes a 2% commission, f(y) = 0.98y. A customer changing 500 € receives f(g(500)) = 0.98 · 2150 = 2107 zloty. The reverse operation answers "how many euros must I sell to get 3000 zloty": from 4.214x = 3000 we get 711.91 €, and that is precisely the inverse of the composition.
- Unit cost in manufacturingSetting up a production line costs 40,000 zloty and each item costs 12, so the cost per item is k(n) = (40000 + 12n)/n. At 500 items that is 92 zloty, at 5000 it is 20, at 50,000 it is 12.80. The horizontal asymptote y = 12 says where the curve stops: it will never drop below the material cost, however far production grows.
- A coffee machine instead of the caféThe machine costs 1,200 and a cup made on it costs 1.10, so the cost per cup after n cups is f(n) = (1200 + 1.1n)/n = 1.1 + 1200/n. After a hundred cups that is 13.10, after a thousand 2.30, and the limit as n grows without bound is 1.10 — a floor you will never get under, not if you drink coffee daily for twenty years. The limit is what answers "how little can this possibly cost", and set against a café at 14 it puts the break-even at the 93rd cup.
- Pace on a running watchThe watch has no speed sensor — all it knows is a run of GPS positions. It gets instantaneous speed from a difference quotient: over one second the position moved 3.1 m, which is 3.1 m/s, or 11.2 km/h, a pace of 5:23 min/km. The shorter the interval, the closer the figure gets to the value right now, and that limit as h goes to zero is precisely the definition of the derivative — displayed on your wrist once a second.
- Designing a drinks canA can has to hold 330 ml on as little aluminium as possible. At radius r the height is h = 330/(πr²), so the surface area is S(r) = 2πr² + 660/r. The derivative S′(r) = 4πr − 660/r² vanishes at r³ = 660/(4π), that is r = 3.74 cm and h = 7.5 cm — the optimal can is squat, exactly as tall as it is wide. A real one has r = 3.3 cm and spends 268 cm² of metal instead of 264, because the lid must be thicker; across a billion cans that 1.5% is a budget line of its own.
- Fuel used on a climbThe trip computer shows instantaneous consumption in litres per hour, while what you want to know is how much fuel actually went. On a two-hour climb consumption rises from 6 to 12 l/h, that is f(t) = 6 + 3t. The amount used is the integral: ∫ (6 + 3t) dt from 0 to 2 = [6t + 1.5t²] = 12 + 6 = 18 litres. Multiplying by the opening reading would say 12 l, by the closing one 24 l — both wrong, and the car’s own gauge does exactly what the integral does: it sums hundreds of short stretches.
- Work done stretching a resistance bandThe force needed to stretch a rubber band is not constant — it builds up and levels off: F(x) = 150(1 − e^(−4x)) newtons. Work is the integral of force along the distance, so stretching it by 0.5 m takes 150·(0.5 + 0.25·e^(−2) − 0.25) ≈ 42.6 joules. The exponential term has no row in the table of integrals — the linear substitution u = −4x is what handles it.
- How much further the bike will rollOnce you stop pedalling, the speed decays exponentially: v(t) = 6·e^(−t/12) metres per second. The distance to a standstill is the integral of speed over all remaining time — an improper integral over an infinite interval — and it comes out as a finite 6·12 = 72 metres. In theory the bike never quite stops, and it still travels exactly 72 metres.
- A stack of blocks leaning off the tableBlocks piled one on another can hang over the edge of a table further the more of them there are: with n blocks the maximum overhang is half the n-th partial sum of the harmonic series. Four blocks give 1.04 block lengths, and to pass two lengths you need as many as 31. The overhang grows without bound, because the harmonic series diverges — it just grows desperately slowly.
- How a calculator evaluates a sineA processor holds no table of sines — it sums a few terms of a series. For x = 0.5 the polynomial x − x³/6 + x⁵/120 alone gives 0.4794255, and the true sine is 0.4794255 — seven digits of agreement from three terms. The next term would change the result by less than 10⁻⁹, so it is simply never computed.
Branch formulas
Branch: Functions and analysis
What a function is
A function from X into Y
assigns exactly one element of Y to every element of X
The value notation
x is the argument, y the value of the function at it
Domain
the set of all arguments
Range
the set of all values the function takes
Zero of a function
an argument whose value is zero
The graph
the set of points (argument, value)
Linear function
Slope–intercept form
a — the slope, b — the intercept
Slope from two points
the rise divided by the run
The zero
where the graph crosses the x-axis
The value at zero
where the graph crosses the y-axis
General form
reducible to the slope–intercept form whenever B ≠ 0
Condition for parallel lines
parallel lines have equal slopes
Condition for perpendicular lines
hence a₂ = −1/a₁
Quadratic function
General form
the graph is a parabola
Coordinates of the vertex
(p, q) — the turning point of the parabola
Canonical form
the vertex is readable straight off it
Factored form
exists only when Δ ≥ 0; shows the zeros
Axis of symmetry
the vertical line through the vertex
Range
for a < 0 it is (−∞, q⟩
Transforming a graph
Shift along the y-axis
up for q > 0, down for q < 0
Shift along the x-axis
to the right for p > 0 — against the sign in the formula
Translation by a vector
\vec{u} = [p,\, q]
Reflection in the x-axis
flips the sign of the value
Reflection in the y-axis
flips the sign of the argument
Vertical stretch
a times further from the x-axis
Horizontal squeeze
b times closer to the y-axis
The general sinusoid
amplitude |a|, period \tfrac{2\pi}{|b|}, shifted by -\tfrac{c}{b}
Reading properties from a graph
A zero
where the graph crosses the x-axis
The sign of a function
below the axis the values are negative
Increasing function
on an interval where the graph rises
Decreasing function
on an interval where the graph falls
Minimum
the lowest point of the graph; a maximum works the same way
Domain and range
the shadows of the graph on the two axes
Inverse proportion and the homographic function
Inverse proportion
domain: x \neq 0
The proportionality condition
the product is constant — that is how a is found
Homographic function
a hyperbola translated by [p,\, q]
The asymptotes
vertical and horizontal — approached, never reached
Vertex form
a quotient of linear expressions as a translated hyperbola
Exponential and logarithmic functions
The exponential function
domain: \mathbb{R}, range: (0,\ \infty)
The logarithmic function
domain: (0,\ \infty), range: \mathbb{R}
Mutually inverse
each one undoes what the other does
Exponential equation
one-to-one — which is why the exponents may be compared
Logarithmic equation
given x_1 > 0 and x_2 > 0
Radioactive decay
T — the half-life
Number sequences
A sequence is a function
the domain is the natural numbers, so the graph is a set of dots
General term
substitute the index and the term is there
Recursive formula
each term from the previous one — you have to walk through them
Increasing sequence
the difference of consecutive terms is positive for every n
Decreasing sequence
the same difference, negative for every n
Constant sequence
every term equal
Arithmetic and geometric sequences
Common difference
the same for every pair of neighbouring terms
nth term, arithmetic
the first term plus n − 1 steps
Arithmetic mean
every term is the mean of its neighbours
Sum of n terms, arithmetic
the mean of the outer terms times how many there are
Common ratio
the same for every pair of neighbouring terms
nth term, geometric
the first term times the ratio raised to n − 1
Geometric mean
a term squared equals the product of its neighbours
Sum of n terms, geometric
for q = 1 the sum is simply n times a₁
Limit of a sequence and the geometric series
Limit of a sequence
a sequence convergent to the number g
Definition of the limit
from some point on, every term lies closer to g than epsilon
The basic limit
every quotient limit is derived from it
Quotient of polynomials
for equal degrees — the ratio of the leading coefficients
The number e
a limit that is the definition of a constant
Sum of a geometric series
only for a convergent one — otherwise there is no sum
Composition and inverse functions
Composition of functions
g first, then f — read from the inside out
Order matters
composition is not commutative
One-to-one
the condition for an inverse to exist
The inverse function
undoes exactly what f did
Roles swapped
domain and range change places
The graph of the inverse
a reflection in the line y = x
Rational functions and asymptotes
A rational function
a quotient of two polynomials
The domain
the zeros of the denominator are excluded
A pole
when Q(x_0)=0 and P(x_0) \neq 0
Horizontal asymptote
the denominator grows faster
Horizontal asymptote
the ratio of the leading coefficients
Oblique asymptote
the quotient of the polynomial division
Limit of a function
Limit of a function
the values f(x) close in on g as x closes in on x₀
Continuous function
a polynomial is continuous, so the limit is plain substitution
The 0/0 indeterminate form
cancel the common factor first, substitute afterwards
Equal degrees
the ratio of the leading coefficients
Numerator of lower degree
the denominator grows faster, so the quotient dies away
One-sided limits
a limit exists only when both sides agree
Continuity at a point
the value exists, the limit exists and the two agree
The intermediate value property
a continuous function with opposite signs at the ends has a root
The derivative
Definition of the derivative
the limit of the difference quotient as the increment shrinks to zero
Power rule
the exponent steps in front of x and drops by one
Constants and sums
a constant factor passes through; a sum differentiates term by term
Product rule
the derivative of a product is NOT the product of the derivatives
Quotient rule
a difference on top — the order matters
Chain rule
the outer derivative times the derivative of the inside
Root and reciprocal
the same power rule with exponents ½ and −1
Trigonometric functions
the cosine picks up a minus sign
What the derivative is for
Equation of the tangent
a line of slope f′(x₀) through the point of tangency
Increasing function
a positive derivative is a tangent leaning upwards
Decreasing function
a negative derivative is a tangent leaning downwards
Necessary condition for an extremum
a critical point — a candidate, not yet an extremum
Sufficient condition (maximum)
the derivative must CHANGE sign from plus to minus
Sufficient condition (minimum)
minus to plus — a trough instead of a crest
The integral
Antiderivative
F is an antiderivative of f when differentiating F gives f
Indefinite integral
the result is a whole FAMILY of functions, hence the constant C
Power rule
the exponent grows by one, then divide by the new exponent
Newton–Leibniz formula
the constant C cancels in the subtraction, so it never matters
Area under a curve
the definite integral equals the area only above the axis
Area in general
where the curve dips below the axis, the area is computed piece by piece
Trigonometric functions
the minus sign changes sides compared with differentiation
The integral of 1/x
the one exponent the power rule cannot handle
The exponential function
its own derivative, so its own antiderivative too
Area between two curves
integrate the difference: upper curve minus lower
Integration by parts and substitution
Integration by parts
the product rule, reversed
Parts, definite
the uv term is evaluated at the bounds, the rest stays an integral
Integration by substitution
the chain rule, reversed
The bounds travel
a substitution moves the limits too
Linear substitution
the commonest case: divide by a
The exponential integral
needed by the worked examples on parts
Improper integrals
Improper integral, first kind
an unbounded interval of integration
Improper integral, second kind
the function is unbounded at the endpoint a
The p-test at infinity
divergent for p ≤ 1
The p-test at zero
divergent for p ≥ 1
An exponential tail
convergent for every positive a
Finite area, infinite height
the flagship example of the second kind
Number series
Partial sum
the finite sum of the first n terms
Sum of a series
the limit of the sequence of partial sums
Necessary condition
it does not run backwards
Comparison test
smaller than a convergent series is convergent
Ratio test
divergent for g > 1, inconclusive for g = 1
Root test
divergent for g > 1, inconclusive for g = 1
Leibniz test
a sequence decreasing to zero, alternating signs
Absolute convergence
absolute implies plain, never the reverse
Power and Taylor series
Power series
a function of its argument x
Radius of convergence
convergent for |x − x_0| < R
Taylor series
the coefficients are derivatives at x_0
Maclaurin series
the Taylor series about zero
Expansion of eˣ
convergent for every x
Expansion of sine
odd powers only
Expansion of cosine
even powers only
Expansion of the logarithm
only for −1 < x ≤ 1
Approximation error
M bounds the derivative of order n+1
