Programming in math classes

Leave a comment

Starting next year, the new Swedish course plan will require the inclusion of programming in math classes. I know not all math teachers, especially for younger years, have a lot of experience with this and so I thought I would blog about three good tools.

All the tools I will talk about share two important features:

  1. They are free to use
  2. They can be used directly in any web browser

Scratch

  • Recommended uses in Sweden: lågstadiet and mellanstadiet
  • Available in Swedish and other languages

The first, and probably the most important, is Scratch, a tool developed at MIT and the best introduction to programming out there.

Instead of writing code, students drag and drop ready commands. It is incredibly easy to use and get started with. They recommend a starting age of 8, but younger kids have used it as well (with more guidance). It is also available in Swedish (as well as something like 40 other languages).

Even if it is easy to get start with, Scratch is quite versatile and it is possible to do quit complicated programs.

I recommend moving away from Scratch in högstadiet, since it will be easier to integrate into your math teaching. However, I did want to give a good example of how it is possible to use Scratch even in 9th grade.

The following is an example of a possible assignment. A 9th grade student was asked to create a Scratch project that showed found the equation of a line from two points. This is what he came up with.

Note that this is also an excellent way to assess math skills outside of standard testing. This project required good knowledge of linear equations, basic algebra, fractions, scaling and Euclid’s algorithm for reducing fractions.

However, this would have been much easier using something like JavaScript instead (e.g. using jsFiddle).

Khan Academy Programming Course

  • Recommended uses in Sweden: högstadiet and gymnasiet
  • English only

Khan Academy has their own online programming course. They have created their own language that seems to be roughly based on JavaScript, but is optimized for graphics.

The advantage here is that they have ready made videos and instructions for students, so even inexperienced teachers can let the students work through the material at their own pace. The focus on graphics and animation tends to make it more fun for students to learn, however it can make some math class applications more annoying to implement. Likely easiest (at least initially) for geometry projects.

A nice feature of their online programming editor is that the code is run as you type it. This gives instant feedback on any changes, which can be helpful for students. Another nice feature is that a teacher can create a sample or template program in the editor and then give a link to it to the students. This can be really nice for specific programming/math projects you want them to work with.

jsFiddle

  • Recommended uses in Sweden: högstadiet and gymnasiet
  • English only (as much as JavaScript and HTML are based on English)

jsFiddle is an online JavaScript editor. This allows you to create JavaScript programs without needing a website to host them on. Instructions in JavaScript (and basic HTML) will need to come from elsewhere. But this is a great site for trying out programs.

Another nice feature is that, like with Khan Academy, the teacher can create sample or template programs for the students to study or modify.

Once students have some proficiency in JavaScript, this is likely the most versatile for using in math related programming assignments.

Here is a simple example of using the Newton-Raphon method to find the square root of a number.

 

 

Planning time and class size

Leave a comment

This is going to be a general rant about statistics, research and the workplace conditions for teachers.

I hear a lot of people (mostly those controlling the money or not working as a teacher) referring to research that indicates that class size doesn’t affect results significantly. For me, this is a great example of empty statistics and research removed from reality. Here’s what I believe:

  • A good teacher with a big class is better than a bad teacher with a small class
  • Class size standards differ greatly based on local culture and this is not always taken into account. Yes, in Japan they have far larger classes than in Sweden, but the students have a completely different attitude to school and learning there so it is ridiculous to make the comparison on number of students alone. This sort of cultural difference in attitudes towards academics even varies within a country. Just look in Sweden at the difference in student attitudes in a country side school compared to a school in a serious university city (I would say this is difference is even bigger for math than other subjects).
  • If you are only looking at average results on standardized test scores then you may miss lot of real differences

And here is what I know: I am personally a better teacher with a small class compared to a bigger one. People who have not taught have trouble understanding the energy it takes to simple stand in front of a class of 30 junior high students. Even if you are doing nothing but talking, there is this invisible energy interaction between you as teacher and the students, and it is exhausting. The difference between 30 and 20 students just on the simple psychological and physical toll it takes on a teacher is hard to accurately put into words, but it is huge.

With fewer students I have more time, energy and ability to get to know every single student personally. I have a much greater chance of learning their strengths and weaknesses on a real and deeper level and am much better able to find the appropriate way to challenge and reach them personally. Not just help them raise the average standardized test score, but help them gain a deeper understanding and (more importantly) a greater appreciation for math.

Standardized scores do not measure student motivation, interest and happiness.

With fewer students I can have more frequent graded assignments without killing myself. This helps get a much more detailed pictures of where potential problems lie and allows a lot more opportunity to help correct misconceptions. Constant formative evaluation is really helpful for both teaching, but also for learning. Even the students need to “test themselves” constantly to see what they really can do and not just what they think they can do. It is very hard for students at that age to develop an accurate understanding of their command of mathematics without a controlled testing environment. Doing this frequently also makes it not so stressful for the students, since they are no longer “tests” but “diagnostic assessments”. This is not possible with too many students without killing yourself as a teacher (been there, done that).

With fewer students I can plan more fun group activities. It is much easier to have classroom discussion with more students participating.

With fewer students I have more energy in general. I am less exhausted and less burned out after smaller classes. I can do more. Standardized test scores do not show the toll taken on teachers physically or mentally when they burn themselves out with big classes. The extra energy  I have from smaller classes translates into more motivation on my part and more creativity and better ideas.

And back to where I started – I am just a better teacher with fewer students.

Now on to planning time. This is the invisible part of our job that many who don’t teach don’t see or understand. The myth that once we have taught a topic we never have to prepare again. For bad teachers maybe, but not for those I know.

