SUNY Geneseo Department of Mathematics

Plotting with Mathematica

Friday, September 2

Math 223 01
Fall 2022
Prof. Doug Baldwin

Return to Course Outline

Previous Lecture

Anything You Want to Talk About?

(No.)

Points Equidistant from Two Others

Finish the question from last time about proving that the set of points equidistant from (a,0,0) and (b,0,0) is the plane parallel to the yz-plane and having x = (a+b)/2.

Last time, we started by using the distance formula to find the distances from general point (x,y,z) to (a,0,0) and (b,0,0), and set those distances equal. Then we did some algebra, crucially including a step where we took square roots of both sides to remove some squaring, and eventually found that a = b:

Point X, Y, Z equidistant from points A, 0, 0 and B, 0, 0 could mean A equals B

The a = b result basically says that if you make both points the same, then all points anywhere in space are equidistant from them/it. This is true, but not the result we wanted to check.

Remember that step where we took square roots to eliminate squaring? We didn’t actually do that completely: if (x-a)2 = (x-b)2, it could be because x-a = x-b, which is what we pursued, but it could also be because x-a = -(x-b). Let’s see where that takes us…

X minus A squared equals X minus B squared could mean X minus A equals negative X minus B, so X equals A plus B over 2

Now we ended up with the equation for the plane parallel to the yz-plane and having x = (a+b)/2. So another way to get points equidistant from (a,0,0) and (b,0,0), if a and b aren’t necessarily equal, is to have the points lie in that plane, like we conjectured.

This example turns out to be an excellent one for how mathematical discovery happens in real life. We started with a conjecture that seemed plausible but wasn’t 100% certain, thought about it informally for a bit to see if it really stayed plausible, and finally got into more formal mathematical exploration. But even the formal mathematical part was exploratory, in that it consisted of trying some things (notably the distance formula) to see where they’d lead. At first, we found the a = b result, which was a lucky and interesting discovery (i.e., not something “bad”) but not what we hoped for. That led to finding a different way to go in our explorations (backing up and trying something different is really common in math), which eventually did lead to what we wanted.

Mathematica

Mathematica is a powerful computer algebra system. You can write computer programs in it like you would with, e.g., MatLab, R, Python, etc., although that’s not my goal for you in this course. Rather, we’ll use it interactively, as essentially an incredibly powerful graphing calculator.

Some general guidelines for interactively using Mathematica:

Right now, I want to look at some of its features for plotting surfaces in 3 dimensions.

In particular, surfaces that are defined “implicitly” as solutions to equations. For example, x2 + y2 + z2 = r2 implicitly defines a sphere of radius r at the origin.

The Mathematica function that does this is ContourPlot3D.

You can download the notebook in which we explored all of the above and more from Canvas. Once downloaded, you can open it in your own Mathematica, experiment further with anything in it, etc.

Next

(“Next” is Tuesday, because Monday is a holiday. Happy Labor Day!)

Many of the surfaces you produced by changing the equation for a sphere (specifically all the ones that didn’t involve changing the exponents) are examples of so-called “quadric surfaces.”

The quadric surfaces are an interesting enough family of surfaces that I want to spend some time on them on Tuesday.

Please read section 1.6 of the textbook to get ready for this.

Next Lecture