Sunday, January 3, 2021

LaTex, a curse and a blessing

I've been making teaching materials on computers for over 25 years. Maybe 15 years ago, I was introduced to MathType, and it made my equations so much nicer. Now it doesn't work with Word, and you have to pay a yearly fee. No thanks. It seems crazy to me that MS Word doesn't have a better equation editor. (I don't really remember what I don't like about it, but I think it has annoyed me lots over the years.)

I got a new computer in the Spring, and since then, whenever I need to make a formula, I've been using my old computer with an old version of Word, and my very old copy of MathType. Today I wondered if it was time to bite the bullet, and make a quiz using LaTex.

I've tried to learn a bit of Latex a number of times before, and it just felt overwhelmingly weird. I especially hated that I couldn't see what I was doing. This time was better in a number of ways. First, my colleague showed me overleaf, where I can see what I'm doing. You can choose split screen, and hit recompile after every little change.

The next thing that helped was that I got a bunch of materials from the author of the book I'll be using. (Oscar Levin, Discrete Mathematics: An Open Introduction.) I used those as templates for my own work. I deleted what I didn't want, and began to add what I did want. (If you want to learn LaTEx (or TEx), and you don't have a bunch of materials someone else made that you can modify, this quiz template might be helpful.)

The reason I was using LaTex was the equations, but that was one of the things I didn't know how to do. This site, codecogs, came to the rescue!

I also needed to include an image of a Venn diagram. I read up (googled latex image), tried to do what they said, and my image ended up in a weird place, next to the questions. I guessed, and added a line that I saw in other places in my documents from Levin (\vskip 1em). I figure that's a vertical skip. I have no idea what the 1em is. (I tried 5em for more space. Nope.) It worked!

But the image was still too big. Read up again, use [scale=0.5], put it in the wrong place, so it doesn't work. Figure out the right position, it works! And now the image doesn't look right hanging out on the left. I read up, use "the centered environment," and it is all just prefect!

Here's the centering:

\begin{center}
    \includegraphics[scale=0.5]{venn10}
\end{center}

That took me over an hour. (Maybe two.) I made a second version of that quiz in ten minutes.

 

I'm learning...



Summary

Does LaTex seem way too complicated, but it still might be the answer to your problems?

  • Use a simple environment like overleaf where the split screen lets you see what you've done.
  • Start with a template you can modify.
  • Use something simple like codecogs to build your equations.
  • google your questions.

Good luck!

Thursday, December 31, 2020

Square & Triangular Numbers

 It's my vacation. And here I am, playing with math. Woo hoo.


If you've played with this problem before, perhaps this is boring and old hat. But I've seen the question many times, and never before have I followed up on it.


I just got a book I ordered. A Friendly Introduction to Number Theory, by Joseph Silverman. THe very first problem he asks the reader to attempt is:

Exercise 1.1. The first two numbers which are both squares and triangles are 1 and 36. Find the next one, and if possible, the one after that. Can you figure out a way to efficiently find triangle-square numbers? Do you think there are infinitely many?

I found the next one easily, by making lists on paper of the square and triangular numbers. It was about 6 times as big as 35 (which is about 6 times as big as 1). So I figured it would take too long to find another by hand. I wrote a Sage script. (It took me a few tries. I had lots more print statements until I was sure it was working.) I now have 7 of them. But more importantly, I've found a pattern. If you want to play with this, I would recommend not reading further.



.



.



.



.



.

The business about each one being about 6 times as big as the one before looked promising. So I checked. Let's call them m (for matching numbers), where the actual number is m2.

m0 = 1, 

m1 = 6*m0=6,

m2 = 6*m1 - 1 = 35,

m3 = 6*m2 - 6 = 204,

m4 = 6*m3 - 35 = 1189.

At this point, it becomes clear that m(i) = 6*m(i-1) - m(i-2). And that's where I am now. I don't really know that this will continue to work forever. But it does continue for all the numbers I've found using Sage. And I just found one more to see if it continues further. It does.

Next step, proof. I will see if that's something I can do.


Edited to add:

I just found a closed form for the formula. It's ugly but it works. (I learned how to do that step from Oscar Levin's Discrete Mathematics: An Open Introduction, in 2.4, Solving Recurrence Relations. That's the book I'll be using to teach discrete math from this coming semester.) 

 

