## Monday, April 10, 2017

### Math and Music

I've had more math & music on the mind lately, partly because of some student projects I am advising.  I'm interested in the possibilities for configurable music instruments, among other things.  So far I have begun to implement some ideas here:

http://www.d.umn.edu/~mhampton/vmachine1.html

This is likely to change over time, currently its just a work in progress.

## Thursday, January 26, 2017

Seems an appropriate time to share some great educational videos. The federal department of education might be about to embrace the Dark Ages, but you don't have to!

If you know of others of this quality please comment!

Great for middle schoolers, science, English, history and philosophy:

Biology, again good for middle schoolers:

Math and music, all ages (maybe over 8 or so):

Math (high school+ ?)

Chemistry, all ages:
http://www.periodicvideos.com/

Science and engineering:

Math, this one is pretty deep but great:
http://www.3blue1brown.com/

## Wednesday, December 7, 2016

### The Trace-Determinant Plane

The essential behavior of a planar linear dynamical system, x' = Ax where A is a 2 by 2 matrix, can be characterized by the trace and determinant of the matrix A. Below is an animation of a collection of such systems when the matrix is rotated through all of the differing possibilities.

## Monday, October 24, 2016

### A happy halloween tridecahexaflexagon

I've been thinking a lot about hexaflexagons lately; here is a 13-faced hexaflexagon pattern: Double-sided pattern To construct it, you need to fold matching triangles together when they are adjacent. If you haven't made a more basic one before, I recommend making a hexahexaflexagon after watching some Vi Hart videos:

## Saturday, June 8, 2013

### Triangle problem

The site Five Triangles has lots of good mathematical problems for middle schoolers. I really liked a recent one:

I wanted to see what configurations with this property looked like, so I made this brief animation:

## Friday, April 26, 2013

### Braid groups for nine year olds

Homeschooling my daughter in math has been a very interesting experience so far. As a mathematician, I try to re-imagine the topics in our curriculum with the goal of introducing deeper concepts as soon as I can.

