Remember Me?   Straight Dope Message Board Remember Me?

#1 Guest Join Date: Sep 2003 Location: Lost Jerusalem Posts: 4,167

3-D Cartesian graphing

Is there a method for graphing three dimensions on a Cartesian plane? With x being the horizontal and y being the vertical, I would only assume that z is the third dimension. Is this ever done in mathematics, and if so, where can I learn how to do it?

#2 Guest Join Date: Dec 1999 Posts: 22,013
Well, there's the graphing of level sets, where you show all the x- and y-values on the surface for a given fixed z-value. Is that what you're thinking of?

There are also other ways of representing the third dimension on a two-dimensional graph, e.g., by using a spectrum of color values.
#3 Guest Join Date: Mar 2002 Location: Baltimore Posts: 1,695
Are you referring to simple Cartesian coordinates, where the z-axis is orthogonal to the x- and y-axes? If it's a right-handed coordinate system, the z-axis will point "out" of the plane towards you.

Or did you mean something strictly in a two-dimensional system, like a contour plot?
#4 Guest Join Date: Sep 2003 Location: Lost Jerusalem Posts: 4,167
Quote:
 Originally Posted by av8rmike Are you referring to simple Cartesian coordinates, where the z-axis is orthogonal to the x- and y-axes? If it's a right-handed coordinate system, the z-axis will point "out" of the plane towards you. Or did you mean something strictly in a two-dimensional system, like a contour plot?
The first one. What is the algebraic formula for a three-dimensional Cartesian system? Keep in mind that while I'm a math student, this isn't homework help...just wanting to learn a little more than I do now. Thanks.

#5 Guest Join Date: Feb 2000 Location: California Posts: 2,505
Quote:
 Originally Posted by Agent Foxtrot The first one. What is the algebraic formula for a three-dimensional Cartesian system? Keep in mind that while I'm a math student, this isn't homework help...just wanting to learn a little more than I do now. Thanks. Adam
Well, you can have different formulas, depending on what you're graphing. As you may know, y=x^2 forms a parabola (U-shape), y=5x-2 forms a line, y=sin x forms a wave pattern, etc. Similarly, x^2 + y^2 + z^2 forms a sphere, z = 6y-4x forms a plane, z = tan(x+y) forms... um... some kind of shape (I honestly don't know what it would look like) as does x^3-1/y=z. x represents how far a point is left-right wise from the origin, y represents how far it is up-down wise, and z represent front-back wise. Points are represented as, for example, (3, -1, 5), a logical extension of the way points in a 2-d system are represented.

Any equation that relates x, y, and z to each other will be the equation of some kind of 3-dimensional shape. Make sense?

When graphing on paper, you usually draw the z-axis at a 45-degree angle to the other axes, and sometimes include various dotted lines to help people looking at your drawing visualize what the 3-d shape looks like.

I hope that explains it fairly well.
#6 Guest Join Date: Jul 2000 Location: Silly Cone Valley, CA Posts: 3,664
What, do you mean like video games mapping a 3d scene onto the 2d topology of your computer screen?
#7 Member Join Date: Feb 2004 Location: New Orleans, LA Posts: 3,031
Quote:
 Originally Posted by Agent Foxtrot The first one. What is the algebraic formula for a three-dimensional Cartesian system? Keep in mind that while I'm a math student, this isn't homework help...just wanting to learn a little more than I do now. The question doesn't make any semantic sense. What's "the algebraic formula" for a two-dimensional Cartesian system. In fact, what do you mean by "Cartesian system" in the first place?
#8  Charter Member Join Date: May 2000 Location: Lincoln, IL Posts: 26,824
In 2-D Cartesian coordinates, every point in the plane is associated with a pair of numbers, (x, y).

