Differential Calculus
Functions, Graphs and Growth Rates
Differential calculus studies how quantities change, and every derivative you will ever compute is the derivative of a function. So before any calculus, you need fluency with the standard library of functions: what each one looks like, where it is defined, how it behaves at the edges of its domain, and how fast it grows. Everything later in the course — limits, asymptotes, optimisation, curve sketching — is a question about the graphs collected here.
Functions, domain and range
A function assigns to each input in its domain exactly one output . The range is the set of outputs actually attained. When a formula is given with no domain stated, the natural domain is the largest set of real numbers for which the formula makes sense.
| Ingredient in the formula | Requirement |
|---|---|
| (any even root) | |
| , | |
| , | for every integer |
| , | for every integer |
| , |
Take the intersection of all the requirements: a formula with three ingredients must satisfy all three at once.
The standard library
| Function | Natural domain | Range | Shape facts |
|---|---|---|---|
| , even | all reals | even, U-shaped, through and | |
| , odd | all reals | all reals | odd, increasing, flat at the origin |
| odd; asymptotes , | |||
| increasing, concave down, vertical tangent at | |||
| all reals | all reals | odd, increasing | |
| , (e.g. ) | all reals | increasing; as ; | |
| , | all reals | decreasing | |
| , (e.g. ) | all reals | increasing; as | |
| , | all reals | period ; odd, even | |
| , integer | all reals | period , odd, vertical asymptotes | |
| polynomial of degree | all reals | depends | end behaviour follows the leading term ; at most real roots |
Rational functions and asymptotes
Let with polynomials. Factor both and cancel before drawing conclusions.
- A factor that cancels completely gives a hole at (the point is missing, the graph does not blow up). Its height is the value of the reduced formula at .
- A zero of the reduced denominator gives a vertical asymptote . Determine the sign on each side from the signs of the reduced numerator and denominator.
- End behaviour, comparing degrees: horizontal asymptote ; ratio of leading coefficients; a slant asymptote, obtained by polynomial long division; no linear asymptote (the graph follows the polynomial quotient).
A graph may cross a horizontal or slant asymptote — the asymptote only describes behaviour as . It can never cross a vertical asymptote.
Transformations
Let , real.
| Equation | Effect on the graph of |
|---|---|
| shift up (down if ) | |
| shift right (left if ) | |
| , | vertical stretch by factor |
| , | vertical compression |
| , | horizontal compression by factor |
| , | horizontal stretch by factor |
| reflect in the -axis | |
| reflect in the -axis | |
| reflect in the line (only if is one-to-one) |
Two more: flips the part of the graph below the -axis up above it; deletes the part with and replaces it with the mirror image of the part.
Horizontal transformations act on the input, so always factor the argument first: is a horizontal compression by followed by a shift right 3 — not right 6. Vertical operations act on the output, in the order they are written: stretches by first and then shifts by , which is not the same graph as . As a book-keeping check, horizontal operations affect only the domain and leave the range alone; vertical operations affect only the range and leave the domain alone.
Even and odd symmetry
These require a domain symmetric about (if is in the domain, so is ).
- Even: for all in the domain. Graph is symmetric in the -axis. Examples: , , .
- Odd: for all in the domain. Graph has rotational symmetry about the origin; if is in the domain then . Examples: , , , .
Combination rules: even even even, odd odd even, even odd odd (same for quotients). Even even even, odd odd odd; a mixed sum is usually neither. The only function that is both even and odd is . Most functions are neither — "neither" is a legitimate and common answer.
Composition and inverses
. Its domain is the set of in the domain of such that lies in the domain of — read off from the pieces, never from the simplified formula. In general .
is one-to-one if forces ; graphically, no horizontal line meets the graph more than once (horizontal line test). Every strictly increasing or strictly decreasing function is one-to-one, but the converse fails — a one-to-one function need not be monotone. An inverse exists exactly when is one-to-one, and it then satisfies with and . A function that fails the test can be made invertible by restricting its domain: restricted to gives , with domain .
Exponential and logarithm laws
Take , . Every exponential is a rescaled : , and .
| Law | Valid when |
|---|---|
| all real | |
| all real | |
| , | |
| , | |
| , any real | |
| all real |
Edge case worth memorising: for . Writing silently throws away the whole half of the domain.
Sinusoids: amplitude, period, phase shift
Put every sinusoid in the standard form factoring out of the argument first: , a shift of left, not left.
| Quantity | Value |
|---|---|
| amplitude | |
| period | (but for and ) |
| phase shift | (right if , left if ) |
| midline | |
| range |
The same table applies with in place of . Shift identities that kill a phase: , , .
Comparing long-run growth rates
For functions eventually positive, say grows faster than if (equivalently ). The three facts you need, valid for every , and every :
| Slowest to fastest as | Comment |
|---|---|
| constants | no growth |
| , any | beaten by every positive power of |
| , small | larger always wins |
| , large | beaten by every exponential |
| , | larger wins: when |
| , then (integer ) | faster than every exponential |
To compare two exponentials written differently, put both in the form : with , so beats . The practical technique for a limit at infinity is to divide numerator and denominator by the single fastest-growing term that appears. (These facts can be proved later with l'Hopital's Rule, which requires the quotient to be of the indeterminate form or , both functions to be differentiable near the point with the denominator's derivative non-zero there, and the limit of the ratio of derivatives to exist or be .)
Curve sketching checklist (no calculus needed)
- Domain. 2. Intercepts. 3. Symmetry (even, odd, periodic). 4. Vertical asymptotes and holes, with the sign of on each side. 5. End behaviour: horizontal or slant asymptote, or the dominant term. 6. Sign chart from the fully factored form. 7. Plot two or three extra points and join using the shapes from the standard library.
Worked example 1 — a complete rational sketch
Sketch .
Factor. and , so Domain. The denominator vanishes at and , so the domain is .
Reduce. For , . The cancelled factor gives a hole at of height .
Vertical asymptote. Only . As the numerator and the denominator , so ; as the denominator , so .
Horizontal asymptote. Degrees are equal with leading coefficients and , so . Does the graph cross it? Solving gives , i.e. : impossible, so it never crosses.
Intercepts. only when , giving ; and , giving .
Sign. on and on , and is negative on .
Position relative to . The sign chart does not settle this — subtract instead: That is positive exactly when , so the curve sits above on and below on , with a hole punched out at (and indeed ).
Worked example 2 — a growth rate by substitution
Show that .
Substitute , so and as (legitimate because is continuous, strictly increasing and maps onto ). Then and Now apply with and . Hence the limit is .
This convergence is slow, which is exactly why intuition needs the theorem: at the ratio is , still bigger than ; at it is .
Common mistakes
- Wrong: . Right: ; the square root symbol always returns the non-negative root.
- Wrong: the domain of is . Right: means , so the domain is .
- Wrong: . Right: only products split: for . does not simplify at all.
- Wrong: is "compress horizontally by , then shift right ". Right: that sequence produces . Factor first: — compress, then shift right (or shift right first and then compress).
- Wrong: is even because is. Right: but , so it is neither even nor odd. One term does not decide.
- Wrong: is odd because its graph "curls". Right: its domain is not symmetric about , so is undefined and the function is neither.
- Wrong: cancelling removes the problem at , so the graph is unbroken there. Right: the original function is undefined at ; the graph has a hole at .
- Wrong: a graph can never touch its horizontal asymptote. Right: crosses at every with , yet is still its horizontal asymptote.
- Wrong: with and , for every real . Right: the composite inherits 's domain, so only on .
- Wrong: grows faster than — just check . Right: the two graphs cross where , at and again at ; is larger only strictly between those, and wins forever after . Growth statements are claims about the long run only.
Key terms
- domain
- range
- natural domain
- even function
- odd function
- composition of functions
- one-to-one (injective)
- horizontal line test
- inverse function
- transformation (shift, stretch, reflection)
- polynomial
- rational function
- vertical asymptote
- horizontal asymptote
- slant (oblique) asymptote
- hole (removable point)
- end behaviour
- exponential function
- logarithm
- period and amplitude
- growth rate hierarchy
- dominant term
Practice Problems
Find the natural domain of and write your answer in interval notation.
Show hint
There are two separate requirements here: the square root needs a non-negative input, and the denominator is not allowed to be zero. Impose both, then intersect.
Show answer
Step 1 — the square root. We need , i.e. . This alone gives .
Step 2 — the denominator. We need . Factor: , so and .
Step 3 — intersect. Start from and delete the two forbidden points and (both lie inside that interval):
Check. At : , defined — so the left endpoint is correctly included. At : is not real, correctly excluded. At : denominator , correctly excluded.
Classify each function as even, odd or neither, justifying each answer:
- (a)
- (b)
- (c)
- (d)
Show hint
Compute and compare it with and with . Before any of that, check whether the domain is symmetric about .
Show answer
(a) Domain is all reals (symmetric). Replace by : Every power of present is even, so is even.
(b) Domain is all reals. Both factors are odd: and . So is even — odd odd even. (Sanity check: and , equal.)
(c) Domain is all reals since always. Then so is odd — odd numerator over even denominator. (Check: , .)
(d) The domain of is , which is not symmetric about : for in the domain, is not. So is undefined and neither condition can hold. is neither.
Summary: (a) even, (b) even, (c) odd, (d) neither.
Starting from the graph of , describe in order the transformations that produce and state the domain and range of the result.
Show hint
Write the formula as with , and track what each operation does to the domain and to the range separately.
Show answer
Write , whose domain is and range is . The target is .
Step 1 — inside the function: . is a shift 3 units left (since ). Domain becomes , i.e. ; range still .
Step 2 — multiply the output by . is a vertical stretch by factor 2. Range: .
Step 3 — multiply the output by . reflects in the -axis. Range becomes .
Step 4 — add . is a shift 1 unit up. Range becomes .
Domain: the vertical operations (steps 2–4) never change the domain, so it stays . Range: .
Check with points. At : , the highest point, matching the top of the range. At : , so ; the curve falls to the right, consistent with a reflected, stretched square root.
Let and . Find formulas for and , and state the domain of each composite.
Show hint
Substitute one formula into the other, then build each domain from two conditions: the inner function must be defined, and its output must be an allowed input for the outer function.
Show answer
The composite . Domain conditions:
- must be in : .
- must be in , i.e. , which gives .
So .
The composite . Domain conditions:
- must be in : .
- must be in : . Since the numerator is positive, this fraction is non-negative exactly when (it is never equal to ).
So , and .
Check. , and . At : is fine, but is not — the two composites genuinely have different domains, and .
Solve for : State clearly which candidate solutions are valid and why.
Show hint
Write down the domain restrictions before you combine the logarithms — that is what decides the fate of the second root.
Show answer
Step 1 — domain. Both logarithms must have positive arguments: and . Together: . Any candidate root not exceeding must be rejected.
Step 2 — combine. For both arguments are positive, so the product law applies:
Step 3 — remove the logarithm. By definition of ,
Step 4 — solve the quadratic.
Step 5 — test against the domain. fails (indeed is undefined), so it is extraneous and is rejected. satisfies .
Verification. . Correct.
Answer: is the only solution.
For , state the amplitude, period, phase shift, midline and range. Then find every in at which the maximum value is attained.
Show hint
Factor the out of the argument before reading off the phase shift. Then look for an identity that removes the phase shift entirely.
Show answer
Step 1 — factor the argument.
Step 2 — read off the data.
- Amplitude: .
- Period: (the input is multiplied by , compressing the period by ).
- Phase shift: to the left.
- Midline: .
- Range: the sine factor lies in , so and .
Step 3 — simplify. Using with , (Check at : the original gives ; the simplified form gives . Agreed.)
Step 4 — locate the maxima. is largest when , i.e. when Restricting to gives : ( gives , which is excluded.) The three maxima are exactly one period apart, as they must be.
For find the domain, any holes, all asymptotes and both intercepts, and describe the behaviour of the graph on each side of the vertical asymptote.
Show hint
Factor the numerator and the denominator first. A common factor changes the story completely.
Show answer
Step 1 — factor. For the numerator, look for . Correct. The denominator is . So
Step 2 — domain. The original denominator vanishes at and :
Step 3 — reduce, and find the hole. For , . Since cancelled completely, is a hole, not an asymptote. Its height is the reduced formula at :
Step 4 — vertical asymptote. The reduced denominator vanishes only at , so is the single vertical asymptote.
Step 5 — horizontal asymptote. Numerator and denominator of the original have equal degree , with leading coefficients and , so . Does the graph meet it? gives , i.e. : impossible, so it never crosses.
Step 6 — intercepts. when , i.e. (which is in the domain): the point . And , so the -intercept is .
Step 7 — sides of . Use the reduced form ; near the numerator is close to .
- As : , so .
- As : , so .
Numerical check. (large positive) and (large negative). Consistent.
Let . Find all asymptotes, and determine whether the graph approaches the slant asymptote from above or from below as and as .
Show hint
The degree of the numerator is exactly one more than the degree of the denominator. Divide.
Show answer
Step 1 — vertical asymptote. The denominator vanishes at , and the numerator there is , so there is a vertical asymptote at (no cancellation, hence no hole).
Step 2 — long division. Since , expect a slant asymptote. Write , because and . Therefore
Step 3 — the slant asymptote. As , , so the graph approaches the line There is no horizontal asymptote (the function is unbounded at both ends).
Step 4 — which side? The signed gap is exactly
- For this is positive, so as the graph lies above .
- For this is negative, so as the graph lies below .
The gap is never zero, so the graph never crosses its slant asymptote.
Step 5 — behaviour at the vertical asymptote and intercepts. As , so ; as , . There are no -intercepts because for all ; the -intercept is .
Numerical check. while : the gap is , positive and small, exactly as predicted. while : the gap is , negative.
Show that is one-to-one on its domain, find a formula for , and state the domain and range of both and .
Show hint
Rewriting the fraction as "constant plus a multiple of " makes both the injectivity and the range immediate.
Show answer
Step 1 — domain of . The denominator vanishes at , so .
Step 2 — rewrite. Force the numerator to contain : (Check: . Correct.)
Step 3 — one-to-one. Suppose with . Then So is one-to-one and an inverse exists.
Step 4 — range of . Since takes every non-zero real value (and never ), takes every real value except . So — which is exactly the statement that is the horizontal asymptote and is never attained.
Step 5 — invert. Set and solve for : Swapping names,
Step 6 — domains and ranges. confirming and .
Check. , and . Also and . Both round trips return the start.
Order the following six functions from slowest to fastest growing as , and justify the three closest calls with an explicit limit:
Show hint
Compare functions in pairs by looking at the limit of their ratio, and rewrite both exponentials in the common form before comparing them.
Show answer
The order is (slowest to fastest). Justification, pair by pair:
vs . By the log-versus-power fact with , : so grows slower than . Any positive power of eventually beats any power of .
vs . since both factors tend to . So grows faster than .
vs . by the log-versus-power fact with , . So is slower than .
vs . Power versus exponential: with , so and beats .
vs . Put both in the form : and with . Then so is the fastest.
A warning about "eventually". At the actual values are , , , , , — so is still comfortably ahead of and . Solving shows only overtakes near . The ordering is an asymptotic statement, never a claim about the values you can see on a calculator.
Evaluate the following, justifying each step with the growth hierarchy (no l'Hopital's Rule):
(a)
(b)
Show hint
For (a), first decide which of the three terms grows fastest, then divide top and bottom by it. For (b), the substitution turns the problem into a familiar comparison at infinity.
Show answer
(a) First identify the fastest-growing term. Rewrite with . So among , and , the dominant term is : it beats the power , and it beats the smaller-base exponential.
Divide numerator and denominator by (legal, since ):
Now take limits term by term:
- by the power-versus-exponential fact (, ).
- because , and for .
Hence
Numerical check at : , , . The quotient is . Consistent.
(b) Substitute , so that and as . Then By the log-versus-power fact with , , as . Therefore
Numerical check: at , ; at , . Approaching from below, as the negative sign predicts.
Let .
- (a) Show that is odd.
- (b) Show that is one-to-one, and find an explicit formula for .
- (c) State the domain and range of .
Show hint
For (b), multiply the equation through by and treat the result as a quadratic in the single unknown — then remember that must be positive.
Show answer
(a) The domain is all reals, which is symmetric about . Replace by : So is odd. (Consistently, .)
(b) One-to-one. is strictly increasing, and is strictly decreasing, so is strictly increasing. A sum of strictly increasing functions is strictly increasing, hence is strictly increasing and therefore one-to-one.
Inverting. Set and multiply both sides by (positive, so nothing is lost): Let , so and By the quadratic formula, Because , the choice is negative, which is impossible for . So Renaming the variable,
(c) As , and , so ; as , . Being continuous and strictly increasing, attains every real value exactly once, so is all of the reals. Therefore This agrees with the formula directly: , so for every real and the logarithm is always defined.
Check. . Going back: , since . The round trip works.
Bonus consistency check: the inverse of an odd one-to-one function must be odd, and indeed
