Calculus

How to Sketch a Curve Using Calculus

Follow an ordered checklist of domain, asymptotes, slope and concavity to draw an accurate graph by hand.

Key takeaways

  • Start with the domain, intercepts and symmetry before differentiating anything.
  • Limits at infinity and near excluded points reveal asymptotes and the overall frame of the graph.
  • The sign of f′ shows where the curve rises or falls; the sign of f″ shows how it bends.
  • Plot only key points: intercepts, extrema and inflection points, plus one or two helpers.
  • Every part of the final sketch should agree with all your sign charts, and any conflict signals an error.

To sketch a curve with calculus, you collect a handful of facts in a sensible order: where the function exists, where it crosses the axes, what happens far away and near any breaks, where it rises and falls, and which way it bends. Then you plot the few important points and join them in a way that agrees with every fact.

A graphing tool can draw the picture instantly. Sketching by hand teaches you why the picture looks that way, and it helps you notice when a computer's window has hidden something important.

The checklist

  1. Domain. Which x values are allowed? Watch for zero denominators, even roots of negative numbers and logarithms of nonpositive numbers.
  2. Intercepts. Evaluate f(0) and solve f(x) = 0.
  3. Symmetry. If f(−x) = f(x), the graph mirrors across the vertical axis. If f(−x) = −f(x), it is symmetric about the origin. Check for periodicity.
  4. Asymptotes and end behavior. Take limits at infinity and at the edges of the domain.
  5. First derivative. Find critical points and intervals of increase and decrease.
  6. Second derivative. Find intervals of concavity and inflection points.
  7. Draw. Place the frame, then the points, then the curve.
Shape of the curve from the signs of f′ and f″
f′ > 0, f″ > 0 Rising and getting steeper f′ > 0, f″ < 0 Rising but leveling off f′ < 0, f″ > 0 Falling but leveling off f′ < 0, f″ < 0 Falling and getting steeper f′ > 0, f″ > 0 Rising and getting steeper f′ > 0, f″ < 0 Rising but leveling off f′ < 0, f″ > 0 Falling but leveling off f′ < 0, f″ < 0 Falling and getting steeper

A rational function from start to finish

Sketch f(x) = x²/(x² − 4).

Domain. All real x except 2 and −2.

Intercepts. The only one is the origin.

Symmetry. Replacing x with −x changes nothing, so the function is even. You need to analyze only x ≥ 0 and reflect.

Asymptotes. As x grows large in either direction, f(x) approaches 1, giving the horizontal asymptote y = 1. Near x = 2 the numerator is close to 4 and the denominator close to 0. Just to the right the denominator is positive, so f heads to positive infinity. Just to the left it is negative, so f heads to negative infinity. By symmetry, the reverse order occurs at x = −2.

Techniques for these limits are described in asymptotes and long-run behavior.

Slope and bending for the same function

By the quotient rule:

f′(x) = [2x (x² − 4) − x² · 2x] / (x² − 4)²
      = −8x / (x² − 4)²

The denominator is positive on the domain, so f′ has the sign of −x. The function increases for x < 0 and decreases for x > 0, skipping the excluded points. The only critical point is x = 0, a local maximum with value 0.

Differentiating once more and simplifying gives:

f″(x) = (24x² + 32) / (x² − 4)³

The numerator is always positive. The denominator is positive when |x| > 2 and negative when |x| < 2. So the outer branches are concave up and the middle branch is concave down. Concavity changes only across the vertical asymptotes, where the function does not exist, so there is no inflection point.

Assembling the picture

Draw dashed lines at x = 2, x = −2 and y = 1. Mark the origin as the top of the middle branch. Add the helper points f(1) = −1/3 and f(3) = 9/5.

The middle branch is an upside-down arch that peaks at the origin and plunges toward negative infinity at both walls. The right branch comes down from positive infinity beside x = 2 and settles toward y = 1 from above, cupped upward. The left branch is its mirror image.

Check consistency. On the right branch, the sketch must be falling (f′ < 0) and bending upward (f″ > 0). It must approach y = 1 from above, which agrees with the formula: f(x) − 1 = 4/(x² − 4), positive for |x| > 2. That subtraction is a neat way to learn which side of an asymptote a curve lies on.

A second example with an inflection point

Now sketch g(x) = x e^(−x). It is defined everywhere and crosses the axes only at the origin. It has neither even nor odd symmetry.

As x grows large, the exponential decays far faster than x grows, so g approaches 0. As x heads toward negative infinity, x is large and negative while e^(−x) is huge, so g plunges to negative infinity.

