Worked examples — Types — constant, linear, quadratic, polynomial, rational, radical, piecewise
This page is the practice arena for Types of Functions. We already met each family. Now we hunt down every scenario each family can throw at you — every sign, every degenerate input, every limiting value — and solve one example for each.
Before a single symbol appears we agree on two words used all over this page:
- Root / zero: an input where the output is , i.e. the graph touches the horizontal axis.
- Asymptote: an invisible straight line the graph hugs but never quite reaches. Vertical ones sit under a "blow-up"; horizontal ones describe "what the graph settles to far away".
If you need the definitions of the families themselves, keep M02.01 Function Definition and M02.03 Domain and Range in another tab.
The scenario matrix
Every worked example below is tagged with a cell from this table. Together they touch every cell.
| Cell | Family | The tricky scenario |
|---|---|---|
| C0 | Constant | flat line, slope zero, single-value range |
| C1 | Linear | positive slope vs the sign trap (rising / falling) |
| C2 | Quadratic | min and max, plus the degenerate |
| C3 | Quadratic | complex roots (parabola never touches axis) |
| C4 | Polynomial | end behaviour across all four sign/parity combos |
| C5 | Polynomial | repeated root vs "more factors = higher degree" trap |
| C6 | Rational | vertical asymptote + a hole (removable point) |
| C7 | Rational | all three asymptote cases by degree comparison (, const, oblique) |
| C8 | Radical | domain restriction and the boundary |
| C9 | Piecewise | continuity check at the seam (a limiting-value case) |
| C10 | Word problem / exam twist | real projectile + "find when height " |
Example 0 — Constant function, the flat line · Cell C0
Forecast: guess — how many -intercepts can a constant function have?
- Read the rule. means "ignore , always return ": no appears in the formula. Why this step? If the output never mentions the input, it cannot change with .
- Slope is zero. Between any two points the rise is (both heights are ): . Why this step? Slope = rise/run; a flat height gives zero rise, hence zero slope.
- Range is a single value. Every input maps to , so the range is the set (see M02.03 Domain and Range). Why this step? Range = "all outputs actually produced"; here only is ever produced.
- -intercept? Solve : impossible. A constant never crosses the -axis; the special case is the -axis itself. Why this step? An -intercept needs output , but the output is stuck at .
Verify: , , — output unmoved, so slope and range ✓. No solution to , so zero -intercepts ✓.
Example 1 — Linear, the sign trap · Cell C1
Forecast: guess the direction before reading on. Does the matter for direction?
- Identify slope and intercept. Compare with : so , . Why this step? Direction is decided only by (the rate of change), never by .
- Read the sign of . , so every in drops by : the line falls. Why this step? Slope = rise over run; a negative rise means going down as we move right.
- -intercept: set : . -intercept (root): set : . Why this step? An axis crossing is just "the other coordinate is zero" — solve for the survivor.
Look at figure s01: the red line clearly descends, yet crosses the -axis high up at . That high crossing is the exact bait of the sign trap.

Verify: , and , so output dropped as rose — decreasing confirmed. Root check: ✓.
Example 2 — Quadratic: min, max, and the degenerate · Cell C2
Forecast: which of (a),(b) is a bottom of a valley and which is a top of a hill?
We call the vertex , where is its -coordinate and is its -coordinate — the height of the tip. For any quadratic , and .
- Vertex -coordinate uses . For (a): ; then . Vertex . Why this step? Completing the square shows the parabola is symmetric about ; the vertex sits on that mirror line.
- Sign of decides min vs max. For (a) : opens up ⇒ is a minimum. Why this step? Positive means the term eventually dominates upward, so the tip is the lowest point.
- For (b): so ; then . Vertex , and ⇒ maximum. Why this step? Same rule, opposite sign — always check 's sign, never assume "vertex = minimum".
- Degenerate case . Then : it is no longer a parabola, just a line with no vertex. Why this step? The definition requires ; killing it collapses the family to linear.
Figure s02 stacks the up-parabola (min) and down-parabola (max) so the sign-of- effect is unmissable.

Verify: (a) and — symmetric roots about ✓. (b) is above and above , so is indeed highest ✓.
Example 3 — Quadratic with complex roots · Cell C3
Forecast: how many times will this parabola cross the horizontal axis — 2, 1, or 0?
- Compute the discriminant . Here . Why this step? is the quantity under the square root in the quadratic formula; its sign counts real crossings.
- Interpret . Negative ⇒ the square root is imaginary ⇒ no real roots. The parabola never touches the axis. Why this step? A real root needs a real ; a negative forbids it.
- Where does it sit? (opens up) and vertex , so the whole curve floats above the axis. Why this step? An upward parabola whose lowest point is positive can never reach zero.
Verify: the complex roots are . Plug : ✓.
Example 4 — Polynomial end behaviour, all four combos · Cell C4
Forecast: which two have "both ends up together"?
- Only the leading term matters far out. For huge , lower powers are dust; keep . Why this step? because outgrows everything below it.
- Parity of decides "same or opposite ends". Even : both sides ⇒ ends agree. Odd : sign flips with ⇒ ends disagree.
- Sign of flips the whole picture. Multiply the above by the leading sign.
| case | left () | right () |
|---|---|---|
| (i) | ||
| (ii) | ||
| (iii) | ||
| (iv) |
Figure s03 draws all four skeletons so the "parity chooses shape, sign flips it" rule is one glance.

