Skip to main content
Home
A key to conquer the (open source) world.

Main navigation

  • Home
  • About Us
    • About this website
    • About_me
    • Family rivalry
  • Gurus
  • Tutorials
User account menu
  • Log in

Breadcrumb

  1. Home

๐Ÿง ๐Ÿ’ก Fourier Series Memory Refresh

Hero image for keyhole tutorials.

Struggling to remember shortcuts, symmetry rules, integration tricks, and core Fourier ideas? This quick refresher packs intuitive hints, memory aids, and problem-solving insights into one place โ€” designed to help concepts stick faster and make Fourier problems feel much more manageable.

Fourier series explained main picture.

๐ŸŒตโŒ๐Ÿ“ To get you into the mood!

This won't be dry math.

Hint 1: ๐Ÿ“˜ The product of two odd functions is even!

Rule

If:

\[ f(-x)=-f(x)\text{ and }g(-x)=-g(x) \]

then the product becomes:

\[ (fg)(-x)=f(-x)g(-x) \]

Substitute the odd-function property:

\[ (fg)(-x)= (-f(x))(-g(x))\\(fg)(-x)=f(x)g(x) \]

So:

\[ (fg)(-x)=(fg)(x) \]

which means the product is even.

Quick Memory Trick

  • odd ร— odd = even
  • even ร— even = even
  • odd ร— even = odd
  • cosine = even
  • sine = odd
  • odd ร— sine = even
  • even ร— sine = odd
  • odd ร— cosine = odd
  • even ร— cosine = even

Hint 2: ๐Ÿ“˜ Integration by parts

Given:

\[ dv=\sin(nx)\,dx \]

This means:

  • ๐Ÿ‘‰ โ€œv is an antiderivative of \( \sin(nx) \).โ€

So we integrate both sides:

\[ v=\int \sin(nx)\,dx \]

Why does this become \( -\frac{\cos(nx)}{n} \) ?

To integrate \( \sin(nx) \), use the chain rule in reverse.

We know:

\[ \frac{d}{dx}\cos(nx) = -n\sin(nx) \]

So to get just \( \sin(nx) \), we must divide by n:

\[ \int \sin(nx)\,dx = -\frac{\cos(nx)}{n} \]

Thus:

\[ v=-\frac{\cos(nx)}{n} \]

Quick Intuition

Whenever you integrate something like:

\[ \sin(ax) \]

the result is:

\[ -\frac{\cos(ax)}{a} \]

because the inside derivative of ax contributes a factor a.

Hint 3: ๐Ÿ“˜ Why does this work

\[ \int u\,dv = uv - \int v\,du \]

๐ŸŒฑ Step 1 โ€” Start from something familiar

You already know the product rule for derivatives:

\[ \frac{d}{dx}(u \cdot v) = u'v + uv' \]

This tells you how to differentiate a product.

๐Ÿ”„ Step 2 โ€” Think โ€œreverse the processโ€

Integration often reverses differentiation.

So we ask:

  • ๐Ÿ‘‰ If the derivative of uv is uโ€ฒv+uvโ€ฒ,
    what happens if we integrate that?

\[ \int \frac{d}{dx}(uv)\,dx = \int (u'v + uv')\,dx \]

โœจ Step 3 โ€” Simplify both sides

Left side:

\[ \int \frac{d}{dx}(uv)\,dx = uv \]

Right side:

\[ \int (u'v + uv')\,dx = \int u'v\,dx + \int uv'\,dx \]

๐Ÿ” Step 4 โ€” Rearrange

We now have:

\[ uv = \int u'v\,dx + \int uv'\,dx \]

Solve for one of the integrals (this is the key step!):

\[ \int uv'\,dx = uv - \int u'v\,dx \]

๐ŸŽ‰ Step 5 โ€” Rename things

We usually write:

  • dv=vโ€ฒdx
  • du=uโ€ฒdx

So the formula becomes:

\[ \boxed{\int u\,dv = uv - \int v\,du} \]

๐Ÿ’ก Whatโ€™s really happening?

You are:

๐Ÿ‘‰ moving the derivative from one function to the other

  • u gets differentiated โ†’ becomes simpler
  • dv gets integrated โ†’ becomes v

๐Ÿง  Intuition (connected to our Fourier example)

In our problem:

\[ \int x\sin(nx)\,dx \]

You chose:

  • \( u=x \to \) gets simpler when differentiated
  •  \( dv=\sin(nx)\,dx \to \) easy to integrate

So integration by parts turns a hard product into an easier one.

๐Ÿงพ One-Sentence Intuition

Integration by parts is just the product rule written backwards, used to simplify integrals of products.

Hint 4: ๐Ÿ“˜Integrating cos(nx): Why Do We Divide by n?

Why is

\[ \int \cos(nx)\,dx = \frac{\sin(nx)}{n}? \]

๐ŸŒฑ Step 1 โ€” Start from something we know

You know:

\[ \frac{d}{dx}\sin(x)=\cos(x) \]

๐Ÿ”„ Step 2 โ€” What about sin(nx)?

Use the chain rule:

\[ \frac{d}{dx}\sin(nx)=n\cos(nx) \]

๐Ÿ‘‰ Notice the extra factor n

โœ‚๏ธ Step 3 โ€” Fix the extra n

We want just cos(nx), not ncos(nx)

So divide by n:

\[ \frac{d}{dx}\left(\frac{\sin(nx)}{n}\right)=\cos(nx) \]

๐ŸŽ‰ Step 4 โ€” Reverse the derivative

If the derivative of something is cos(nx), then:

\[ \int \cos(nx)\,dx = \frac{\sin(nx)}{n} \]

Hint 5: ๐Ÿ“˜Simplifying cos(nฯ€)

Why Is

\[ \cos(n\pi)=(-1)^{n}\,?\]

Step 1 โ€” Look at the first few values

Evaluate cosine at multiples of ฯ€:

\[ \cos(0)=1 \\
\cos(\pi)=-1 \\
\cos(2\pi)=1 \\
\cos(3\pi)=-1 \]

So the values alternate:

\[ 1,\,-1,\,1,\,-1,\dots \]

Step 2 โ€” Recognize the pattern

The sequence \( (-1)^{n} \) produces exactly the same alternation:

  • \( (-1)^{0} = 1 \)
  • \( (-1)^{1} = -1 \)
  • \( (-1)^{2} = 1 \)
  • \( (-1)^{3} = -1 \)

So:

\[ \cos(n\pi)=(-1)^n \]

Step 3 โ€” Geometric Intuition (Unit Circle)

On the unit circle:

  • Angle 0 points to (1,0)
  • Angle ฯ€ points to (-1,0)
  • Angle 2ฯ€ points back to (1,0)
  • Angle 3ฯ€ points to (-1,0)

Cosine is the x-coordinate, so it alternates between: 1 and -1

One-Sentence Intuition

Every time you move another half-turn (ฯ€) around the unit circle, cosine flips sign.

Hint 6: ๐Ÿ“˜ Advanced intuition: differential-form view.

Why Is

\[ \int u\,dv = uv-\int v\,du\,? \]

It comes directly from the product rule for derivatives.

๐ŸŒฑ Step 1 โ€” Start from the Product Rule

If two functions are multiplied:

\[ u(x)\cdot v(x) \]

their derivative is:

\[ \frac{d}{dx}(uv)=u\frac{dv}{dx}+v\frac{du}{dx} \]

This says:

  • keep the first function
  • differentiate the second
  • PLUS
  • keep the second function
  • differentiate the first

๐Ÿ”„ Step 2 โ€” Explain the derivatives

The notation \( \frac{dv}{dx} \) means:

  • the derivative of v with respect to x
  • how fast v changes when x changes.

Suppose:

  • x changes by a tiny amount dx
  • then v changes by a tiny amount dv

The derivative tells us approximately:

\[ \frac{dv}{dx}=\frac{\text{change in v}}{\text{change in x}} \]

โญ Step 3 โ€” Applying this mysterious conversion:

\[ \frac{dv}{dx}dx=\frac{dv}{dx}dx=dv \]

Written more naturally:

\[ dv=\frac{dv}{dx}dx \]

The same idea gives:

\[ du=\frac{du}{dx}dx
\quad\text{and}\quad
d(uv)=\frac{d}{dx}(uv)dx \]

๐ŸŒฑ Step 4 โ€” Turning the Product Rule Into Differential Form

Starting from the product rule:

\[ \frac{d}{dx}(uv)
=
u\frac{dv}{dx}
+
v\frac{du}{dx} \]

Multiply everything by dx:

\[ \frac{d}{dx}(uv)\,dx
=
u\frac{dv}{dx}dx
+
v\frac{du}{dx}dx \]

Using the above differential identities:

\[ dv=\frac{dv}{dx}dx
\quad\text{and}\quad
du=\frac{du}{dx}dx
\quad\text{and}\quad
d(uv)=\frac{d}{dx}(uv)dx \]

Substitute these into the equation.

\[ \frac{d}{dx}(uv)\,dx
=
u\frac{dv}{dx}dx
+
v\frac{du}{dx}dx \]

results in

\[ d(uv)=u\,dv+v\,du \]

๐ŸŒŠ What Does This Mean Intuitively?

This equation says:

  • the tiny change in the product uv

comes from:

  • changing v while keeping u
  • PLUS
  • changing u while keeping v

๐Ÿง  Beginner Intuition

You can think of:

  • du = informally a very small change in u
  • dv = informally a very small change in v 
  • d(uv) = informally a very small change in the product uv

So:

\[ d(uv)=u\,dv+v\,du \]

is just the product rule written using tiny changes instead of derivative notation.

๐Ÿ’ก One-Sentence Summary

Using differential notation, we can rewrite the product rule in a form that naturally leads to integration by parts using differential notation to rewrite derivative expressions in a compact form.

โœ‚๏ธ Step 5 โ€” Isolate the Term udv

We want a formula for:

\[ \int_{}^{}udv \]

So move vdu to the other side:

\[ u\,dv=d(uv)-v\,du \]

๐Ÿงฎ Step 6 โ€” Integrate Everything

\[ \int u\,dv
=
\int d(uv)-\int v\,du \]

๐Ÿ” Step 7 โ€” Simplify the Middle Integral

Integrating an exact differential recovers the original function (up to a constant):

\[ \int d(uv)=uv+C \]

So the equation becomes:

\[ \int u\,dv = uv-\int v\,du \]

๐ŸŒŠ What Does This Formula Mean?

Integration by parts transforms:

  • one difficult integral
    into
  • another (hopefully easier) integral.

You:

  1. differentiate one part (u)
  2. integrate the other part (dv)

๐Ÿ’ก Simple Example Idea

If you have:

\[ \int x\cos(x)\,dx \]

then:

  • differentiating x makes it simpler
  • integrating cos(x) is easy

So integration by parts reduces the difficulty.

Back to the Fourier series explained tutorial list

Back to the tutorial list

Author

 

Categories
Science
Sun, 05/24/2026 - 16:46

Managed ad1

RSS feed
Powered by Drupal