g′(x) = (1 − x) e^(−x)        zero at x = 1
g″(x) = (x − 2) e^(−x)        zero at x = 2
Interval g′ g″ Shape
x < 1 positive negative rising, leveling off
1 < x < 2 negative negative falling, getting steeper
x > 2 negative positive falling, leveling off

There is a maximum at (1, 1/e), about (1, 0.368), and an inflection point at (2, 2/e²), about (2, 0.271). The slope at the origin is g′(0) = 1, so the curve passes through along the line y = x. After the peak it slides down toward the axis without touching it again.

A third example with a restricted domain

Sketch h(x) = ln x / x. The logarithm requires x > 0, so nothing is drawn on or left of the vertical axis. The only intercept is (1, 0), because ln 1 = 0.

Near zero, ln x is hugely negative and dividing by a tiny positive number makes it more so; the vertical axis is an asymptote with the curve diving downward. Far to the right, x outgrows ln x, so h approaches 0 from above.

h′(x) = (1 − ln x)/x²          zero at x = e
h″(x) = (2 ln x − 3)/x³        zero at x = e^(3/2)

The derivative changes from positive to negative at x = e, giving a maximum at (e, 1/e), about (2.72, 0.368). The second derivative changes from negative to positive at e^(3/2), giving an inflection point at about (4.48, 0.335).

The finished curve climbs steeply from the depths beside the vertical axis, crosses at 1, rounds over a low hill at e, then drifts downward, changing its bend shortly afterward and flattening toward the horizontal axis. Notice how little height changes between the peak and the inflection point. On a hand sketch you may exaggerate the vertical scale to make the shape readable, as long as you label the axes.

Using symmetry and a slant line

Consider k(x) = x + 1/x, defined for x ≠ 0. It is odd, so once the right half is drawn, you rotate it half a turn about the origin to get the left half.

For x > 0, the function heads to positive infinity both near zero and far to the right. Far out, the term 1/x fades and the curve approaches the line y = x from above. The derivative 1 − 1/x² is negative before 1 and positive after, so there is a minimum at (1, 2). The second derivative 2/x³ is positive, so the whole right branch is cupped upward. There are no intercepts, since x + 1/x = 0 would require x² = −1.

Those few facts fix the picture: a single smooth valley resting between two straight guides, the vertical axis and the line y = x.

Special features worth looking for

Not every graph is as well behaved. Watch for these.

  • Vertical tangents and cusps. If f′ grows without bound while f stays finite, the curve stands upright there. Compare x^(1/3), which passes through, with x^(2/3), which comes to a point.
  • Slant asymptotes. When a rational function's numerator has degree one more than its denominator, polynomial division gives a line the curve approaches. For (x² + 1)/x = x + 1/x, that line is y = x.
  • Holes. A common factor that cancels leaves a missing point, not an asymptote. The function (x² − 1)/(x − 1) is the line x + 1 with the point (1, 2) removed.
  • Crossing an asymptote. A graph may cross a horizontal asymptote, sometimes many times, as e^(−x) sin x crosses y = 0.

The kinds of breaks are classified further in continuity and discontinuities.

Using technology wisely

After sketching, compare with a graphing calculator or software. Choose windows deliberately. A viewing range from −100 to 100 makes both examples above look nearly flat, while a very narrow range can hide the asymptotes entirely. A very steep section may be drawn as a false vertical line connecting two branches.

Your analysis tells you which window to use: include every critical point, inflection point and asymptote, with some room on each side. For deeper detail on the sign tests, see critical points and the derivative tests.

Reading the process backward

A good test of understanding is to start from a graph of f′ and sketch f. Where the graph of f′ lies above the axis, f rises. Where it crosses from above to below, f has a local maximum. Where f′ itself has a peak or valley, f has an inflection point, because that is where f″ changes sign.

For instance, if f′ is an upward-opening parabola crossing the axis at −1 and 3, then f rises, falls between those points, and rises again. It has a maximum at −1, a minimum at 3 and an inflection point at 1, the bottom of the parabola. The one thing you cannot recover is the height: shifting f up or down leaves f′ unchanged.

Common errors

  • Marking an inflection point wherever f″ = 0 without confirming a sign change.
  • Forgetting excluded points when building sign charts, even though signs can change across them.
  • Plugging critical x values into f′ to get heights.
  • Drawing a curve through a vertical asymptote.
  • Assuming a horizontal asymptote is the same on both sides; for g above, only the right end approaches zero.

If two facts seem to contradict each other, such as a function that increases from positive infinity, recheck the derivative before forcing the drawing.

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 39 articles in Calculus →

Latest news on this topic