This uses M03.01 Limits language ("what does the output approach"). Verify: at : , , , — matches the right column ✓.
Example 5 — Repeated root, dodging the counting trap · Cell C5
Forecast: is the degree or ? Are there roots or fewer?
- Degree = sum of exponents, not number of factors. contributes , each linear factor : total . Why this step? Degree is the highest power after expanding; multiplicities add up.
- List roots with multiplicity. (from , double), , . Why this step? Each factor gives root ; a squared factor still gives one location, just touched twice.
- Count distinct roots. Locations ⇒ 3 distinct roots, but degree . Why this step? At a double root the curve bounces off the axis instead of crossing — one point, double contact.
Verify: expand — leading power ✓. And , while ✓.
Example 6 — Rational: vertical asymptote and a hole · Cell C6
Forecast: both bad points and kill the denominator — will both be asymptotes?
- Factor top and bottom. . Why this step? Factoring exposes which zero of the denominator is cancelled by the top.
- Cancel the shared factor . Simplified form , valid for . Why this step? A factor that appears top and bottom is a removable problem — a hole, not a wall.
- Classify each forbidden input. At : cancelled ⇒ hole; its height is , so the hole sits at . At : survives in the denominator ⇒ vertical asymptote . Why this step? A denominator zero that cannot cancel forces division by zero — a genuine blow-up.
This ties to M03.02 Continuity: a hole is a single point of discontinuity that could be "patched", an asymptote cannot.
Verify: near , (blows up) ✓. And , matching the hole height ✓.
Example 7 — Rational: all three asymptote cases by degree · Cell C7
Forecast: which one flattens to the -axis itself, which to a raised horizontal line, and which drifts along a slant?
- Compare degrees: top vs bottom. (a) top , bottom (top lower). (b) both degree (equal). (c) top , bottom (top one higher). Why this step? The degree gap decides the type of end behaviour.
- Top degree lower ⇒ horizontal asymptote . (a) far out , so the graph hugs the -axis, . Why this step? When the bottom grows faster than the top, the ratio is squeezed to zero.
- Equal degrees ⇒ horizontal asymptote = ratio of leading coefficients. (b) , so . Why this step? Far out, ; the and become negligible.
- Top degree exactly one higher ⇒ oblique (slanted) asymptote via division. (c) Divide: . The remainder , leaving the line . Why this step? Polynomial long division peels off the straight-line trend; the leftover fraction vanishes far away.
Verify: (a) ✓. (b) ✓. (c) , confirming line ✓.
Example 8 — Radical: domain and the boundary · Cell C8
Forecast: below which does the graph simply not exist?
- A real square root needs a non-negative inside. Require . Why this step? has no real value; the domain is exactly where the inside behaves.
- Solve the inequality. . Domain . Why this step? Isolating gives the exact cutoff where reality begins.
- Check the boundary (degenerate edge). : allowed, the graph starts here; for nothing is plotted. Why this step? The boundary is included because allows equality — the edge point is real.
See M02.03 Domain and Range for the general "inside " rule of radicals.
Verify: ✓; ✓; would be — correctly excluded ✓.
Example 9 — Piecewise: continuity at the seam · Cell C9
Forecast: do the two pieces meet at , or is there a jump?
- Value approaching from the left. As , use : limit . Why this step? Continuity needs the left-hand approach to head somewhere definite.
- Value approaching from the right (and the actual value). As and at , use : . Why this step? Continuity also needs the right-hand approach and the actual output at to be pinned down, so we evaluate the piece that owns the point.
- Compare all three. Left limit , right limit , value : all equal ⇒ continuous, no jump. Why this step? Continuity at a point = "limit exists and equals the value" (see M03.02 Continuity).
Conclusion: since the left limit, right limit, and actual value all equal , the two pieces meet perfectly and is continuous at .
Figure s04 shows the two segments kissing exactly at — the red dot is the seam.

Verify: left piece at : ; right piece at : — identical, so glued smoothly with no jump ✓.
Example 10 — Word problem / exam twist: projectile · Cell C10
Forecast: will the ground-hit time be before or after the peak?
- Max height is the vertex; use . : . Why this step? ⇒ opens down ⇒ vertex is the highest point.
- Plug back for the peak height. m. Why this step? The -coordinate of the vertex is the actual maximum value.
- Ground hit: solve . Quadratic formula: . Take the positive root: s. Why this step? Time can't be negative; only one root is physically meaningful — the exam twist.
Verify: peak m and it comes before the ground hit at s (peak is earlier, as physics demands) ✓. Check ground: ✓.
Recall Self-test
Slope and range of the constant ? ::: Slope ; range ; no -intercept since . Direction of ? ::: Decreasing — slope ; the is only the starting height. Why does never cross the axis? ::: Discriminant , so no real roots (parabola floats above the axis). In what is ? ::: A hole at — the cancels, so it's removable, not an asymptote. Horizontal-, horizontal-const, or oblique for , , ? ::: (top lower), (equal), oblique (top one higher). Domain of ? ::: — inside must be .