1. Sine and Cosine decomposition.
Suppose you are given a function on an interval, f(x):[0,1]→R. Such function f(x) can be expressed as a sum of 'sine waves' and cosine waves and constant
f(x)=a0+n=1∑∞ancos(2nπx)+bnsin(2nπx).
Can you figure out a way to determine the coefficients an and bn?
Test out your method for the following function
f(x)={100<x<1/21/2≤x≤1
find a0,a1,b1 and plot the truncated Fourier series
a0+a1cos(2πx)+b1sin(2πx).
How does this resemble your original given function?
2. Consider the following equation, for t>0,
f′(t)+f(t)=0
And suppose f(0)=1. Can you solve f(t) for t>0?
3. Consider the following equation, for t>0,
(d/dt+1)(d/dt+2)f(t)=0
And suppose f(0)=1,f′(0)=0. Can you solve f(t) for t>0?
4. Consider the following equation, for t>0,
[(d/dt)2+1]f(t)=0
And suppose f(0)=1,f′(0)=0. Can you solve f(t) for t>0?
5 (bonus, optional). Consider the following equation, for t>0,
(d/dt+1)(d/dt+1)f(t)=0
And suppose f(0)=1,f′(0)=0. Can you solve f(t) for t>0?
So far, we have learned many transformations and inverse transformation. Conceptually, we are just trying to decompose a given function f(x) as a linear combination of eax for various a. Because it is an eigenfunction of (d/dx):
(d/dx)eax=aeax
Ex 1
Decomposition of a standing wave with Dirichlet condition. When we pluck a string on a violin, the string vibrate with the endpoints fixed.
Suppose the string's length is L, and you took a snapshot of the string and obtained the vertical displacement as a function f:[0,L]→R (yes, it is R valued, not C valued).
Design a way to do Fourier decomposition of f.
If you like, pick L=2 and
f(x)=1−∣x−1∣.
(just a linear peak).
Ex 2
Damped oscillation, reverse engineering.
Suppose you observe some damped oscillation that goes like
f(t)=Ae−atsin(bt),t>0
Can you find the second order equation that f(t) satisfies? Namely, for what constant A,B does f(t) satisfies the equation?
f“(t)+Af′(t)+Bf(t)=0.
If you like, pick a=1,b=2.
Ex 3
Tuning the friction.
Consider the pure oscillation equation:
f”(t)+ω2f(t)=0
it has solution like f(t)=asin(ωt)+bcos(ωt).
What happens if we add some friction term?
f“(t)+af′(t)+ω2f(t)=0
does it matter if
a is positive or negative?
does it matter if
a is small or large?
Make a guess first. Then solve it explicitly, for ω=1, and try various a.
Hint: Is there a 'planewave' that solves the equation, i.e. somethign like ect for some c?
You received the following a periodic sequence of numbers,
Use discrete Fourier transformation to analyse it.
You can use this input number to as values of
f(x) for
x=0,1,⋯,8.
you know
f(x) can be written as
f(x)=p=0∑8F(p)e2πi(xp/9)
Can you find F(p)?
These
f(x) are all real valued, what does that say about
F(p)? (try to take complex conjugate of the equation)
Can you guess, which
∣F(p)∣s are largest?
If you have done the above exercise, try this one
(Due next Wednesday)
We will use the Boas convention for Fourier transformation (or see Friday's note).
1. Discrete Fourier Transformation for N=3. Suppose f(x) is given by
f(x)=δx,0
where δi,j=0 is i=j and =1 if i=j.
Find the Fourier transformation F(p). (You discovered that 'peak function' in x space is sent to 'planewave' in p space. )
What function f(x) will have Fourier transformation F(p)=δp,0?
2. Recall that if f(x)=1/(1+x2), then its Fourier transformation is F(p)=(1/2)e−∣p∣. Can you verify Parseval's Equality in this case?
3. Let f(x)=1 for x∈[0,1]. Compute the convolution (f⋆f)(x). Can you plot it? What's the Fourier transformation of f and f⋆f? (The one for f is already done in HW6).
Parseval Equality says, Fourier transformation, as a linear map from one function space (function on x), to another function space (function on p), preserves 'norm'. Norm is just a fancy way of saying 'length of a vector'.
What do we mean by the length of a function?
FT Conventions
Continuous Fourier transformation (OK, I switched to Boas convention)
f(x)=∫RF(p)eipxdp.
F(p)=(1/2π)∫Rf(x)e−ipxdx.
Discrete Fourier transformation
Fix a positive integer N. x,p are valued in the 'discretized circle'
Z/NZ≅{0,1,⋯,N−1}.
f(x)=p∈Z/NZ∑F(p)e2πi⋅px/N.
F(p)=(1/N)x∈Z/NZ∑f(x)e−2πi⋅px/N.
Let f(x) be a complex valued function on x∈R, we define
∥f∥x2:=(1/2π)∫R∣f(x)∣2dx
Let F(p) be a complex valued function on p∈R, we define
∥F∥p2:=∫R∣F(p)∣2dp
∥f∥x2:=(1/N)x=0∑N−1∣f(x)∣2
Let F(p) be a complex valued function on p∈R, we define
∥F∥p2:=p=0∑N−1∣F(p)∣2
Parseval Equality
If F(p) is the Fourier transformation of f(x), then ∥F∥p2=∥f∥x2.
We proved in class the discrete case. The continuous case is similar in spirit, but harder to prove.
Convolution
Consider two people, call them Alice and Bob, they each say an integer number, call it a and b. Suppose a and b both have equal probability of taking value within {1,2,⋯,6}, we can ask what is the probabity distribution of a+b?
We know P(a=i)=1/6, P(b=i)=1/6 for any i=1,⋯,6, otherwise the probabilit is 0. Then
P(a+b=k)=i+j=k∑P(a=i)P(b=j).
This is an instance of convolution.
convlution in x space
Convolution is usually denoted as ⋆.
If f and g are functions on the x space, then we define
(f⋆g)(x)=∫x1f(x1)g(x−x1)dx1
If F and G are functions on the p space, then we define
(F⋆G)(p)=∫p1F(p1)G(p−p1)dp1
Fourier transformation sends convolution of functions on one side to simply multiplication on the other side.
(1/2π)FT(f⋆g)=F⋅G.
FT(f⋅g)=F⋆G.
Definition
Given a function f(t) on the positive real line t>0, we can define the following function of p:
F(p)=∫t=0∞f(t)e−ptdt.
Again, we require the function f(t) to have moderate growth at t→∞ for the integral to be well-defined.
Examples
f(t)=1,
F(p)=1/p, valid for
Re(p)>0
f(t)=eat,
F(p)=1/(p−a),valid for
Re(p−a)>0.
f(t)=cos(at),
F(p)=(1/2)[1/(p−ia)+1/(p+ia)]=p/(p2+a2). valid for
Re(p)>0 if
a is real.
That was about function with (linear) exponential decay or growth at infinty
How about Gaussian?
If
f(t)=e−t2, then
F(p)=∫0∞e−t2e−ptdt=∫0∞e−(t+p/2)2+p2/4dt=ep2/4∫p/2∞e−t2dt.
OK, that's not nice, you can express the result using Gaussian error function, which is about ∫0ae−t2dt, but let's not worry about it.
How about rational function?
If
f(t)=1/(1+t), we know
F(p) exists, and it is holomorphic (at least) for
Re(p)>0.
properties
Suppose we know the Laplace transform of f(t), let's denote F=LT(f) (note we just write the name of the function f, not including its input variables t). What can we say about LT(f′)?
We can do integration by part
LT(f′)=∫0∞e−ptdtdfdt=∫t=0t=∞e−ptdf=∫t=0t=∞d[e−ptf]−d[e−pt]f=e−ptf(t)∣0∞+∫0∞pe−ptf(t)dt=−f(0)+pF(p).
inverse?
f(t)=2πi1∫c−i∞c+i∞eptF(p)dp.c≫0
We want to take c large enough so that there is no singularity of F(p) for Re(p)>c.
For example, if F(p)=1/p, or 1/(p−a), we can get f(t)=1 and f(t)=eat respectively.
If you have a differential equation about f(t) on some domain t>0, and you know the initial conditions, say f(t=0) etc, then you can use it to compute the Laplace transform of f. We have
Example
f′(t)+f(t)=3,f(0)=1
We apply Laplace transform to the equation, we get
pF(p)−f(0)+F(p)=3/p.
Then, we get
F(p)(p+1)=(3/p+1)⇒F(p)=p(p+1)3+p
Then, we may apply the inverse Laplace transformation, to get
f(t)=Resp=0(eptp(p+1)3+p)+Resp=−1(eptp(p+1)3+p)=0+1e0t(3+0)+e1t−13−1=−2e−t+3.
Double check
f′(t)+f(t)=2e−t+(−2e−t+3)=3,f(0)=1.
yeah.