Sub topic 17
Exam strategy: choosing between algebra and graphs
This chapter assumes you can already solve linear and quadratic equations, sketch the standard graphs (linear, quadratic, modulus, floor, exponential and logarithmic), and handle composition and inverses. The goal here is to decide, within a few seconds, which tool to use on a CAT function question.
Why the choice matters
Most function questions in CAT Quant can be solved two ways. Algebra gives exact values but can be long. A graph gives structure quickly: how many solutions, where the extremum sits, which region is feasible. Picking the wrong tool costs minutes. Algebra on a question about counting solutions of |x - 2| + |x - 5| = k is slow. A graph on a question asking for the exact value of f(g(3)) is pointless.
A useful rule is to ask what the question wants:
- A number produced by substitution or simplification: use algebra.
- A count, a range of a parameter, or a max/min over a region: use a graph.
- A property that holds for all x: use substitution or symmetry.
A decision table
| The question asks for | Prefer | Reason |
|---|---|---|
| Value of `f(g(a))` or `f(f(x))` | Algebra | Direct substitution, one step at a time |
| Inverse of a given function | Algebra | Swap and solve, then check |
| Number of real solutions of `f(x) = k` or `f(x) = g(x)` | Graph | Count intersections |
| Range of `k` for which an equation has 0, 1, 2 solutions | Graph | Slide a horizontal line |
| Min or max of a quadratic | Algebra (vertex formula) | `x = -b/(2a)` is immediate |
| Min or max of a sum of modulus terms | Graph or breakpoints | Extremum sits at a breakpoint |
| Floor or ceiling equations | Graph plus integer bounds | Step shape limits the cases |
| `f(x) + f(1/x) = ...` or `f(x+y) = ...` | Algebra | Substitute special values |
| Even or odd, symmetry claims | Algebra test, graph for confirmation | Compare `f(-x)` with `f(x)` |
Method 1: Algebra first
Choose algebra when the expression is short and the question asks for an exact result.
- Write the function in a standard form (vertex form, factored form, or piecewise form).
- Substitute carefully, with brackets around each substituted expression.
- Check the answer against the domain.
The classic error is treating composition as commutative. The code below shows why order matters.
def f(x):
return 2 * x + 3
def g(x):
return x ** 2
print(f(g(1))) # f(g(x)) = 2x^2 + 3
print(g(f(1))) # g(f(x)) = (2x + 3)^2This prints 5 and 25. Different outputs from the same inputs mean f(g(x)) and g(f(x)) are different functions. When a question gives you f and g and asks for f(g(x)), always substitute the inner function into the outer one's variable.
For a quadratic, algebra is almost always faster than sketching. With a > 0 the minimum is at x = -b/(2a).
def f(x):
return x ** 2 - 6 * x + 5
a, b = 1, -6
vertex_x = -b / (2 * a)
print(vertex_x, f(vertex_x))The vertex is at x = 3 and the minimum value is -4. No graph is needed.
Method 2: Graph first
Choose a graph when the question is about how many, how large, or for which values of a parameter.
A reliable routine for "how many solutions does f(x) = g(x) have":
- Sketch each side as a separate graph on the same axes.
- Mark key points: intercepts, vertex, breakpoints, asymptotes.
- Count crossings, including those at the extremes of the domain.
- If a parameter is present, move the line or curve and note where the count changes.
Take |x - 2| + |x - 5|. The graph is V-shaped on the outside, flat between 2 and 5 at height 3. So the minimum is 3, reached for every x between 2 and 5. The sampling check below confirms this.
def f(x):
return abs(x - 2) + abs(x - 5)
values = [f(i / 2) for i in range(0, 15)]
print(min(values))The output is 3.0. From the graph you can answer more than the minimum. The equation f(x) = k has no solution for k < 3, infinitely many for k = 3, and exactly two for k > 3. Algebra would need three case splits to reach the same conclusion.
Method 3: Combine both
Many questions need a quick sketch to set up cases, then algebra to finish.
Suppose a question asks for the minimum of |x - 1| + |x - 4| + |x - 6|. A sketch tells you the slope changes at 1, 4 and 6. The slope is negative left of 4 and positive right of 4, so the minimum is at the middle breakpoint, x = 4. Algebra then gives the value: 3 + 0 + 2 = 5. The rule behind this is that a sum of absolute values with an odd number of equal-weight terms is minimized at the median breakpoint.
For a floor function, the step shape tells you the answer is bounded, and algebra pins down the cases. The key fact is that the greatest-integer function rounds toward negative infinity.
import math
print(math.floor(2.7), math.floor(-2.3), math.ceil(-2.3))This prints 2, -3 and -2. For negative inputs, floor(-2.3) is -3, not -2. Equations such as floor(x) = 2x - 3 are solved by writing x = n + t with n an integer and 0 <= t < 1, then bounding n.
Common errors and how to avoid them
- Forgetting the domain. A graph of
log(x)exists only forx > 0. A solution found algebraically may fall outside the domain, so check every root. - Drawing too roughly. A sketch that misses an intercept or breakpoint gives the wrong count. Label the vertex, the intercepts and the breakpoints.
- Counting tangency as two solutions. A line touching a parabola at its vertex gives one solution (a repeated root), not two.
- Missing endpoints on piecewise graphs. Open and closed circles decide whether a solution exists at a breakpoint.
- Assuming a graph is exact. Use a graph to decide the count and the location, then use algebra for the value when the options are close together.
- Mixing up
f(x + a)andf(x) + a. The first shifts the graph left bya, the second shifts it up bya.
Time management on exam day
CAT gives roughly two to three minutes per Quant question. A practical split for function questions:
- Spend up to 20 seconds classifying the question using the table above.
- Spend up to 90 seconds on the chosen method.
- If you are stuck after that, test the answer options with one or two simple inputs such as
x = 0,x = 1andx = -1. - Skip and return if neither method has produced a path.
Option testing deserves a note. For functional equations such as f(x + y) = f(x) + f(y), try a candidate such as f(x) = kx and see which option fits. For a question about the number of solutions, test the boundary values of k in each option.
A short worked example
Question: for how many real values of x does |x - 3| = x^2 - 4x + 3?
Classify first. The question asks for a count, so a graph is a good start. Left side: a V with vertex (3, 0). Right side: a parabola with roots at 1 and 3, vertex (2, -1). The parabola is negative between 1 and 3, where the V is positive, so there are no intersections there. For the other regions, algebra is quicker:
- For
x >= 3:x - 3 = (x - 1)(x - 3), sox = 3orx - 1 = 1, givingx = 3orx = 2. Onlyx = 3is valid. - For
x < 3:3 - x = (x - 1)(x - 3), so(x - 3)(x - 1 + 1) = 0, givingx = 3orx = 0. Onlyx = 0is valid.
There are 2 solutions, x = 0 and x = 3. The graph told us where to look, and the algebra finished the work.
Exercise
The equation |x - 1| = k has exactly two real solutions. For which values of k does this hold, and which method (algebra or graph) is the fastest way to see it?
Show answer
It holds for every k > 0. A graph is fastest: the V-shaped graph of y = |x - 1| has its vertex at (1, 0), and a horizontal line y = k cuts it at two points exactly when k is above the vertex height 0. At k = 0 the line touches only the vertex (one solution), and for k < 0 it misses the graph.
Exercise
Classify each task as algebra, graph, or both: (a) find f(g(2)) for f(x) = x + 5 and g(x) = 3x; (b) find the number of real roots of x^2 = 2^x; (c) find the minimum of |x + 1| + |x - 3|.
Show answer
(a) Algebra: g(2) = 6 and f(6) = 11. (b) Graph: sketch y = x^2 and y = 2^x and count the intersections, which gives three (two at positive x, namely x = 2 and x = 4, and one at a negative x). (c) Both: the graph is flat between -1 and 3, and the minimum value is |3 - (-1)| = 4.