Category Archives: Math

Fourier series



This post has become part of my Learning math serie. (Check the menu above)

I am looking for some reason at Fourier series.

I found a nice video from 3Blue1Brown, visualizing what a Fourier transform is but it never learned me how to make calculation with Fourier series.
I have found a few video in Youtube from Acadian Learning School, I will share here.

I studied math at University about 30 years ago and I seldom teached math at high school level. So  I had to refresh  some old math knowledges, like:

To make integral clculations and plots,I also had to install these programs on my Ubuntu linux laptop:



Fourier serie lessons

Fouriers work and story is well described by Mark Newman:

Fourier transform:

Here is the 3Blue1Brown Fourier transform visualizing video

As said in my introduction, Acadiana Learning center offers a Fourier course that I think is the best to start understanding Fourier and how to make calculations with it.

About my notes

For me it is important to take notes to think about , to better understand. I share with you my notes here on this page.

There is transcript like with Ted youtubes. So, if you have problems with math English and reading transcripts, you may find my  notes and images below useful so you can read the info with your language using the appropriate language button on my site.

All info is taken from this Acadiana Learning center Fourier youtube course.

I hope they dont mind me doing this.

(source: )

We have this periodic step function

This function f(x) is very similar to a sine function as seen in this image

Fourier has came to a solution of how to model the periodical step  function (f(x) above, mathematically as a integral of a sine and cosine  function like this one. 

He approximated f(x) as a sum of a constant a0, and a sum of of sine and cosine functions:

Fourier was able to calculate  the coefficient a0, an and bn.  ,.i fyou know these constants I(coeficients) the you can model any function cwith this equation.

The sine function better match and approximation of f(x) as f(x) is a odd function.  For even functions cosine terns are used. This will be shown mathematically as an  will turn out to be 0 with odd funtctions.

finding a0

JJean Baptiste Fourier found out how to calculate the value of the coefficient a0, an and bn.

to be He found out the a0 coefficient 1/2L where L= π.

For an and bn. he also found out formulas. So he developed for us 0these three equations:




Calculating an and bn.

TheAcadiana Learning center teacher show in the next coming videos (part 2 to 5) how Fourier calculated the value of an and bn

Calculating a1

As f(x) is divided in two parts, the integral/area calculation has to be split up in a sum of two (2) parts, the first from -pi (-π) to 0(zero) and the second from 0 (zero) to pi (π)

In the image below shows  clearly thath the sum of the two areas from -π to 0, is equal to 0.

The same happens with the two areas from 0 to π -So 


In part 2, the Acadiana Learning center teacher demonstrates that

  • for any value of n —-> a = 0 (zero).

Calculating bn

The teacher demonstrates that 

  • for n=even numbers  —->bn =0 (zero)
  • For n= odd numbers —-> bn = 4c/nπ




Fourier in action

To see what Fouriers equation does you must get a cartesian graph plotter. I downloaded and installed KM plot for linux on my Ubuntu laptop. You find good plotter for sure also with other operative systems.

in the video information in part 1 (source: )  we read:

“You can graph this with your calculator easily and watch the modeling in action. Make sure you’re in radian mode and let c=1

f(x) = 4/(pi)*sin(x) + 4/(3pi)*sin(3x) + 4/(5pi)*sin(5x) + 4/(7pi)*sin(7x) + 4/(9pi)*sin(9x) + 4/(11pi)*sin(11x)” (source: )

This equation is equivalent to 


  • a0 = 1/2n
  • an=0
  • bn for even numbers of n, is not calculated The integration goes from n=1 to n=11

I choosed to get a a cartesian plot and added the formual above

f(x) = 4/(pi)*sin(x) + 4/(3pi)*sin(3x) + 4/(5pi)*sin(5x) + 4/(7pi)*sin(7x) + 4/(9pi)*sin(9x) + 4/(11pi)*sin(11x)”

The plot  forf(x) = 4/(pi)*sin(x) + 4/(3pi)*sin(3x) + 4/(5pi)*sin(5x) + 4/(7pi)*sin(7x) + 4/(9pi)*sin(9x) + 4/(11pi)*sin(11x) showed up like this:


I tried to integrate from n=1 to 29 with 

f(x) = 4/(pi)*sin(x) + 4/(3pi)*sin(3x) + 4/(5pi)*sin(5x) + 4/(7pi)*sin(7x) + 4/(9pi)*sin(9x) + 4/(11pi)*sin(11x)+ 4/(13pi)*sin(13x)+ 4/(15pi)*sin(15x)+ 4/(17pi)*sin(17x)+ 4/(19pi)*sin(19x)+ 4/(21pi)*sin(121x)+ 4/(23pi)*sin(23x)+ 4/(25pi)*sin(25x)+ 4/(27pi)*sin(127x)+ 4/(29pi)*sin(29x) 

and got this plot:

The more intervalls the more precise the approximated plot. Its a plity,I dont know how to let my plotter plot with n=1 to n=999999999 with odd n.



I find it extraordinary that Jean-Baptiste Joseph Fourier born 21 March 1768 during his lifetime (he died – 16 May 1830)  had such a brilliant mathematical talent to create the Fourier equation that today 200 years late  in the digital era, is essential for  sharing music, speech recognition and building engines and bridges.

I like to know more about such talents. It is remarkable Jean-Baptiste Joseph Fourier story reminds me a little bit of Einstein.

Jean-Baptiste Joseph Fourier was a son of a tailor and soon lost his father. He learned math in a Benedectine order. He served in the Revolutionary committe during the French Revolution as well as a scientific adviser for Napoleon in his Egypt expedition 1798

How the h…. did he came up to this equation?

Was it that by studying structures looking like this that his math brain lift off and trigometry knowledges came to use?

Maybe he devloped and found use of Fourier series in this expedition.

The developing of his math must have been done during sparetime a little like Einstein did his math work during sparetime in the Swiss patent office. Read more in

Obvioulsy, not all great mathematician matured their genius in schools and Universities.

Studying Fourier, I learned again about integration and trigonometry something I did more than 30 years ago at Chalmers in Sweden. A great brain exercise. 


Contact me on Facebook

it is impossible to have a dialog on this WordPress dialog. I have tried different tools to avoid spam.

You find me on Facebook. You are welcome to contact me there. Send me a message to present yourself and I will be pleased to talk with you about this and other issues.



The language of physics is mathematics

“The language of physics is mathematics. In order to study physics seriously, one needs to learn mathematics that took generations of brilliant people centuries to work out.” (Source:  )

To understand the math of superstringtheory you have to understand the math  of

  • Ordinary Differential Equations
  • Partial Differential Equations
  • Methods of approximation
  • Probability and statistics

Read more “Undergraduate level physics” at

You may be intrested Matlab.

Math explained


(Source:  )

Bra matteundervisning i grundskolan!

Nästa år vill jag arbeta på ett annat sätt. Det har jag skrivit om i tidigare post. Denna gång efterlyser jag dina ideer. Du som nu går ut nian hur skulle du vilja ha undervisningen om din syster eller broder skall börja i sexan?

En kommentar jag fick var denna:

När du börjar arbeta nästa Ã¥r med sexor sÃ¥ ska du börja med att ha roliga lektionen genom att lÃ¥ta alla elever komma fram till tavlan och visa de dem kan som tex gÃ¥ngetabelen mm… Sedan sÃ¥ ska du dela in dem i grupper och ge dom ett papper som de ska lösa tal.  Efter att de har haft det sÃ¥ ska de fÃ¥ gÃ¥ ner till data salen och börja sammarbeta med sin grupp och hitta fakta och mattetal pÃ¥ nätet. För att de ska tycka att matte är roligt sÃ¥ ska de gÃ¥ till hemkunskap för att visa hur vikt fungerar sedan de som ni har vägt ska de fÃ¥ äta upp tex.. äpple, banan… Slutet av terminen sÃ¥ ska ni ner till syslöjds salen för att klippa i tyg och mäta mÃ¥tt… SÃ… SKA DET VARA FÖR ATT HA EN ROLIG LEKTION !!! (Redzifa)

Skriv även du en kommentar.

Meaningful math

Möte med mening

PythagorasThis book was written 1995! It has been available for several years in our school math library but undiscovered by me. It is of course written in Swedish.

Two pages talkes about the Pythagorean Theorem and how to experiment with it. Reading about it I thought it would be perfect to let the kids work with the theorem while learning how to calculate the area of the rectangle and the triangle.

The drawing on the right shows how to create:

  • 4 triangles
  • 1 square

and how to combine them to demonstrate the Theorem.

To create the demonstration shown on the second image below, one should also have:

  • 1 rectangle for the hypotenuse area (c2)
  • 2 rectangles for the two legs area (a2 and b2)
  • 1 rectangle with the area (a+b)2

If the students have woodwork or art lessons it is maybe an idea to cooperate with those colleagues to let the pupils create these 5 shapes in some adequate material and then maybe do math experiments.

Pythagoras 2

I would like to find other good reasons to learn geometry but at least, these two experiments would maybe show some of the magic of math.

En bättre matematik

Svenska ungdomar

  • är bra pÃ¥ att läsa och skriva
  • är bra pÃ¥ engelska
  • är bra pÃ¥ statistik
  • är bäst pÃ¥ att komma sent till lektioner
  • tycker att det kvittar med dÃ¥liga matteresultat

Samtidigt är de dåliga i

  • geometri
  • aritmetik
  • ekvationer
  • problemlösning

Samtidigt är det många duktiga tjejmatematiker som väljer bort en naturvetenskaplig eller teknisk utbildning.

Med “väl valda” ord, svenska skolors matteundervisning suger!
Och jag är en svensk mattelärare… 🙁

Jag har fått uppfattningen att matematik

  1. måste kännas motiverande
  2. måste vara en utmaning
  3. räknas bäst tillsammans i mattedialog med bra bänkkamrater

1. Matematik i ett sammanhang

Som en matematiker frÃ¥n Bengtsfors, sa, sÃ¥ tränas vÃ¥ra ungdomar veckovis i att “sÃ¥ga” (räkna brÃ¥k) för att sedan övergÃ¥ till “hamrande” (räkna procent) och för att avsluta skolÃ¥ret, med “skruvande” (lösa ekvationer). Trots att vÃ¥ra elever fÃ¥r “skruva” i hela mÃ¥nader, sÃ¥ är vÃ¥ra elever bland de sämre i just “skruvande”. Vad beror detta pÃ¥?

Jag tror att matematik mÃ¥ste sättas in i ett sammanhang. T ex matte mÃ¥ste användas i andra ämnen än matematik, när t ex enkäter skall göras, halter skall beräknas i NO-laborationer, mängder skall bestämmas i hemkunskapen eller mÃ¥tt skall mätas i slöjden. Men matematikundervisningen skall även den styras av det övergripande strävansmÃ¥let “Undervisningen skall skapa interesse!” och inte av de nationella uppnÃ¥endemÃ¥len i matematik eller av matematikböckerna, där man drillas i brÃ¥kräkning utan att se eller känna dess betydelse.

2. Matematik som utmaning

Jag har hört att mattetalen i en bok är så upplagda att de första 80% av uppgifterna kan lösas mekaniskt utan någon som helst förståelse för lösningsmetoden. Endast de sista uppgifterna, som de flesta eleverna aldrig hinner med, kräver en djupare förståelse av matteavsnittet.

Jag funderar om det inte är så att mattetalen är felkonstruerade i våra skolböcker. Och var finns charmen i matten? Gyllene snittet, märkliga bråklösningar återgivna på Rindhpapyrusen, andra talsystem, mm får endast ett fåtal sidor i slutet av kapitlen.

Oavsett kvaliteten i böckernas övningsuppgifter, så tror jag att jag måste lägga ner mer tid på att hitta uppgifter vars lösningar visar på matematikens charm och inte är uppenbara, utan kräver reflektion och dialog.

3. Mattedialog

Endast i VG och MVG målen, dyker dialog upp som krav. För dessa betyg måste eleven diskutera olika lösningsmetoder, analysera skillnader mellan dessa och kunna se specifika och generella lösningsmetoder. Likaså krävs kunskaper om matematikens användning genom historien och i nutid.

En föreläsare som jag lyssnade på i måndags, sa att en elev som sitter och räknar ensamt förlorar 2 tredjedelar av koncentrationen jämfört med om denne räknade tillsammans med en bänkkamrat han/hon trivs med. Samtidigt har jag sett att elevernas glädje i matte ökade markant när de fick tid att jämföra varandras lösningar.

Och nog är det viktigt att hjälpa eleverna att hitta bra mattekamrater.