Now the next step is proof....

 

Tuesday, December 15, 2020

Getting Better at Canvas

 I am not a Canvas expert, but I've learned a lot this past semester, and hope to keep learning more.


This post is a compilation of some of the things I've learned that make Canvas better for me and my students.

 

Images

I took a course offered by my employer (Contra Costa Community College District) called Becoming an Effective Online Instructor (BEOI). In the course they recommended using lots of pictures in our Canvas pages. I haven't gotten to the point of "lots" yet, but I'm trying to become more aware of what images will help students learn mathematical concepts, and also what mathematical images bring beauty to the screen. 

 


I love this image, titled Banded Torus, by Thomas Banchoff and Davide Cervone. I recently realized that part of its power for me was its black background. So I changed the cover images for my calculus and precalculus courses, to incorporate a black background. Both of these are done on desmos in reverse contract. The originals, with white background, were nowhere near as lovely.



For calculus, I wanted to show both slope and area.


For precalculus, I wanted to show all of the functions we study (along with the circle). I did leave out the rational functions, not wanting the image to look too busy.




Orientation

That BEOI course offered very specific ideas about how to set up an orientation module. (I had to do one their way for the course, and then I modified it to make it my own for my students.) One of the items in it is a quiz. I loved putting that together. I tell students where the answer to each question is (as part of the question), so they can look it up. Partly, it's a way to emphasize certain things from all of the pages I am hoping they will have read. (Yes, you can call me at home! But not after 8pm.), and it's also a chance to be silly (how many chickens does Sue have?). It also allows students to start out the semester with a perfect quiz score (hopefully!).

Zoom Recordings

I guess Zoom saves these already, but I wanted them listed in my modules. So I had a module with links to each day's recording. In a mid-semester survey, two students requested that the various topics covered be listed with timestamps. I don't have time to do that, but I figured out a way to allow students to do it for each other. I have one page in each unit where I link to each recording by date, and list the topics we covered underneath. I set that page so that students can edit it. (They didn't this semester, but if we start out this way, and they get a bit of extra credit for it, we might be able to jointly build a great resource.)


Quiz & Test Retakes

Until this semester, I did not use the Canvas grades function. I do my grading using Excel, and it has lots more flexibility for my crazy formulas that calculate the grade four different ways and take whichever is best for the student.  But everything was online this time. So that's where the grades were. I turned off the totals, so students wouldn't see the wrong scores that Canvas figured.

I allow students to take quizzes multiple times. (New version each time, of course.) And they get two chances on most tests. I started out building a new Canvas assignment for each retake. What a mess to figure grades! I finally realized that Canvas would accept multiple attempts on an assignment, and allow me to look at each one. That feature works great.

There is a "hide grades" feature that is supposed to hide the grades until I'm ready to post them. But it apparently doesn't hide my comments, which defeats the purpose. (Since I explain my grading in the comments.) Maybe there's a better way to do that, and I'll learn it soon. [Edit: After I wrote this post, I found out that there is indeed a better way. In the gradebook, go to the assignment, at the name of it, click on the three dots, choose 'Grade Posting Policy', and choose manually. Then remember to 'Post Grades' when you're done.]

 

Organizing Content

The Canvas "modules" serve as containers for each of my units. So each one starts with a "unit sheet", giving an introduction to the ideas they'll be learning about, objectives, and a schedule. That schedule is what I want my students to think of as their home base in my class. I add details to it daily, I highlight the current class session, and I link to pages and assignments in it. I add more detail to it when I'm prepping my next class. It works great for me, and I want it to work great for my students. I put a link to it on the Home page, so it's easy to get to.

 

Community Page-Building

Canvas pages start out as editable only by the teacher. But you can change that to allow students to edit a page. Our fist topic in our second unit (in trigonometry) was radians, and I wanted them to do something after our first test, before that next class session. So I created this page, and I told them to find the best videos online that explain radians. I think comparing video explanations was a great way for them to be thinking about whether they really understood the concept.




Next Semester

I am still thinking about how to get students to participate more, and will be looking for ideas to help with that. I know I should make a few videos where I explain some of the key concepts. But I seem to be resisting doing that.


What have you learned recently about how to use Canvas well?

Thursday, November 12, 2020

Note-Taking & Learning Something New at 64

I've been teaching for over 30 years, almost all of it at the community college level. So I've gotten pretty used to what I do. (But not bored. I still discover new ideas every semester, and I still love connecting with students.)

That changed with quarantine. Before 2020, I was pretty sure that I never wanted to teach online. It looked like way more work, and it was clear to me that I wouldn't be able to have the same level of connection with my students in an online class. I was right about both things, but (amazingly, to me) I am enjoying teaching online. 

I meet my students in Zoom two days a week. Most of them won't turn their cameras on, and I want to respect that. (I offered extra credit for cameras on, and I get to see 2 to 5 faces each day. It's better than none.)

I have a light load this semester. Just two classes. And it still feels like full-time work. Next semester I'll have over twice as many units (in 3 classes). I'm starting to prepare ahead of time, so I don't drown.

I started taking notes for the Discrete Math book I'll be using, and after I wrote up some notes, I went back and wrote an introduction to note-taking. Tonight I described it to my bother (who's becoming a teacher), and realized that it was a bit of an epiphany for me.

