You type tan(x) into a plotter, expect the familiar repeating curve, and get something else. Between each pair of branches there is a tall, thin line that looks like part of the function. It crosses the whole screen, it connects the end of one branch to the start of the next, and a quick glance says the function is continuous. It is not. That line is not part of the graph of tan(x) at all.
The same thing happens with 1/x, with rational functions like (x + 1)/(x - 2), and with anything that blows up at a certain input. Students lose points over it, and engineers sometimes misread it too. The good news is that the cause is mechanical and easy to understand, and once you see it you can spot every instance of it at a glance.
What the Plotter Is Actually Doing
A plotter does not draw a curve in the way a person does with a pencil. It picks a set of x values across the visible window, computes the function at each one, and then joins the resulting points with short straight segments. If there are enough points, the segments are so small that the eye sees a smooth curve.
That approach works beautifully for friendly functions like x squared or sine. It has a blind spot, though. The plotter has no idea whether two neighboring points belong to the same continuous piece of the function. It simply connects them. Whenever the function jumps from a huge positive value to a huge negative one between two neighboring samples, the connecting segment is nearly vertical and stretches from the top of the window to the bottom.
Photo by monicore on Pexels
Why tan(x) Is the Classic Example
The tangent function is the sine divided by the cosine. Wherever the cosine is zero, the division has no answer, and the function heads off toward positive or negative infinity on either side. The Wikipedia article on trigonometric functions lays out where those points fall: at odd multiples of a quarter turn, which is 90 degrees, 270 degrees, and so on, or pi over two in radians.
Just to the left of one of those points, tan(x) is a very large positive number. Just to the right, it is a very large negative number. If one sample lands a hair to the left and the next lands a hair to the right, the plotter sees a top point and a bottom point and draws a line between them. The line is an artifact of connecting samples, not a feature of the function.
The same logic explains 1/x at zero. On the left it plunges toward negative infinity, on the right it comes down from positive infinity, and the plotter bridges the gap with a vertical stroke that has no business being there.
Asymptotes, Holes and Jumps Are Different Things
A vertical line on a plot can hide three quite different situations, and it helps to know which one you are looking at. The Wikipedia page on asymptotes describes the first, and the classification of discontinuities covers the other two.
A vertical asymptote. The function grows without bound as x approaches a certain value. The denominator goes to zero while the numerator does not. Tan(x) and 1/x both do this.
A removable discontinuity, or hole. The function is undefined at one point, but the values on both sides line up perfectly. A good example is (x squared minus 1) divided by (x minus 1), which simplifies to x plus 1 everywhere except at x equals 1. A plotter usually draws a clean line and silently skips the missing point, so you may see nothing wrong at all.
A jump discontinuity. The function lands on one value from the left and a different value from the right, like a floor function or a piecewise rule with two different branches. A plotter can draw a near-vertical connector here too, even though no infinity is involved.
The vertical connector looks the same in all of these cases, which is exactly why you cannot trust it as evidence of anything.
How to Predict Where the Trouble Will Be
You do not have to wait for the graph to surprise you. For a rational function, set the denominator equal to zero and solve. Those x values are the candidates for vertical asymptotes or holes. If the same factor cancels out of the numerator, it is a hole. If it does not cancel, it is an asymptote.
For trigonometric functions, remember which ones have a division hiding inside them. Tangent, secant, cotangent and cosecant are all ratios, so each has a repeating set of values where it is undefined. For logarithms, the trouble spot is any input at or below zero, where the function has no real value at all.
Doing this by hand for thirty seconds before plotting turns the picture from a surprise into a confirmation. You know where to expect the breaks, so any line crossing them is obviously a connector and not data. The free Khan Academy math courses include a full unit on rational functions and discontinuities if you want practice finding them on paper.
Window Settings Can Make Everything Look Worse
The visible window changes how misleading a plot appears. If the y range is very tall, a function with an asymptote will stretch across most of it, and the connector will dominate the picture. If the range is narrow, the branches get clipped at the top and bottom edges, and the connector shrinks to a short stub or disappears.
There is also the matter of aspect ratio. If the x range spans 20 units across a wide screen but the y range spans 4 units up a short one, every slope looks different from its true value. A line with a slope of 1 may appear nearly flat or nearly vertical. When a curve looks strangely steep or flat, check the window numbers before you doubt the function.
Photo by Pixabay on Pexels
Why More Points Does Not Fully Fix It
A natural reaction is to ask the tool for a finer plot. More samples do help in one respect: the curve near the asymptote becomes more accurate, with branches that climb higher before they stop. But the connector can still appear, because the plotter still has to bridge the last sample on one side and the first sample on the other.
In fact, floating point arithmetic adds a second wrinkle. Computers store numbers with limited precision, and the Wikipedia article on floating-point arithmetic explains why values near a singularity can come out enormous or even undefined. A sample that lands exactly on x equals 0 for 1/x may produce an error and get skipped, which can make the connector vanish in one window and reappear in another with a tiny change to the range. That is not the function misbehaving, it is a sampling coincidence.
Three Practical Ways to Read the Plot Honestly
First, ignore any line that is perfectly vertical and sits exactly where you expect an asymptote. Treat it as a hint about where the asymptote is, not as part of the curve. Most real curves are never exactly vertical, so a truly straight upright stroke is almost always a connector.
Second, narrow the y range until the branches are clearly separate. Zooming in on the region of interest removes the dramatic stroke and leaves the part of the function you actually care about. Plotting two or more related functions together, as the interactive graphing calculator on EvvyTools does with up to four at once, makes this easier because you can compare a function against its simplified version and see immediately whether a hole or an asymptote is involved.
Third, test the suspicious point numerically. Plug in a value slightly left of the break and one slightly right and check the signs and sizes. If the numbers run off to opposite infinities, you have an asymptote. If they land on the same value, you have a hole. If they settle on two different finite values, you have a jump.
A Worked Example With a Hole
Take the function (x squared minus 4) divided by (x minus 2). Factor the top and it becomes (x minus 2) times (x plus 2), all divided by (x minus 2). The shared factor cancels, leaving x plus 2 everywhere except at x equals 2.
On a plot, you will see a clean diagonal line with slope 1. There is no vertical stroke, because the values on both sides of x equals 2 are close to 4 and nothing explodes. The only trace of the problem is a single missing point at (2, 4), which most plotters do not mark at all. If you did not do the algebra, you would never know the function is undefined there.
Compare that with (x plus 1) divided by (x minus 2). The top does not contain a factor of (x minus 2), so nothing cancels. Near x equals 2, the values shoot toward large positive numbers on one side and large negative numbers on the other. That is the picture with the tall connector, and the algebra told you in advance that it was coming.
Radians and Degrees Can Fake a Problem
One more source of confusion is the angle mode. If you plot tan(x) and the asymptotes seem to be in the wrong places, check whether the tool is in radians or degrees. In radians, the first break after zero is at about 1.571. In degrees, it is at 90. Both are correct for their own units, but mixing up the unit makes the whole graph look compressed or stretched horizontally.
The same applies to any trig function. A sine wave that seems to repeat every 360 units is in degrees, and one that repeats every 6.28 units is in radians. If you are working from a textbook answer, match the mode to the textbook before you compare.
What to Remember
A graph of a function with breaks is only a picture built from sampled points joined by straight lines. The joins are the tool's guess, not the mathematics. When you see a tall vertical stroke at a place where the denominator is zero, you are looking at a connector, not a curve.
Find the trouble spots algebraically first, narrow the window to show the pieces separately, and use the plot to confirm what the algebra already told you. Do that, and a graphing tool becomes a reliable second opinion instead of a source of strange surprises. If you want to experiment, the tools directory has a free graphing calculator to try these examples, and the blog hub has more explainers like this one. You can also start from the EvvyTools homepage to see everything in one place.
Photo by Towfiqu barbhuiya on Pexels
Quick Checklist for Next Time
When a graph looks wrong, run through these questions in order. Where is the denominator zero, and does that factor cancel? Is the angle mode set to match the problem? Is the y range wide enough to create a dramatic connector, and would a narrower range show the branches cleanly? Is the tall line perfectly vertical and sitting exactly on a predicted break? If the answer to the last one is yes, you can safely ignore it.
It takes a minute to run through, and it protects you from the two worst mistakes: believing a line that is not there, and doubting a function that is perfectly fine. The Paul's Online Math Notes site is a handy free reference if you want worked examples of limits and asymptotes to go with it.