Graphing a function feature by feature
To graph a function without plotting dozens of points, find its features first and join them with the shape you already know. The features are where it crosses each axis, whether it is symmetric, where it has a turning point, where it has a gap or an asymptote, and where it rises or falls. For a graph that is a shifted or stretched copy of a familiar one, name the parent graph and apply the changes in order.
For students and parents planning test prep or coursework: one hour with George Li, one to one by video, is $180, $200 or $160, by subject. You leave with a written plan within one working day.
Book your first session| Feature | How to find it | Cubic example | Rational example |
|---|---|---|---|
| Domain | Exclude values that divide by zero or put a negative under an even root | all real numbers | every number except 3 |
| y-intercept | Put x = 0 | (0, 0) | (0, 0) |
| x-intercepts | Set the output to 0 and solve | x = 0 and x = plus or minus 2 times the square root of 3, about 3.46 | x = 0 |
| Symmetry | Compare f(-x) with f(x) and with -f(x) | f(-x) = -f(x), so odd, symmetric about the origin | not symmetric |
| Asymptotes | Look for a zero denominator and compare degrees | none | vertical x = 3, horizontal y = 2 |
| Turning points | Set the first derivative to 0, or use the vertex formula for a parabola | maximum 16 at x = -2, minimum -16 at x = 2 | none |
| Concavity and inflection | Sign of the second derivative | inflection at (0, 0) | changes sides at the asymptote |
The cubic is x cubed minus 12x. The rational function is 2x over (x minus 3). Calculus columns apply only if your course has derivatives.
Our own worked cases, each computed by hand and checked by substituting back
Which parent graphs should you know by heart?
Know the straight line, the parabola, the absolute value V, the square root curve, the cube curve and the reciprocal curve with its two branches. Every graph in a typical course is one of these moved around. The general move is y = a times f(b times (x minus h)) plus k, and each letter does one job.
- h slides the graph sideways, and the sign flips: f(x minus 5) moves it 5 to the right.
- k slides it up when positive, so f(x) minus 2 moves it 2 down.
- a stretches it vertically, and a negative a flips it over the x-axis.
- b squeezes it sideways by a factor of 1 over b, and a negative b flips it over the y-axis.
If a graph of y = f(x) moves 5 right and 2 down, the new equation is y = f(x minus 5) minus 2. The common slip is to write f(x + 5) because the picture moved in the positive direction.
How do you graph a parabola from its equation?
Read the vertex, the direction it opens and the intercepts, then add one mirror point.
Worked example: Sketching g(x) = 2(x - 4)^2 - 18. The equation is already in vertex form. What are the features that fix the graph?
- The vertex is (4, -18), because h is 4 and k is -18.
- The 2 out front is above zero, so the curve bowls upward and its bottom point is the vertex. Every output is at least -18.
- For the y-intercept put x = 0: 2 times 16 is 32, and 32 minus 18 is 14. The point is (0, 14).
- For the x-intercepts set the output to 0: 2(x - 4)^2 = 18, so (x - 4)^2 = 9 and x - 4 is 3 or -3. The points are (1, 0) and (7, 0).
- The mirror line is x = 4. The point (0, 14) reflects to (8, 14), which gives a fifth point to plot.
Answer: lowest point (4, -18), crossing the x-axis at 1 and 7, crossing the y-axis at 14.
Method: vertex form reading, then substitution to check each point; the equation is an example, not an exam item.
When the equation comes in standard form, convert first. For h(x) = -2x^2 + 8x + 1, the vertex x-value is -8 over (2 times -2), which is 2, and h(2) = -8 + 16 + 1 = 9. The vertex form is -2(x - 2)^2 + 9, the graph opens downward, and the largest output is 9.
How do you graph a line from two facts?
A line needs only two facts, and any two of these will do: its slope, its y-intercept, one point, or a second point. Turn them into a table with two rows and join the dots.
| What you are given | Equation | Two table points |
|---|---|---|
| Points (-2, 1) and (4, 10) | slope is 9 over 6, which is 3 over 2, so y = 1.5x + 4 | (0, 4) and (2, 7) |
| Slope -2 through (1, 5) | y - 5 = -2(x - 1), so y = -2x + 7 | (0, 7) and (3.5, 0) |
| Through (4, 3), parallel to y = 5x - 1 | the same slope 5, so y = 5x - 17 | (0, -17) and (4, 3) |
Check the first row by substituting the second given point: 1.5 times 4 plus 4 is 10. For the third row, parallel lines share a slope and differ in their intercepts, and 5 times 4 minus 17 is 3, as required.
How do you sketch a curve with a derivative?
If your course has calculus, add the first and second derivatives to the checklist. For f(x) = x^3 - 12x, the first derivative is 3x^2 - 12, which is 0 at x = 2 and x = -2. The outputs there are f(-2) = -8 + 24 = 16 and f(2) = 8 - 24 = -16, so the graph climbs to 16, falls to -16 and climbs again. The second derivative is 6x, which changes sign at x = 0, so the bend flips at the origin. Together with the intercepts at 0 and about plus or minus 3.46, those points fix the sketch.
For a rational function such as r(x) = 2x over (x - 3), the zero denominator at x = 3 gives a vertical asymptote. Dividing the leading terms gives the horizontal asymptote y = 2. The derivative is -6 over (x - 3)^2, which is negative everywhere it exists, so each branch falls and there are no turning points. A table confirms the shape: r(2) = -4, r(4) = 8, r(6) = 4.
How do graphs model real prices and rates?
The intercept is the fixed starting amount and the slope is the rate per unit. A car costs $40 a day plus $0.25 a mile, so the cost is C = 40 + 0.25m, and 120 miles costs 40 + 30 = $70. A hall charges $900 for up to 50 guests and $12 for each guest after that, so the cost is flat at 900 until 50, then 900 + 12(g - 50). For 65 guests the cost is 900 + 12 times 15, which is $1,080. The graph of the second is flat and then slopes upward, so it is piecewise.
Practice exercises
Try these before you read the answers.
- Give the vertex and the y-intercept of y = -(x + 3)^2 + 7. Answer: vertex (-3, 7), and at x = 0 the output is -9 + 7 = -2.
- Write the equation of y = |x| moved 6 left and 4 up. Answer: y = |x + 6| + 4.
- Graph the line through (0, -3) with slope 2. Answer: y = 2x - 3, passing through (1, -1) and (1.5, 0).
- Find the x-intercepts of y = x^2 - 6x + 5. Answer: (x - 1)(x - 5) = 0, so x = 1 and x = 5.
- Is f(x) = x^4 - 3x^2 odd, even or neither? Answer: f(-x) = f(x), so even, symmetric about the y-axis.
- Find the asymptotes of y = 3 over (x + 2). Answer: vertical x = -2 and horizontal y = 0.
- A plant is 4 cm tall and grows 1.5 cm a week. Write the height after w weeks. Answer: h = 4 + 1.5w, so 10 cm after 4 weeks.
- Give the vertex of y = x^2 + 10x + 16 and the range. Answer: x = -5 and y = 25 - 50 + 16 = -9, so range y at least -9.
- For y = -x^3 + 3x, find the turning points. Answer: the derivative is -3x^2 + 3, which is 0 at x = 1 and x = -1; the outputs are 2 and -2.
- A line has intercepts (0, 6) and (3, 0). Write its equation. Answer: slope -2, so y = -2x + 6.
Our original math practice set has more items, and the math tutoring page describes sessions built around SAT® and ACT® exam prep. The study planner fits the practice into your weeks.
Common questions
What should I find first when I graph a function?
Find the intercepts and the domain, because they take the least work and rule out wrong sketches. Then check symmetry and the turning point, and add asymptotes if there is a fraction.
How do you shift a graph left or right?
Replace x with x minus h. A positive h moves the graph right, so f(x - 3) is 3 units to the right and f(x + 3) is 3 units to the left.
How many points do I need to graph a line?
Two, and a third as a check. Take the intercepts when they are easy to compute.
Do I need calculus to sketch a graph?
No for lines, parabolas and shifted parent graphs, where the vertex formula replaces the derivative. Calculus adds turning points and bends for cubics and higher powers.