I have terrible handwriting, and always thought I didn't know how to take good notes. I copy the board in a math class, just like everyone else. That's not really note-taking to my way of thinking. I highlight the good bits when I'm reading, and when I come to an example, I try to do it myself before looking at the author's steps. But notes? Nah, that just never seemed like one of my skills.

Well, I was a little excited as I finished up my notes for the first section of the textbook. I had set the Canvas page so that students could edit it too, and so I had purposely left some parts of my notes incomplete. As I looked at what I had written and did a bit of rearranging, I saw some patterns.

So I wrote this introduction:

How do you take notes when you read? My reading notes may surprise you. I see 4 types of things that I'm doing in my notes:

  • The first, organizing by making lists, will be familiar to you. 
  • But I am also trying to connect a new term to other meanings outside of math. 
  • And I am reacting to what I read (surprise, and noticing how powerful something feels). 
  • I also made up my own example.

That seemed kind of cool.

Then, when I talked to my brother, I realized that I had always thought I was no good at taking notes. (I didn't think I really needed to be any better at it, because I am good at most academics anyway. But...) I never thought I could teach students how to take better notes. And I realized that this one task I gave myself, to make some reading notes for the textbook, suddenly showed me that I know a lot about reading math and taking notes that I can share with students.

So that's my epiphany. I do know how to take good notes, and now I know how to describe that process to students.


What helps you conquer a text you're reading? Do you take "good notes"? What does that mean to you?


Sunday, September 20, 2020

Division by 0

[Once again, I have written something for my class that I think will be valuable for others.]

Big question: What are the values of LaTeX: \frac{3}{0}, LaTeX: \frac{0}{3}, and LaTeX: \frac{0}{0}?

 

We want to be able to look at each of these fractions, know what it equals, and understand why. This becomes vital in calculus. [Note: Many students have trouble with this. It may be because elementary teachers are often uncomfortable with division, and teach it by memorization, instead of as something deep to understand. Or it may be that this is deep, and our brains need more time to really make sense of it.]

 

To help ourselves understand this, we tie it to something simpler that we understand better. Division is the inverse of multiplication (ie they undo each other). So it will help to explore how the two operations are connected.

We start with a very concrete and simple problem: LaTeX: \frac{6}{3}=2

[Note: One notational problem with division is that it's written in different ways that place the numbers in opposite orders. LaTeX: \frac{6}{3}=6\div3, but these are also equal to. When I was young, I had trouble keeping track of which was which, so I would write down an easy problem, like this one, to help me remember.]

Now we consider the multiplication problem that goes with this division problem: LaTeX: \frac{6}{3}=2\Longleftrightarrow3\cdot2=6, and we can say that 6 divided by 3 is 2 because LaTeX: 3\cdot2=6.

 

Let's use T for top, B for bottom, and A for answer, and rewrite this equivalence of a division problem and its associated multiplication problem, in a way that will always be true: LaTeX: \frac{T}{B}=A\Longleftrightarrow B\cdot A=T

In the fraction (or division), we have top over bottom gives answer, and that gives us a multiplication problem where the original bottom times the answer from the division gives us the original top.  [Note: I am purposely avoiding the proper terms: numerator or dividend, denominator or divisor, and quotient (for the answer). For anyone who gets those terms mixed up, it's easier just to focus on position for the moment.]

Now we are ready to consider each of the three original questions, using this correspondence.

1. Let's think about the multiplication associated with LaTeX: \frac{3}{0}:

LaTeX: \frac{3}{0}=A\Longleftrightarrow0\cdot A=3

So what do we multiply 0 by to get 3? Hmm. It seems that nothing works. There is no number that can multiply with 0 and give us 3. So the division problem (or fraction) has no solution, and we say that LaTeX: \frac{3}{0} is undefined.  This is why we say "division by 0 is undefined".

 

2. LaTeX: \frac{0}{3}=A\Longleftrightarrow3\cdot A=0. Ahh, this one is easier. LaTeX: 3\cdot0=0 so the answer is 0.

 

3. LaTeX: \frac{0}{0}=A\Longleftrightarrow0\cdot A=0. Hmm, this time A could be any number, and the multiplication would be correct. This is still division by 0, so it is still undefined, but it is very different from the first case. We call it indeterminate. We can see why by looking at a rational function example.

Example: LaTeX: y=\frac{\left(x-1\right)\left(x-2\right)}{\left(x+2\right)\left(x-2\right)}

When x= -2 or 2, this function will be undefined (because we have division by 0). But the function's behavior for x values very close to -2 is very different from its behavior for x values very close to 2.

LaTeX: x=-2 is a vertical asymptote for the graph. This means that as x approaches -2, the y values approach LaTeX: \pm\infty. (This can be written "as LaTeX: x\longrightarrow-2,\:y\longrightarrow\pm\infty".) You can verify this by trying these x values: -2.1, -1.9, -2.01, -1.99,... (You can also use desmos to view the function.)

What happens near LaTeX: x=2? We see that the y value does not depend on the factor LaTeX: \left(x-2\right), because it cancels. So, as long as LaTeX: x\ne2, LaTeX: y=\frac{\left(x-1\right)}{\left(x+2\right)}. At LaTeX: x=2, this would equal 1/4. The function is not defined here, but now we can see that as LaTeX: x\longrightarrow2,\:y\longrightarrow\frac{1}{4}.

So why was LaTeX: \frac{0}{0} called indeterminate? Because the value associated with it in a particular function is determined by other parts of the function. Although LaTeX: \frac{0}{0} is undefined, we saw that, in this particular function the value of the function got close to 1/4 as the x value got close to 2, which is the number that would give us LaTeX: \frac{0}{0}. This concept goes with the concept of limits, one of the 3 major topics in calculus.

 

 

Wednesday, September 16, 2020

Friday, September 11, 2020

Solving Application Problems (in Trigonometry)

I started this blog in 2009, was active for about 6 years, and then not so much for the past 5 years. I wrote two posts in the spring, both related to online teaching. We were all trying to learn how to teach well as we scrambled to do it while learning. I was happy to keep seeing my students online, and Zoom was our class. I used Canvas a little but not much.

Over the summer I learned a lot about effective online teaching. (I'm still not sure it can ever be nearly as effective as in-person, but...) I developed my Canvas shells for each course, and I started the semester readier than I had expected to be. My Canvas shells are not done. I created a "module" that orients students to online learning and my course. And I created a module for our first unit. The rest is still in progress.

Today I added a page for my trig students, on solving application problems. I want to share it here. (And I may share lots of my Canvas "pages" here, sometimes with modifications.)

Years ago, I modified George Polya's wonderful outline of problem solving steps. We start with that. It's a good idea to print it out, and turn to it whenever you're stuck. 


tree with shadow, pretty vs helpful

Draw a Diagram.

Always start by drawing a diagram. This step is vital, and is a major part of "Understanding the Problem".

Your diagram does not need to be artistically good. It does need to show relationships well. An artist might show my shadow going off at an angle. But for a math diagram, it is better to show the right angle involved, as a right angle.

In the diagrams on the right, the top drawing is prettier, and the shadow is more evocative, but the bottom drawing shows the right angle between a vertical object and its horizontal shadow, which is what will help you do your mathematical analysis.

Example (#22 in 2.4, page 93): If the angle of elevation of the sun is 63.4° when a building casts a shadow of 37.5 feet, what is the height of the building?

Draw your diagram now, labeling it with everything given and a variable for the value requested. (My drawing is below.)

 

 

.

 

 

 

.

 

 

.

 

 

.

 

 

.

 

building with shadow, labeled

.

 

I labeled the height of the building h.

 

 

 

 

 

 

 

 

 

 

Write a Trig Equation.

In a simple problem, with only a few pieces of information this is all you need for the "Devising a Plan" step. We are given the value of the side adjacent (next to) the given angle, and we want to find the value of the side opposite the angle. (The hypotenuse is neither given nor asked for.) Which trig function uses adjacent and opposite? (Two of them do, but the one we use most of the time is...)

 

.

 

 

.

 

 

.

 

 

.

 

 

... LaTeX: \tan\theta=\frac{opp}{adj}, and this gives us  LaTeX: \tan63.4=\frac{h}{37.5}


 

Do a bit of algebra.

This is the "Carry out the Plan" step. To solve for h, we multiply both sides of the equation by 37.5:

LaTeX: 37.5\cdot\tan63.4=37.5\cdot\frac{h}{37.5}\:\:\Longrightarrow\:\:h=37.5\cdot\tan63.4=74.8857...

I pulled out my calculator for that last step (making sure it was in degree mode). Since our given length was given to tenths of a foot, I round, and give my final answer as 74.9 feet.

 

Check your Solution.

This is the "looking back" step on the handout. If we look at our diagram, does a height of about 75 feet seem reasonable? Well, the height seems bigger than the shadow, and maybe about twice as big, so yes, it seems reasonable.

 

 

Practice.

If you get stuck on application problems, a good way to practice is to re-do problems that you've watched someone else do (perhaps on youtube). Try not to look at your notes. If you need to, go ahead and look. Do as much of the problem on your own as you can. If you looked at your notes at all, do it again the next day.

Thursday, June 25, 2020

Playful Math Education Carnival #139 (formerly known as Math Teachers at Play or MT@P)

"It’s like a free online monthly magazine of mathematical adventures." (Denise Gaskins)




 



Black Lives Matter. How does that idea and movement intersect with math and play?  It's hard to imagine play intersecting with the painful history of racism in the U.S.  We can collect data to show how pervasive anti-Blackness has been and is. We can discuss how math courses have been used to filter out students from desirable professions (doctors, engineers, lawyers).  We can discuss how Black people are more involved in the history of math than you'd guess from the Eurocentric naming. (Check out who knew Pascal's triangle before Pascal!) None of that is playful. But celebration can be playful. Let's celebrate Juneteenth!










139

Every number is cool.* Here are some ways 139 is cool:
  • 139 is the sum of 5 consecutive prime numbers (19 + 23 + 29 + 31 + 37). 
  • 139 is the smallest prime before a prime gap of length 10. 
  • 137 and 139 form the 11th pair of twin primes. 
  • 139 is the 34th prime number. 

Puzzle: The digit sum is the result after adding the digits repeatedly until you get down to one digit. 139’s digit sum is 4. If you write 139 in base two, you get 100 1011, which still has a digit sum of 4. Does this always happen? If not, does it happen in any other bases?




New Homeschoolers 
I have a hunch the quarantine has moved lots of families from school to homeschooling. If you’re new to homeschooling, get ready to have fun playing with math. Most mathematicians are in it at least partially for the fun of it. We like to play with numbers, shapes, and logic. The more you play with math with your kids, the more likely they are to enjoy it.

There are vast resources online to help you. Until 3rd grade, just play games, cook, measure, read mathy stories, and have fun with it all. If your kid wants a curriculum before that because they love math, then check out Beast Academy. It has levels 2 to 5 (topics correspond to grades 2 to 5, difficulty levels are a grade or two higher). Some families never use a curriculum; if you’re interested, you may want to explore unschooling. Math lovers eventually want to take classes, which you can do either through your local community college (I’ll be teaching trigonometry, pre-calculus, and calculus I online this fall) or Art of Problem Solving. There are lots of other great resources; these are just my personal favorites.

You might find ideas that work for you in my book, Playing with Math: Stories from Math Circles, Homeschoolers, and Passionate Teachers. Or from other books from my publisher, Natural Math. I also highly recommend Denise Gaskins’ blog (especially this post on homeschooling math), website, and booksDan and Christopher have some good ideas about playing mathematically with kids too.




Talking Math With Your Kids (#TMWYK)








Math & Language Play
One of my favorite math educators, Marilyn Burns, invented a game where students look for $1 words. A=1¢, B=2¢, etc. You could combine math and any other subject by making $1 phrases. Sometimes kids like the simplest games. This might be a craze at your house. (My son used to love Shut the Box, a simple dice game that did nothing for me. It sure was good number practice for him.)

π-ku, a competition, in which all their favorites will be posted at the Aperiodical blog. I'll try:
Three One Four.
Hmm.
Not very hard.


Games
So much of math is based on logic, any logic games you play will deepen your students' affinity for math. Here are a few others:
  • Set Tic Tac Toe, described by Tanya Khovanova, invented by her students. You may want to play the basic game of Set for a few months before attempting this. But if I could figure out a way to do this at a distance, I'd love to try this out. 
  • Planarity game. (This is connected to a field of math called graph theory.)
  • Play with wallpaper symmetries.



Math History
Podcasts aren't my thing. Yet. But if this series is as good as it sounds, I'll just have to  figure this newfangled genre out. Opinionated History of Mathematics. With an interview and glowing review at Aperiodical.




Online Events
This summer Art of Inquiry is hosting free science webinars on space, astrobiology, and AI for school children and their families. The webinars are led by university professors and industry experts. You can register for the events on Eventbrite.  Here is their June-July 2020 schedule:
  • Living Through a Revolution: Multi-messenger Astrophysics - Dr. Roopesh Ojha, GSFC NASA, June 26th 
  • Figuring out the Earth from inside out - Dr. Kanani Lee, Lawrence Livermore National Laboratory, June 30th 
  • Mars Rovers - Dr. Allan Treiman, Lunar and Planetary Institute, July 3rd 
  • The search for life on Mars in XXI century - Dr. Alex Pavlov, GSFC NASA, July 10th 
  • Where in the Universe did we come from? - Dr. Ethan Siegel, science author, "Starts with a Bang" Forbes contributor, July 23rd 
  • Why we should build a Moon base - Dr. Ian Crawford, University of London, July 31st 
 If you know of other math-related online events, please mention them in the comments.




This series of blog carnivals was founded and is kept going by the fabulous Denise Gaskins. You can find out more at her blog. Last month's carnival was hosted by John Golden, the Math Hombre. Check it out!





-----
*Well, sometimes their coolness is in their bad reputation (sounds like a few people I knew in high school) ... 

Thursday, June 18, 2020

The Math Teachers at Play Blog Carnival (aka Playful Math Education Carnival) will be a bit late this month.

I am looking for good posts now. If you can send me any links by Saturday, that would be great. I am hoping to put it together on Sunday.

Send your links to mathanthologyeditor@gmail.com, or post them here.

Want to know what a blog carnival is? Check out last month's, by my pal John Golden.


Sunday, April 19, 2020

Corona Post #2: Teaching Online

[#2 because my previous post in March on my online math circle was due to people needing to take their math circles online when the shelter-in-place orders were just starting.]

I've been teaching online for 4 weeks now, two before our spring break and two after. At first I was just trying to learn how to manage teaching on zoom. I bought a whiteboard that's still sitting on two chairs in my living room, and I sit in a tiny chair while I write on it. Not ideal, but I get to see my students, and I feel like I'm still working with them where they are, not just lecturing.

(Some day I'll finally install it on my living room wall. I procrastinate with tasks like that. I'm not sure why it feels intimidating...)













A few weeks ago I made a google slides presentation for my Discrete Math course to explain a way of counting possibilities called Stars & Bars. I had fun doing it. You're welcome to modify it and use it in your teaching.








Just now I made another. This one is for Calculus II, on Taylor & Maclaurin Series (really just a Maclaurin series). I was motivated by knowing that there would be too much writing for my little whiteboard. This presentation has a handout to go with it.








I'm also teaching Calculus I. I haven't made any cool new materials for that course yet. But I will...
 
Math Blog Directory