Functions and Rational Functions
☰ Contents
A function is a rule that takes an input and gives back exactly one output. That definition decides which inputs are allowed, when a rule can be run backwards, and why some graphs have gaps.
What does f(x) mean?
f(x) is the output of the rule f when the input is x. It is not f multiplied by x. To find f(4), put 4 in place of every x in the rule.
If f(x) = 2x + 1, then f(3) = 2 × 3 + 1 = 7. The x inside the bracket is a placeholder, and a whole expression can take its place: f(a + 1) = 2a + 3.
See Function Notation.
Now you
f(x) = 5x + 1. What is f(8)?
f(x) = 5x + 6. What is f(5)?
Lesson complete. Continue in the app — your progress saves there.
How do you find the domain and range?
The domain is the set of inputs a function accepts. The range is the set of outputs it can produce.
To find a domain, start with every real number and remove the inputs that break the rule: a denominator cannot be zero, the inside of a square root cannot be negative, and the argument of a logarithm must be positive. has domain every real number except 2. has domain .
The range needs the graph. For every input is allowed, but a square is never negative, so the range is .
See Domain and Range.
Now you
. Which input is not allowed?
. What is the smallest output?
Lesson complete. Continue in the app — your progress saves there.
Functions built out of pieces
A piecewise function uses a different rule on each stretch of its domain. To evaluate it, first find which stretch the input falls in, then use that rule. The boundary belongs to the rule whose inequality includes "or equal to".
The pieces join without a jump when both rules give the same value at the boundary. To make that happen, work out each rule at the boundary, set the two values equal, and solve for the unknown constant.
See Piecewise Functions, Graphing a Piecewise Function and Making a Piecewise Function Continuous.
Composite and inverse functions
A composite function sends the output of one function into another as its input. fg(x) means f(g(x)): apply g first, then f. If f(x) = x + 1 and , then fg(2) = f(4) = 5, but gf(2) = g(3) = 9.
An inverse function undoes the original: if f sends 3 to 10, then sends 10 back to 3. To find one, reverse the order of the steps and replace each step with its opposite. f(x) = 3x + 1 multiplies by 3 and then adds 1, so subtracts 1 and then divides by 3: .
Swapping input and output swaps the coordinates of every point, so (3, 10) becomes (10, 3).
See Composite Functions and Inverse Functions.
Now you
f(x) = x + 2, g(x) = 3x. What is gf(4)?
f(x) = x + 6, g(x) = 4x. What is gf(3)?
Lesson complete. Continue in the app — your progress saves there.
How do transformations change a graph?
A change outside the bracket acts on the output and moves the graph the way it reads: lifts every point up 3. A change inside the bracket acts on the input and moves the graph the opposite way: shifts the graph 3 to the right, because x must be 3 bigger than before for the bracket to hold the same value.
Stretches follow the same split. doubles every height, and no point moves sideways. acts on the input, so the bracket reaches its old value at half the x, and the curve is squashed to half its width.
See Transforming Graphs, Stretching a Graph Vertically and Stretching a Graph Horizontally.
What makes exponential growth different?
Linear growth adds the same amount each step. Exponential growth multiplies by the same factor each step, so each step is bigger than the last, and the curve eventually overtakes any straight line. After n steps of doubling, a starting amount A has become .
Exponential decay is the same rule with a factor below 1. A half-life of 3 days means the amount halves every 3 days: 80 g becomes 40 g, then 20 g, then 10 g.
Nothing real doubles forever, because the room runs out. A logistic model grows like an exponential at first, then flattens onto a ceiling called the carrying capacity.
See Exponential Growth, Exponential Decay, Growth and Decay Problems and Logistic Growth and Carrying Capacity.
What is a logarithm for?
A logarithm asks what power the base was raised to: because . Taking a logarithm undoes raising to a power.
The laws of logarithms come from the laws of exponents. Multiplying powers of one base adds the exponents, , so log(ab) = log a + log b. Dividing subtracts: . A power is repeated multiplying, so the exponent comes to the front: .
The power law solves an equation with the unknown in the exponent. Take the log of both sides, and the x comes down. To solve : x log 3 = log 20, so .
A calculator offers only and ln, and the change of base rule reaches every other base from those two: . ln is the logarithm with base , and it obeys every law above.
See Exponentials and Logarithms, The Laws of Logarithms, Solving Exponential Equations, The Change of Base Rule and The Natural Logarithm.
Now you
. What is x?
. Which expression gives x?
Lesson complete. Continue in the app — your progress saves there.
Reading data on a log scale
A logarithmic axis places each value v at distance log v, so equal distances stand for equal multiples: 1, 10, 100 and 1000 are evenly spaced.
A log axis tests for exponential growth. If , taking logs of both sides gives log y = log a + x log b, a straight line in x. Plot log y against x: if the points straighten, the data is exponential, and undoing the logs on the gradient and the intercept recovers b and a.
The axis that takes the logs picks the model. A power law straightens when log y is plotted against log x, and the gradient is n. A logarithmic model y = a + b ln x straightens when y is plotted against ln x.
See Logarithmic Graphs, Straightening Growth with Logarithms, Straightening a Power Law and Fitting a Logarithmic Model.
Why do some graphs have gaps?
A rational function is one polynomial divided by another, and a fraction has no value where its denominator is zero. What the gap looks like depends on whether the factor that makes the denominator zero cancels.
A fraction is zero only when its numerator is zero, so the zeros of the numerator are the x-intercepts. Where the denominator is zero and nothing cancels, the graph has a vertical asymptote: just to one side the denominator is tiny, so the values grow without bound.
When the same factor appears above and below, it cancels, and the gap is a single missing point called a hole. . Cancel, and x + 2 is left for every x except 2, where the original reads 0 ÷ 0. A hole is a removable discontinuity; an asymptote cannot be repaired.
Far from the origin the leading terms decide the shape, so compare the degrees of the top and the bottom. If the bottom has the higher degree, the curve flattens onto y = 0. If the degrees are equal, it flattens onto the ratio of the leading coefficients: flattens onto y = 2. If the top is exactly one degree higher, the curve approaches a slanted line instead.
Long division finds that line. Divide polynomials the way you divide numbers: compare the leading terms, multiply back, subtract, and repeat. The quotient is the slant asymptote, and the remainder over the divisor fades to nothing far out. , so the slant asymptote is y = x + 2.
See Zeros and Vertical Asymptotes, Holes Where a Factor Cancels, Horizontal Asymptotes by Degree, Long Division of Polynomials and Slant Asymptotes by Long Division.
Now you
What is the horizontal asymptote of ?
What is the horizontal asymptote of ?
Lesson complete. Continue in the app — your progress saves there.
The mistakes worth naming
- Reading f(x) as multiplication. f(4) means put 4 in for x, and f(a + b) is not f(a) + f(b) unless f(x) = kx.
- Shifting the wrong way. f(x + 3) moves the graph 3 to the left. A change inside the bracket works in reverse.
- Composing in the wrong order. fg(x) means f(g(x)): apply g first.
- Cancelling without recording the hole. Simplifying to x + 2 loses the fact that x = 2 was never allowed.
Learn this properly in the app
Every lesson linked above is in Math Challenge, with an illustrated explanation and practice questions. Graphs of equations and coordinate geometry covers the lines and curves these transformations act on, and sequences and series continues from exponential growth into geometric series.
Your turn
Three to try — tap what you get.
f(x) = 2x + 3. What is f(4)?
Where is 1/(x − 2) undefined?
f(x) = x² and g(x) = x + 1. f(g(2))?
0 of 0 right on this page
Practice this lesson in the appThat is every question on this page.
0 of 0 right. Best run: 0 in a row.
The app carries on from here: practice that adapts to you, the full lesson ladder, and your progress saved.
Keep going in the app