Saturday, August 13, 2011

The Batman Equation


I can't verify that this is completely legit, but it certainly is very cool!  HardOCP has posted on their website a screen shot of an extremely elaborate mathematical formula, and its corresponding plot on a graph.  And, lo and behold, it's a Batman graph!

I wonder how long it will be before we have the Superman shield plotted out as well!  Though, I would imagine that as complicated as this Batman equation appears, it is probably just a piecemeal equation composed of lines and curves over specific domains.  The Superman equation would likely be far more complicated, as its shape is far more intricate.  If anyone has any free time and is able to put one together, send it my way and I'll be the first to post it for you!  :)

If ever there was a reason to learn how to make charts, this Batman graph is a pretty good one!  Though, judging by the complexity of the Batman equation (in the top part of the pic below), you would likely want to have a good graphing solver program.  Some of the most popular graphing calculators are made by Texas Instruments.  These TI calculators, such as TI 83, allow you to plug in your equations and have a big screen that will then display what your curve looks like.  These kinds of math graphing calculators would be invaluable if you need to work with complex mathematical formulas and their graphs.


*Edit: I'm surprised at the amount of traffic this blog posting generates!  When I first posted, I had no idea that so many people would end up searching for a Batman equation, and my site would rank so highly for it!  Check out this website as well for really cool visuals created by mathematical equations.  (Batman makes an appearance there as well.)  If nothing else, I hope that this demonstrates how useful math can be to do really cool things!  As I mentioned above, the equation shown above the Batman graph seems to be a piecemeal function, which utilizes a different equation over different domains of the function.  As you can see, piecemeal functions can produce some very interesting designs when graphed out.  Similarly, polar equations can produce very elegant designs as well!  A polar graph is based on an entirely different coordinate system, though it's just another example of how what seems to be just complicated strings of numbers and operations can come together to make something really interesting!  This general math concept should be taught to students early on, to hopefully catch their interest in pursuing further studies in mathematics!  After all, someone needs to develop the Superman equation!


Monday, November 15, 2010

The Midpoint Formula - How to Determine the Midpoint of a Line Segment


If you want to know how to find the midpoint, the midpoint formula is a simple formula that will help you to determine the midpoint between two points on a graph.  Alternately, another use of the midpoint formula is to tell you the center point of a line segment, the point where the distance to one end of the line segment equals the distance to the other end of the line segment.  (In the end, you can prove your answer using the distance formula.)

So, how to find the midpoint between two points?  To determine the midpoint, you first need to know the x and y coordinates of your two points.  Two x coordinates and two y coordinates.  When you have these 4 values, the process is easy.