Recently thanks to Allen Knutson, on Google+, I found out about a great video series by Ester Dalvit on braids and knots. My daughter has made it though about half of it, which already covers quite a lot of mathematical concepts (especially from a nine-year old's perspective). So I am trying to use it as a springboard to do some algebraic concepts that most K-12 students never see, like noncommutative groups.

So far I've just made a worksheet on braids along with a reference sheet, which went over pretty well today. I'm not sure how much farther I should push it now.

## Friday, April 5, 2013

### MOOCs - the hype and the pleasant reality

MOOCs - massive online open courses - are all the rage right now, and many people are wondering what their eventual impact will be.  For example, an opinon piece in the New York Times quotes someone as saying that students might be told to "take the following online courses over the summer or over a certain period, and then, when you’re done, you will come to campus and that’s when our job will begin.”

I don't think that's going to happen to a great extent.  Before explaining why, I'd like to make it clear that I am a big fan of MOOCs.  I've signed up for many courses on Coursera, EdX, and Udacity over the last two years, and learned a lot.  I use some of them to supplement my homeschooling, and I plan on incorporating some of their material into courses I teach.  I wish there had been MOOCs when I was in middle school and high school - I'm certain I would have eaten them up.

But the current hype can be pretty unrealistic.  Its interesting to compare the expectations of MOOCs to a very similar phenomenon of 100 years ago, the correspondence course.  Here's the beginning of an article in the journal Science (volume 24 from the year 1906):

There was tremendous interest in the general population in correspondence courses.  Here are some enrollment numbers for one group of correspondence schools (I'm sure there were many others in addition):

Consider that the population of the United States was about a quarter of what it is now, so this is comparable to enrolling a total of almost 4 million people today.  Its not hard to imagine that people thought this would radically change the nature of higher education.

There are many things that make colleges and universities attractive and useful and important to students that are not easily captured by a correspondence course or MOOC.  To be fair, the social and collaborative aspects of MOOCs make them far superior to a correspondence course.  But even for the limited goal of learning a well-defined list of concepts and skills, I think the shared commitment of physically showing up to class is psychologically crucial for most people and it will continue to be so.

## Tuesday, April 2, 2013

### More math worksheets for the adventurous

These are still a work in progress, but here is another collection of worksheets I made for my daughter as part of her homeschooling in mathematics.

These include the ones I posted about previously.

I am planning on polishing up the complete collection once I stop making them for the year, sometime in June.  One thing that is missing is acknowledgements - I have taken many ideas from many sources, such as Fawn Nguyen, Dan Meyer, Kate Nowak, Alfred Posamentier, and many others including state math tests and standards from around the country.

## Saturday, March 30, 2013

### Top mathematics videos

These are all worth watching.  The first two are especially good for kids:

Vi Hart has many, many awesome math videos.  Here's just one to get you started.  OK, I can't resist linking to this one too.  Very hard to pick a favorite.

Donald Duck in Mathmagicland.  This is from 1959, so parts of it are a bit dated but it had a significant influence on me when I saw it sixth grade.  I know many other friends and family who remember it fondly as well - a real classic.

A video from 1988 from Caltech, very well done: http://archive.org/details/theorem_of_pythagoras.

MÃ¶bius Transformations.  Short but very well done.

Niles Johnson's Hopf Fibration video.  Hopefully Niles will continue making more videos like this.

Not Knot part I and part II.  This is a window onto some really advanced mathematics, but I think its worth showing to just about everyone.  Perhaps more than any other video I know, it visually conveys one of the many amazing structures of modern mathematics.  Its a good antidote to anyone who thinks that math=arithmetic.

Dimensions is a 9-part series of short movies that have excellent animations.  Of course some episodes are better than others.

There are some other series which are more educationally oriented (and generally less visually stunning) but worth checking out: the Mathalicious project, the TED-Ed math section,  and the Numberphile youtube series.

Finally, two movies which are good are "Between the Folds" (on origami and mathematics), and the BBC Horizons documentary "The Proof" which is about Wiles' solution to Fermat's Last Theorem.  These are both about an hour, so they require a longer attention span than the ones listed above.

If you have any favorites which aren't listed here, let me know.

## Wednesday, March 6, 2013

### The Singular Value Decomposition and Congressional Voting

I am teaching a class about the SVD (Singular Value Decomposition) of a matrix this week.  I was inspired by a nice article of Carla Martin and Mason Porter, "The extraordinary SVD", to compute the SVD of the voting record of the 112th Congress (House of Representatives) to show to my class.

If you're interested in how this is done, here is the Sage code I used as a Sage worksheet.

Here is the projection onto the first two singular vectors:

## Tuesday, February 5, 2013

These are some (about 76 I think) worksheets that I have used in homeschooling my daughter this year:

She was 8 and 9 during this time.  Some of them were too hard, and she required quite a bit of assistance.  Also, since she is learning German, there are a handful of questions that use German number names.

They would require significant editing to be appropriate to a broad audience, but I am proud of some of them.  Its hard to find good workbooks that include more than the bare minimum material that kids in the US are over-tested on.

## Monday, January 28, 2013

### Motion sensitive LED belt

Recently I built a motion sensitive LED belt for a dance performance by my wife. In case it is of interest to others, this post will briefly describe how I made it.

I started with the LED belt kit by Adafruit:

for which they supply an excellent tutorial:

Adding the accelerometer is very simple.  The 3V in and ground are soldered with short wires to the corresponding pins on the Atmega32u4 breakout board, and wires from the X,Y, and Z outputs can be soldered to the F4, F5, and F6 pins (see http://github.com/adafruit/Atmega32u4-Breakout-Board for more details or http://www.adafruit.com/datasheets/af_at32u4bb_pinout.pdf for a good diagram).

After a lot of tweaking, here is the code we actually used for the performance:
http://www.d.umn.edu/~mhampton/LED_belt_accelerometer.pde

Here is a short video (with a special guest star - our dog - in the background):

Sorry about the graininess - hopefully I can get a somewhat better version soon.  I'm also hoping for good closeup pictures of the soldered connections.

## Wednesday, November 7, 2012

### Tuition myths

There have been many, many articles written over the past few years bemoaning the rapid rise of college tuition. Often there is an implication that the budgets of colleges and universities have ballooned. While it is true that personnel budgets have grown faster than inflation, this is primarily due to the increased cost of healthcare. The real culprit behind most tuition increases at public colleges and universities is a massive decrease in state spending per student. In this post, I will try to illustrate the reality of this for my own institution, the University of Minnesota Duluth.

It is currently Minnesota law that "the state must provide at least 67 percent of the estimated expenditures" for resident undergraduate students, including those from other states such as Wisconsin with which we have a reciprocity agreement (link to statute). There is a cutoff for people who rack up too many credits without graduating, but the law would cover almost all of the current students at UMD.

The actual state contribution is much, much smaller than the law requires. Currently the state provides around 20% of the "O & M" (operations and maintainance) costs for UMD students.

The plots above show, in 2012 inflation-adjusted dollars:
• The nominal tuition at UMD over the last five years (in blue).
• The actual average tuition (in green). This is the actual tuition taken in by UMD divided by the number of students (data is from fall enrollment).
• The black line is what the tuition would have been if the state had maintained its 2007 spending levels for UMD, in inflation-adjusted dollars. This is based on the total dollar amount from 2007, so it does not account for the increase of enrollment at UMD.
• The red line is what tuition would be if the state obeyed its own laws and funded 2/3 of the costs of undergraduate education (for residents of MN and its reciprocity partners). This would have kept tuition constant in real terms at about $5000/year. How much would that last scenario cost? For UMD, it would cost about$6,750 per student per year. If we use this amount for the whole state, we can estimate the impact on the state budget. Every year about 25,000 MN high school students enter a public university or community college. Let's assume they all eventually get four-year degrees (the "worst"-case scenario from a budgeting point of view, since many do not finish). Then this program would cost approximately $675,000,000 per year. That's a lot, but it isn't a crazy number, considering the current MN higher education budget, excluding loans, is around$200 million.

## Tuesday, February 28, 2012

### Some worksheets for the curious eight year old

My increased use of Google+ and to a lesser extent Facebook has meant this blog, never very active, has fallen on hard times. But it might get revived a bit by a new project: my wife and I decided to try homeschooling our daughter.

While I am all in favor of a certain amount of drill problems to learn arithmetic, I think usually in schools the exercises are too narrowly focused on one topic. So I have started making some worksheets with more of a mix of subjects. In the slight chance that they are of interest to other parents or kids, I will try to post them here. Here are the first eight, as PDFs and the source LaTeX:

Worksheet PDFs

LaTeX sources

In case you are worried that I am reinventing the wheel, I am very actively looking at other material. We already have some more standard curricular materials, and we are also using the Khan Academy quite a bit - a really fantastic resource for basic mathematics.

## Friday, July 29, 2011

### Review of "Sage: Beginner's Guide" by Craig Finch

I was asked by the publisher to review "Sage: Beginner's Guide" by Craig Finch. They sent me a free copy; I have no other conflicts of interest. I am generally biased towards Sage itself, as an avid user and minor developer.

On Amazon you can browse the table of contents, which gives a pretty good idea of the strengths of the book, namely basic computation and plotting, numerical calculations, and data analysis. The focus was an excellent choice considering what is already available. The current free Sage Tutorial is oriented much more towards pure mathematicians. There is a Numerical Computing With Sage as part of the standard documentation, but at the moment its quite short and nowhere near as helpful as Finch's book.

I liked the style of the book a lot. There are many code examples that illustrate how to accomplish concrete tasks, along with good explanations of what they are doing. Many of these are things that are unfortunately far from obvious to a beginner (or even intermediate) Sage user. Despite using Sage heavily for the last five years, I learned some new things. The book is particularly strong in showing how to use Numpy, Scipy, and Matplotlib. Sage wraps a lot of the functionality of these projects, but if you want to do something that isn't included in the standard interfaces it can be quite mystifying.

Chapter 9, "Learning Advanced Python Programming", might have been a little ambitious. There's nothing wrong with it, but its too short to provide enough. Fortunately there are a lot of good books, some of them free, that cover Python programming in much more depth. I would have preferred some of this space and effort to be devoted to using Cython and the @interact command, which are covered very briefly in Chapter 10.

I teach several classes using Sage and I will definitely advertise this text as a useful optional supplement (I consider it a little too expensive to add on as a mandatory second text). It would be nice if some institutions considered using Sage instead of its commercial competitors such as Maple, Matlab, and Mathematica - you could probably give every student a copy of this book for the money saved from license fees!

The only thing I disliked about the book was the quality of the illustrations. Sage output that was in LaTeX was not typeset, but instead looks as if a PNG was copied from a screenshot. Some of the examples would have benefited from being in color. The quality of the plots is also somewhat poor. This is not too big a deal if one is following along with Sage, since you can reproduce the figures. None of them are bad enough to obscure the content.

Overall this is a very impressive and useful introduction to Sage that should help any beginning user a great deal.

## Tuesday, July 19, 2011

### Top Ten Talk Titles at the International Congress of Industrial and Applied Mathematics

10. The Most Likely Path to Systemic Failure

9. Exploding Rocks

8. Moving Mucus from the Outside In

7. Ducks in Array: Inferring Individual Rules from Collective Behaviour

6. The Nonlinear Dynamics of Jellyfish Swimming

5. The Neuromechanics of Insect Locomotion: How Cockroaches Run Fast and Stably Without Much Thought

4. Transformational Acoustics: Acoustic Cloaks, Carpets and Wormholes

3. A Semi-Implicit Blob Projection Method for Tiny Insect Flight

2. Mathematical Model for Contemplative Amoeboid Locomotion

1. Warping Peirce Quincuncial Panoramas

## Monday, May 16, 2011

### Ultrafilters

One of the challenges in learning mathematics is the vocabulary. Its hard not just because of the sheer number of words. Some words make an old word strangely precise, like "continuous". But many others are naming concepts which have no common equivalent, and each of these requires wholly new paths of thought.

Recently I was reading a book on the positivity of multivariate polynomials, and I had to recall what ultrafilters are. Even having learned that before, its a bit of a struggle to internalize. It did inspire me to make the following "ad":

## Wednesday, April 27, 2011

### A family of Mobius transformations

I was trying to sketch the behavior of a Mobius transformation in my complex analysis course today. Its hard to convey on the blackboard, so I tried making a video which shows a homotopy of the image of the unit disk, from the identity to (1+z)/(1-z) and back again.

## Wednesday, March 23, 2011

### Sci-fi history in a painting

This is pretty fantastic - Ward Shelley's "The History of Sci­ence Fiction":

(The crop above is just the tip of the iceberg.)

## Monday, March 21, 2011

### Plotting the zeta function

I lectured a tiny bit on the Riemann zeta function for the first time in my complex analysis course, which inspired me to make the following plot. Colors are the argument of the Riemann zeta function, brightness is proportional to magnitude. The default brightness map gives very low contrast, so I modified the magnitudes. To help with seeing the magnitudes a contour map with exponentially spaced contours is overlaid.

def xy_to_zeta_size(x,y):    return abs(zeta(N(x+I*y)))cvals = [e^i for i in srange(-7,1,.25)]cp = contour_plot(xy_to_zeta_size,(-6,3),(-3,3),contours = cvals, fill=False, plot_points = 201)rzeta(z) = zeta(z)/norm(zeta(z))^(.25)rzf = fast_callable(rzeta,domain=CDF)cparg = complex_plot(rzf,(-6,3),(-3,3))show(cparg+cp,figsize=[18,12])