Tuesday, May 8, 2012

We Should Have Studied Dolphins in High School Math

When I look back at my educational career, it's really striking how poor of a student I was.  That is, I was a pretty mediocre student in the "hard" sciences until I took Marine Biology class during my senior year of college.  Most of the time, I think I was just really bored.  It wasn't always because the material wasn't challenging or useful (although sometimes this was the case). It was often because I had no idea what the point of it was.  OK, so in physics we could calculate where a ball would land based on the angle and force.  I only played baseball when forced to in gym class, and when I did I had no control over the force and angle of my wild swings.  I didn't have a home catapult, and I just didn't get how this stuff could really matter to ME.

It wasn't until I got really interested in marine biology, and specifically whale and dolphin bioacoustics, that I started seeing how amazing and cool math & physics can be.  If you read my blog, you know that bioacoustics is the study of the sounds of living things.  Whales and dolphins use sound to communicate and find food underwater, so even if you can't see them, you can very often hear them.  Some whales, such as beaked whales, are actually easier to find by listening than by looking with your eyes.  In addition, sound travels further underwater than light, so people at the surface can even hear whales that are thousands of feet underwater, or even hundreds of miles away. We can use these sounds to track the location of the animal, and we can do it using high school math.  Super cool.

Why didn't we do this in my high school trigonometry class?

It's really pretty simple.  First, you need something in the water making a sound.  Let's say... a whale.


Then you'll need a boat and something to record the sound.  We're going to use a hydrophone array, which is made up of three underwater microphones (hydrophones) strung in a line, with 15 meters between each hydrophone.  



When the whale makes a sound, it travels in a straight line through the water* to each hydrophone, arriving at the closer hydrophones sooner and arriving at the further hydrophones last.  Let's say the sound arrives at our recordings at time 0 for hydrophone 1, 0.006 seconds for hydrophone 2, and 0.0007 seconds for hydrophone 3.



How on earth do we figure out the distance to a whale when all we know is the difference between when we heard it on hydrophones 1, 2, and 3?  Easy - there's a simple equation for that!


The sound speed in water is 1500 m/s (which is why I put the hydrophones 15 m apart - to make the math easier).



We've replaced some of the words with numbers, something I HATED in high school.  Oh wait, I still hate it, so I'll just explain what the equations mean: The time difference between hydrophone 1 and 2 (t21) is equal to the difference between the distance between the whale and hydrophone 1 and the distance between the whale and hydrophone 2 (d2-d1) divided by the speed of sound.  Holy mother of god, this is just geometry!  I could have been doing this when I was 15! Some of you over-achiever types probably took geometry in 8th grade, so you could have done this when you were 14. Not me!

With a little algebraic rearrangement (which I am not going to bore you with, since you can look it up here), we get:

**


Sx and Sy are the x and y locations of the whale. C the speed of sound in salt water, 1500 m/s.  dh is the distance between the hydrophones, which in this case is 15 m, and all the ts refer to the time difference between the hydrophones (the small numbers tell you which two hydrophones: t21 is the difference between the arrival at hydrophone 2 and 1, etc).  All you have to do now is plug in the numbers. Edited 5/12/2012: To make it even easier, I've provided a spreadsheet here.


**


Then you can graph the location of the whale (-16.7, ±241.7), along with the locations of your hydrophones at (0, 0), (0, 15), and (0, 30).  I've just made designated hydrophone 1 at (0, 0) to make things easy, but in real life you'd have a GPS on the boat and you'd have to add the length of the hydrophone cable to the location of the boat's gps.



You might notice something funny about this equation - it actually gives two solutions - one on either side of the line of hydrophones.  That's a big problem with using three (or four, five, etc.) hydrophones in a row - you're not really sure what side of you the whale's on.  The reason for this is that there are two possible solutions for Sy. However, you can figure out which side the whale is on by turning the boat.  The location that stays in relatively the same place regardless of where the hydrophones are is the correct one.  Other ways to fix the left-right ambiguity? Make your hydrophones into a 2D shape (hard to do when dragging them behind a boat because 2d shapes are not very streamlined)*** or use DIFAR.

I wish I had done this kind of math in high school - it is totally within the realm of a high school student!  I think I might have paid better attention to something cool like finding whales.  On the other hand, maybe not.  That boy across the room WAS pretty dreamy.  Not all kids will be interested enough in whales and dolphins to get interested in math and physics, but the cool thing about math and physics is that, regardless of what you're into, I bet it applies.  From video games to raising miniature ponies, there's math in there somewhere.  Sometimes it just takes the right spark to get people interested.

P.S. If I made any mistakes above, please call me out.  Like I said, I didn't do so well in math class.  Also, if you're interested in a copy of the xcel spreadsheet with the equations already in it, shoot me a message and I'll send you a copy.




* This isn't always the case - sometimes the sound bounces off the bottom or the surface to get to the hydrophone, but I'm ignoring those cases here for simplicity.

** Edit: May 9, 2012. I made a HUGE mistake the first time I posted this and completely ignored the equation for t1 (I thought t1 was a typo for t12).  This is now fixed.

*** Edit: May 8, 2012.  Changed "3D" to "2D" because of a comment from Sam Denes. I had thought a straight line was already 2D, but apparently a straight line is 1D and adding another point off the line makes something 2D.

Note: I got to talk to a bunch of high school math teachers about this math.  Recap here.

 

Thursday, May 3, 2012

Science Travel and Staying Sane


I was looking at my tugboat scheduling for the next couple of months, and while I was at it I took a moment to look back at my schedule for the past 16 months.  The dark areas (turquoise, green, and purple) are days when I was traveling away from home.  Traveling consists of four types: 1) tugboat, 2) conference, 3) other research and 4) family visits (by far the smallest category).

 For 2011, this added up to 152 days (or just over 41% of the year.  This year, I'm doing a little better, having only been away 36% of the time.  I'm not sure if this is more than average for a scientist or less than average (some of my friends regularly go on 3-4 month oceanic research cruises).  I do know that this amount of travel has been stressing me out a little bit, which is one of the reasons that I have chosen NOT to go to a week-long meeting in Hong Kong this month.  Sometimes I feel like all I do is pack, unpack, do laundry, plan for more travel, and catch up on the piles of things that accumulate while I am gone.  The other problem with travel is that I find it really hard to maintain an fitness routine.  For example, in January and February of this year, I was running really regularly (it was awesome), but in March I had a catastrophic equipment failure, which I had to scramble to fix, followed by an important conference in April.  My workout (and life) routine was totally screwed up, and I'm only now getting back into it.

How much travel do you do for research/work?  What's your strategy for maintaining some semblance of a steady routine in the chaos of travel?


This is not what I look like when I am running.  I look more like a cross
between Phoebe from friends and a deranged penguin.