Each group of students I teach is different, which different needs and interests. I have to constantly adapt my teaching to each individual group. But more than that, I always try and evaluate every lesson – not just every topic, but every lesson. How could I have explained that better? Can I find a way to make that more clear? What were the problem and misunderstandings this time? And fixing that and creating lessons takes a lot of planning, over and over again. Refining and improving. Trying to always grow and develop as a teacher.

But this time is not recognized or given. We teach too many students and have to waste time with things like being a rastvakt (walking around the halls telling students to behave), or at our school being forced to sub for other teachers when they are sick for free during the little time we have to try and plan.

Ideally, I should be able to teach each group of students for more hours per week in math, but have far fewer groups to teach. This would make a huge difference in what I could do, who I could help, and how I would feel as a teacher emotionally.

Okay, end of rant.

 

 

My favorite algebra problem

3 Comments

I gave my 7th graders a quiz today on solving equations. It was fun (admittedly in a slightly evil way, but not really) to see their frustration with the final problem, which over the years has quickly become my favorite algebra problem. Of course I don’t put it on the quiz to be mean, but to teach important lesson about reasoning and life. Here is the question, always coming after a series of much more complicated ones that they usually have no trouble with:

x + 1 = x -1

 

Math video prompts

Leave a comment

In case any of you don’t already follow Dan Meyer, I highly recommend his math teacher blog – best around: http://blog.mrmeyer.com/

In line with his theories about trying to create video or picture prompts to stimulate natural questions that require math to really answer, I have a couple ideas. The problem is I’m not really good at video editing and suspect I might not get around to actually making them.

So this post is a request for anyone interested in seeing if they can/want to produce one or two short videos.

  1. This one is of two people running around a track. I think it should be a standard 400 meter running track so that distances are known, though the 100 meter marks should maybe be added to the videos. Two runners/joggers start facing each other a short distance from each other. When they pass each other they smack hands and at that moment a timer starts on the screen. The video is stopped after a short time (before they meet on the other half). The question you are hoping for is where will they pass each other again? The timing information and known distances on the track should provide enough information for estimates. The rest of the video is then shown afterwards to show the answer.
  2. In this one you need a full class of students to help out. The students are standing in a line outside a room, each is holding a big bag of presents. One student is in the room. The first student in line walks in and shakes hands with the student there, and they give each other a present from their bags. They put their presents on a big table maybe (or maybe just keep them in a pile at their feet). The next student comes in and does the same (shakes hands and exchanges gifts) with EVERY student already in the room. The video would show the first two or three students doing this, then pan down the line of students. The exact number in line should be a bit unclear. The questions to answer here are how many presents total (which is why they should maybe be on a big table) and how many handshakes total (for those who don’t know, this is showing an easy connection between these ideas and which later is used to easily motivate the Gauss formula for adding up sequences of integers easily).

Any takers?

A fun little problem

Leave a comment

Lilly is working on a classic math problem:

A hot tub can be filled with one of two water faucets. The first alone would fill the tub in 2 hours and the second one alone would fill the tub in 4 hours. How long does it take to fill the tub with both of them turned on at the same time?

Lilly thinks this problem is a little too easy and so starts to play around with different ways of solving it. Being a big fan of geometry, she draws a right triangle, with one leg being 2 and the other leg being 4 to represent the time for each faucet.

triangle 1

She then inscribes a square in the triangle so that two sides align with the legs and one corner lies on the hypotenuse:

triangle2

Lilly then notices that the length of the side of the square is actually the solution to the problem!

  1. Is she right?
  2. Does this work for other numbers? (different times for the faucets to fill the tub)
  3. Does this work for all numbers?

New Motto

Leave a comment

I have a new teaching motto for my students (or maybe it’s a learning motto):

Don’t look for answers, look for questions!

I read New Scientist regularly, and usually solve the Enigma puzzle they have every issue. What I realized today was that quite often (especially with the geometric puzzles) the solution suggests some deeper ideas, and then I have a tendency to explore those ideas and see if they are true, and find their limitations. I’ll usually play around with some ideas first in Geogebra to see if there is a real indication of a more general principle and then try and prove it.

I think it is this kind of curiosity that has always made me like math and science so much. And I realized that what it comes down to is that I am not content with answers, but I want to know what the next question is. I’m curios and want to understand.

One thing that continually surprises me is how many students I see that don’t seem to have any innate curiosity about anything. I wonder if this has always been true, or if there is actually some change in more recent generations because of some change in modern society. Growing up you always hear about the insatiable curiosity of five-year-olds and their standard question of “Why is the sky blue?

It seems like a vast majority of kids I run into don’t care at all why the sky is blue, and it would never occur to them to ask. To be honest, I have a hard time relating to this lack of curiosity of the world we live in. I have always been curious, and so have my friends – but maybe it was more a case of who my friends were growing up rather than something with a change in society (i.e., I may have a biased sample space). I think it would make an interesting psychology study – and it should include changes in curiosity with age. Are people more or less curious in general during certain phases in their lives? Is there a demographic pattern? Is there a connection between natural curiosity and success in school?

All questions I’d be curious to know the answer to.

ThingLink

Leave a comment

It’s been a while. I gave up when I thought no one was reading, but I thought I would give it one more try anyway. I recently discovered ThingLink thanks to MathyCathy who a great blog about using technology in the classroom. I’ve put together a few attempts at images inspired the work she did. I’ll see if I can figure out how to embed them here … due to the magic of time-delayed writing I am back already. Seems I can’t embed them, but I can give links:

Older Entries