In 3-D Cartesian coordinates, every point in space is associated with a triple of numbers, (x, y, z). The z-corrdinate tells how far above the xy-plane your point is (or below, if it's negative). If you imagine the x and y axes drawn as normal on a sheet of paper, the z-axis would be sticking up out of the paper at right angles to each of the other axes. Points that are actually on the sheet of paper would have a z-corrdinate of 0. z would be positive above the paper, negative below it.

In 2-D, equations involving x and y describe curves in the plane (parabolas, circles, straight lines, etc.). In 3-D, equations in x, y, and z describe surfaces in space (spheres, planes, paraboloids (like a satellite dish), "saddle surfaces," etc.).

There are, of course, ways of representing what a 3-D image would look like from a particular point of view on a flat surface (like a piece of paper or a computer screen).

Probably the first place anyone would study 3-D coordinate systems in any detail would be the third semester of Calculus.
#9 Guest Join Date: Mar 2004 Location: The Notorious N.Y.C. Posts: 2,653
Quote:
 Originally Posted by TJdude825 Well, you can have different formulas, depending on what you're graphing. As you may know, y=x^2 forms a parabola (U-shape), y=5x-2 forms a line, y=sin x forms a wave pattern, etc. Similarly, x^2 + y^2 + z^2 forms a sphere, z = 6y-4x forms a plane, z = tan(x+y) forms... um... some kind of shape (I honestly don't know what it would look like) as does x^3-1/y=z. x represents how far a point is left-right wise from the origin, y represents how far it is up-down wise, and z represent front-back wise. Points are represented as, for example, (3, -1, 5), a logical extension of the way points in a 2-d system are represented. Any equation that relates x, y, and z to each other will be the equation of some kind of 3-dimensional shape. Make sense? When graphing on paper, you usually draw the z-axis at a 45-degree angle to the other axes, and sometimes include various dotted lines to help people looking at your drawing visualize what the 3-d shape looks like. I hope that explains it fairly well.
Quote:
 Originally Posted by Mathochist The question doesn't make any semantic sense. What's "the algebraic formula" for a two-dimensional Cartesian system. In fact, what do you mean by "Cartesian system" in the first place?
What I meant by "algebraic formula" is the formula to draw a system on a Cartesian plane. For example, the system in slope-intercept form, y1=2x+3 and y2=-½x+1, would create two perpendicular lines on a Cartesian plane. What would be the equation be to create a 2x2x2 cube centered on the origin? The coordinates are (0,2,2), I know, but what is the formula?

I like the formulae you gave me, TJdude825. I'm fiddling with them now on graph paper. #10 Guest Join Date: Sep 2003 Location: Lost Jerusalem Posts: 4,167
The Agent Foxtrot-Mississippienne Effect stikes again. That was my post, sorry. #11  Charter Member Join Date: May 2000 Location: Lincoln, IL Posts: 26,824
A 2x2x2 cube centered at the origin would consist of the set of points (x, y, z) in which all three coordinates are between -1 and 1.

You may find this fun to play around with. (I don't know anything about the page; it came up when I googled.)
#12 Guest Join Date: Jul 2003 Location: Where everything's bigger Posts: 3,310
Quote:
 Originally Posted by Agent Foxtrot The first one.
I'm still not sure what you're looking for, but if it's what I think you want, you might want to look at gnuplot. Free, open-source, available for Linux, Windows, etc., and used in academia all over the place. (I've also found this gnuplot tips page to be extremely helpful.)
#13 Charter Member Join Date: Sep 2003 Location: Southeast Florida USA Posts: 21,035
Quote:
 Originally Posted by Mississippienne What I meant by "algebraic formula" is the formula to draw a system on a Cartesian plane. For example, the system in slope-intercept form, y1=2x+3 and y2=-½x+1, would create two perpendicular lines on a Cartesian plane. What would be the equation be to create a 2x2x2 cube centered on the origin? The coordinates are (0,2,2), I know, but what is the formula? I like the formulae you gave me, TJdude825. I'm fiddling with them now on graph paper. Adam
A simple algebraic "formula", or equation, will determine either a single point, an infinite line (staight or curved), or an infinite plane (or curved surface), or even a solid. This depends on how many of x, y, and z are defined by the equation.

Using your example of a cube, it can be defined as the intersection of 6 planes, each with a different formula, which would define the surface of the cube only, not its interior. The equations for the 6 planes are:
X=1
X=-1
Y=1
Y=-1
Z=1
Z=-1

Note that would define 6 infinite planes; the idea that the intersection of them is the interesting part is nowhere in the formulas.