Basically, you look at the x values, and then you look at the y values.  (Make sure you don't mix them up!)  Once you have identified these values, all you have to do is take the average of each set.  Here is the general formula you will need to know:

Average x = (x1 + x2) / 2
Average y = (y1 + y2) / 2

Simple, right?  "Determine the midpoint between two lines" may sound difficult, but right there is how simple it can be!  Of course, since the midpoint will be a coordinate pair (both an x and a y), you would likely be expected to present your midpoint as a coordinate pair.  So, a more general way of representing this formula is:

( (x1 + x2) , (y1 + y2) )
        2               2

We're basically saying "we want the x-value that is halfway between these 2 x-values, and the y-value that is halfway between these 2 y-values."  And that is your midpoint coordinate.  Let's try a couple of examples.

Easy one to start.


Find the midpoint between (1,1) and (3,3).  So, how to find the midpoint?  Graph this out, and you will immediately be able to tell that the midpoint is going to be (2,2) just by looking at it, but let's apply our formula from above.

Average x = (x1 + x2) / 2 = (1+3) / 2 = 2
Average y = (y1 + y2) / 2 = (1+3) / 2 = 2
Midpoint (2,2)

So, our formula gave us what we already knew.  That's great, but let's try one that is a bit harder to see automatically.

Find the midpoint between (3,1) and (8,7).  (Remember to keep the x's together and y's together!  Don't put an x with a y, or it will be wrong!)  How to find the midpoint?

Average x = (x1 + x2) / 2 = (3+8) / 2 = 11/2 = 5.5
Average y = (y1 + y2) / 2 = (1+7) / 2 = 8/2 = 4
Midpoint (5.5, 4)

So, that was a bit tougher, but still pretty simple and we got the answer easily.  Let's try one more, a bit more complicated.

Find the midpoint between (-5,-2) and (-3, 10).  Same formula to solve it, but using negatives this time.

Average x = (x1 + x2) / 2 = ((-5)+(-3)) / 2 = (-5 - 3) / 2 = -8/2 = -4
Average y = (y1 + y2) / 2 = ((-2)+10) / 2 = (-2 + 10) / 2 = 8/2 = 4
Midpoint (-4,4)

So, there you go.  Now you know how to find the midpoint!  Hopefully this will help you now to determine the location of the midpoint on your line segments!  For an extra challenge/proof, use the distance formula to find the distance between your midpoint and each end of the line segment.  If the distances are the same, then you are obviously correct!


Tuesday, October 19, 2010

Scalars and Vectors


For students just beginning to study physics, the concept of scalars and vectors is often confusing. We have always just added and subtracted things without problem, but putting fancy names to these concepts can be daunting and makes simple things seem a lot more difficult than they are. Here, I will try to explain what scalars and vectors are.

Of the two, scalars are the simpler quantity. A scalar is a measure of something that has only a magnitude to define it. A 10 meter length of cable is sufficient to define the length, whether we move it 2 meters to the left or 5 meters to the right. Also, 30 seconds is a scalar, and so is 25 degrees Celsius, and 30 liters. The magnitudes of these quantities are all that are needed to define them. Maybe to better understand that, we need to consider vectors as well...

Vectors are quantities that are defined by their magnitude AND their direction. This is the CRITICAL point to differentiate the two. Velocity is defined by the magnitude, but also requires the direction. If you are moving 10 m/s, you are moving 10 m/s IN SOME DIRECTION. This direction is required to fully define your velocity. The same is true when working with forces. You exert a magnitude of force in some direction, which fully defines the force. You can say that vectors are made up of a scalar component and a direction component.

When performing mathematical operations on scalars, you do so as you normally would. Run for 20 seconds, and then run for another 20 seconds, and you have run 40 seconds. Add 1 cup of water, and then add 2 cups, and you have added 3 cups. Since scalars are just composed of magnitude, you can simply operate on them as you always have. In fact, a lot of the math you have ever done, without problems, has been working with scalar quantities. As I said, just adding a fancy name doesn't make it any more difficult.

Working with vectors, however, is slightly more complex. You must always consider the direction component when doing the math. Many introductory physics courses will use examples of airplanes flying to demonstrate vectors. If the plane is flying 200 mph straight north (a vector), and the wind is blowing 50 mph straight east (another vector), you can imagine that the combined effect is that the plane is flying slightly at an angle rather than completely north. Actually, you can determine that the plane is actually travelling 206 mph in a direction of 14 degrees east of straight north, using simple trigonometry that you have already studied! (I will go over vector math in a future post.)


Hopefully, this post has more clearly explained the difference between scalar and vector quantities. Scalars are probably what you are most used to working with normally, whereas vectors require a little more thought, due to their direction component that always must be considered as well. Keep this key difference in mind as you work through your introductory physics homework problems.


Distance vs. Displacement


Continuing on in my posts in Introductory Physics, here I want to explain the difference between DISTANCE and DISPLACEMENT.

First of all, Distance is said to be a "scalar" property, which means that it is a quantity that has no direction associated with it, and is defined only by its magnitude. (Another scalar property is mass... all magnitude, no direction.) Conversely, Displacement is a "vector" property, which means that in addition to its magnitude, it also has a relative direction. (Another vector is velocity... it is defined by a magnitude AND a direction.)

With those definitions, we can differentiate distance and displacement even better. Imagine walking to school in the morning. The number of footsteps you have to take to arrive at school (the magnitude) describes the distance (maybe not the most convenient units, mind you!). If your school is straight up the street, or if you have to take a winding path through the park and over the tracks, the number of steps defines the distance... Direction is irrelevant in explaining the distance. You can walk 100 meters in a straight line, or 1000 meters turning left, right, left, and back again. The measured path you travel is the Distance.

On the other hand, Displacement DOES have direction associated with it. If you are going to school one day, and you go straight there, 100 meters up the street, your displacement is 100 meters North (or whatever direction). Now, on the next day, you have a doctor's appointment first, you have to drive 2000 meters up the street (past your school), and then afterwards you drive back the 1900 meters to your school. The DISPLACEMENT is 100 meters, because you end up 100 meters North of where you started. It doesn't matter the path you take to get there. You could travel around the world and back again, and you would still be displaced 100 meters from where you started. The DISTANCE, however, which has no direction but is just the footsteps (or whatever) you traveled, is much larger. On the first day, the distance is 100 meters. On the second day, you travel 2000 meters plus 1900 meters back, which is 3900 meters.

In summary, think of distance as the path taken to get somewhere, and describe it as some quantity without direction (eg. 50 meters away). Displacement is simply the difference between where you start and where you end, no matter the path taken, but considering the overall direction moved (eg. 25 meters to the right).

Hopefully that helps to explain Distance and Displacement. Drop me a line if you would like any more discussion.


Sunday, September 12, 2010

How to do Math with Significant Figures


Following up my general discussion of significant figures, and then my discussion of the rules of counting significant figures, in this post I will outline a few more rules of actually doing math with significant figures. There are only a few rules here, but this always seems to be the part that people make mistakes on... students and professionals alike. In using significant figures, which usually happens in scientific applications, the purpose is to ensure that the same level of precision is applied across your calculations.

For addition and subtraction, you have to break one of the rules that you have undoubtedly always been taught: carry all of your decimal places, and only round in your final answer. When using significant figures in these calculations, your final answer can only be as precise as your 'least precise' value.

Here's an example:

1.23 + 4.567 + 89.1011 + 121.3

In this example, the value with the least precision is the final one: 121.3. It only has one decimal place. As a result, your final answer CANNOT have any more precision than one decimal place. You can't be sure if it is 121.300000, or what is beyond the 3, and so your degree of precision must be just the one decimal place. Therefore, you perform this calculation as it appears, but you must round your final answer to one decimal place. In this case:

1.23 + 4.567 + 89.1011 + 121.3 = 216.1981 = 216.2

Subtraction calculations would work the same way.

For these types of calculations (addition and subtraction), it must be pointed out that the number of significant figures in your final answer does NOT depend on the number of sig figs in the original values.

As I mentioned above, you don't always have to carry your decimal places to the end. If this were a 2 part problem, perhaps like this:

1.23 + 4.567 + 89.1011 + 121.3 = x
x + 3 = y,

you would solve the first line to be x = 216.2, and then substitute this value into the second line, and add 216.2 + 3, which would give you the final answer of 219 (applying the same rule as above). You wouldn't have to carry all your decimal places over to the second part.

Hopefully that is clear enough of an explanation for addition and subtration.

For multiplication and division, the rule is the opposite. That is, the number of significant figures in your final answer is equal to the smallest number of significant figures involved in the calculation.

Here is an example:

5.56 x 2.998 = ?

We can see, based on the rules of counting significant figures, that there are 3 and 4 sig figs, respectively, in these two values. Therefore, our final answer must have 3 sig figs. So, instead of 16.66888, we would report 16.7 (3 sig figs). Otherwise, we would imply a degree of precision that was nowhere near what we were working with in the beginning.

I hope these explanations and examples have been helpful to explain some basic math functions involving significant figures. As always, please comment with any questions you might have! :)


Related Posts