# How do we know that a function's graph is an accurate representation of its solution set?

Recently I started thinking about how graphs relate to their functions. I took for granted that given a function I could plot a few points and get the general idea of what its graph looks like. My question is how do we know that a given function's graph actually is what we think it is?

I know for things like lines, circles and conics we can prove that all the points on the graph satisfy the corresponding equation, and all the solutions to the equation fall on the corresponding graph, thereby proving that the graph is the graph of the equation/function. But what about stuff like rational functions, or trigonometric functions? How can we know that every point on more general graphs really satisfy their functions? I'm assuming we have to use things like continuity and other analytic principles, but I'm still a little confused. Thanks for the help.

• For linear/affine maps and differential maps it is kind of straightforward, but it is a good question. – gary Jul 28 '17 at 3:00

On one hand, the graph of a function is by definition the set of $f$'s solutions: if $f:\mathbb{R}^m \rightarrow \mathbb{R}$ is a function, then the graph of $f$ is the set of solutions in the sense that it is the set

$$\Gamma(f) \equiv \{ \langle x, y\rangle \in \mathbb{R}^{m}\times \mathbb{R}^1\;:\; f(x) = y\}$$

On the other hand, you might be asking about a practical problem: suppose you've been given a graph, or you've been sketching a graph by plotting a few of its points. You believe that you've got the general gist of the graph—but how can you be sure? This is a deep question, with some good answers.

The first part of the answer is that we bring a lot of implicit assumptions when reading graphs. These assumptions are about the kind of functions that make sense, and that we realistically expect to see in certain settings.

For practical purposes, one common assumption is that functions are continuous and even differentiable/smooth to varying degrees. Other assumptions include that any function we plot will be made out of familiar, simple constituents such as polynomials and trigonometric functions.

In a technical sense, these assumptions may not hold: a mathematician could easily define a function that looks like $f(x) =x^2$ for all values of $x$ except for a small region where the function oscillates wildly. If you plotted that function, even over a wide region, you might be "tricked" into believing that it was a simple quadratic. An adversary could introduce arbitrarily many deviations which you would almost surely overlook.

But in practice, we are often plotting something like the result of a real physical process, or an idealized mathematical model made of simple functions. In these cases, we have good reason to suppose that the function conforms to our expectations and is not pathological in any unexpected way. Furthermore, from another point of view, we often have a purpose in mind, and within the tolerances of our application, it may be good enough to say that the function is a parabola, even if it isn't quite. So for example, if you know your function is smooth and you've plotted a fair number of points, you can just join up those points with line segments—your graph may not be exactly right, but the error might be within tolerance for your application.

The second part of the answer is that in addition to bringing in assumptions about the kind of functions we expect to see in our current application, we also often know a lot about the plotted function itself. For example, we might have a closed-form representation of it; if the function is built of elementary functions, we can scrutinize it to determine symbolically whether it has any peculiarities and where they might be. This is part of the usefulness of algebraic geometry. Or we might know how we got the function, which gives us reason to be sure that it is reasonably well-behaved.

That's how you can know that you've gotten the graph correct even when you've only plotted a few of the potentially infinitely many points on it.

• If we know that $f'$ is continuous then $f'$ is bounded on any bounded closed interval so the slope of $f$ cannot be arbitrarily steep on that interval. Knowledge about $f''$ can also be effective. – DanielWainfleet Jul 28 '17 at 7:02

Essentially the graph represents the function because it's defined that way. We choose to identify the function $f:X \rightarrow Y$ with the points $(x,f(x)) \in X \times Y$. With known functions like rational and trig functions you simply plot as many inputs as you require to see what it looks like.

Also these functions, like many functions we are familiar with, are continuous and smooth (differentiable) almost everywhere which gives us a lot more information about their structure. In general functions are a lot more arbitrary and thus, less intuitive.

An example is The Weierstrass function which continuous but not smooth and the graph will always be a little bit fuzzy no matter how close you look at it. Despite being somewhat pathological it's actually a typical for continuous functions.

You may also want to look at Thomae's function and Dirichlet function which if you graph wouldn't even look like functions because it wouldn't be obvious they pass the vertical line test. No matter how closely you look it would never be any easier to tell either. This shows that graphs can be less useful for certain types of functions than others.