Or you can define the cube as a solid including all the interior points. That would be defined by a different set of 3 equations:
1>=Abs(X)
1>=Abs(Y)
1>=Abs(Z)

This does define just the cube itself and does not extend out to infinity like your 2D lines or my cube surface did.

In general, the simple Y=mX+b single equation format you're familiar with falls apart in higher dimensions. Those equations are still defined, but the really interesting things require more complicated algebraic expressions that do NOT reduce to a single "formula". A cube is an exmaple of something that does NOT reduce to a single formula. A sphere, however does: 0 = X^2 + Y^2 + Z^2 - k^2 is the formula for a sphere of radius k. A paraboloid is just 0=aX^2 - bY + k for constants a, b & k

Parametric equations are common, where in you have a separate "formula" for X, Y, and Z each depending on other variables ("parameters") like a time T or a field strength z or ... i.e. graph this:

X=f(t)
Y=g(t)
Z=h(t)
for t ranging from -10 to 10 by steps of 0.10, where f(t) = t^1.6 + 7, g(t) = ln(t), and h(t) = sin^2(t)

It's also common to use non-cartesian coordinates for 3D (or higher-D) work. For example, in polar coordinates a sphere's equation is R=k for some constant k.

If you can try explaining more about what you're trying to learn we could provide more assistance. Right now the lack of a common vocabulary is getting in the way. I suspect you've asked a much larger question than you recognized at the time.

It'd also be helpful to know if you're trying to learn the concepts for their own sake or are just trying to do some specific task, and whether you're wanting to do the task by hand or via computer.

For example, there are established fairly simple techniques for translating a 3D point into a 2D plane for rendering. Whether you're trying to draw an accurate perspective drawing of a box by hand or trying to program a computer to draw a scene on a screen, the concepts are the same but the process would be very different.
__________________
Cynicism is Evil. It provides an excuse to expect nothing but the worst from others while simultaneously excusing all the worst in yourself. It's lazy, selfish, and ignorant all tightly wrapped into a toxic ball of nasty.
#14 Member Join Date: Feb 2004 Location: New Orleans, LA Posts: 3,031
Quote:
 Originally Posted by LSLGuy A simple algebraic "formula", or equation, will determine either a single point, an infinite line (staight or curved), or an infinite plane (or curved surface), or even a solid.
There's a variety of descriptions. If you don't get it, don't worry: it was really bad.
#15 Guest Join Date: Feb 2000 Location: California Posts: 2,505
Interestingly enough, curves (circles, hyperbolas, etc.) are much easier to define than some other shapes that you might think of as "simpler" like squares. The same is true for 3-d graphs. I don't know the formulas off the top of my head, but if you're enjoying "playing with formulas on graph paper" perhaps you'd like to challenge yourself with finding the formulas for a cone, a torus (basically, a donut shape), an elongated sphere (um, like a stretched-out sphere... would you call that a spheroid?), a cylinder, etc.

By the way, in addition to traditonal "rectangular coordinates" you can also express 3-d points and shapes using two different types of polar coordinates. Check mathworld.com or Wikipedia and they'll probably have a fairly decent description of how that works. Hope this thread has answered your questions somewhat well.
#16 Guest Join Date: Feb 2001 Location: x∈S↔x≠x Posts: 871
Quote:
 Originally Posted by Mathochist There's a variety of descriptions. If you don't get it, don't worry: it was really bad.
I thought it was affine joke.
#17 Member Join Date: Feb 2004 Location: New Orleans, LA Posts: 3,031
Quote:
 Originally Posted by Tyrrell McAllister I thought it was affine joke.
Maybe I'm just being projective.

 Thread Tools Show Printable Version Email this Page Display Modes Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is Off HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Main     About This Message Board     Comments on Cecil's Columns/Staff Reports     General Questions     Great Debates     Elections     Cafe Society     The Game Room     Thread Games     In My Humble Opinion (IMHO)     Mundane Pointless Stuff I Must Share (MPSIMS)     Marketplace     The BBQ Pit

All times are GMT -5. The time now is 06:05 AM.

 -- Straight Dope v3.7.3 -- Sultantheme's Responsive vB3-blue Contact Us - Straight Dope Homepage - Archive - Top

Send questions for Cecil Adams to: cecil@straightdope.com