This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
math121a-f23:hw_8 [2023/10/20 21:59] pzhou |
math121a-f23:hw_8 [2023/10/24 21:43] (current) pzhou |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Homework 8 ====== | ====== Homework 8 ====== | ||
- | 1. Sine wave decomposition. | + | 1. Sine and Cosine |
- | Suppose you are given a function on an interval, $f(x): [0, 1] \to \Rf(x)f(0)=f(1)=0f(x)$ can be expressed as a sum of 'sine waves'. | + | Suppose you are given a function on an interval, . Such function can be expressed as a sum of 'sine waves' |
- | + | ||
- | Can you figure out a way to determine the coefficients $c_n$? | + | |
+ | |||
+ | Can you figure out a way to determine the coefficients $a_nb_n$? | ||
+ | |||
+ | Test out your method for the following function | ||
+ | f(x) = \begin{cases} 1 & 0 < x < 1/2 \cr | ||
+ | 0 & 1/2 \leq x \leq 1 | ||
+ | \end{cases} | ||
+ | |||
+ | |||
+ | find and plot the truncated Fourier series | ||
+ | a_0 + a_1 \cos(2 \pi x) + b_1 \sin(2 \pi x). $$ | ||
+ | How does this resemble your original given function? | ||
+ | |||
+ | |||
Line 12: | Line 25: | ||
And suppose . Can you solve for ? | And suppose . Can you solve for ? | ||
+ | |||
3. Consider the following equation, for , | 3. Consider the following equation, for , | ||
Line 18: | Line 32: | ||
4. Consider the following equation, for , | 4. Consider the following equation, for , | ||
- | (d/dt + 1) (d/dt + 1) f(t) = 0 | + | [(d/dt)^2 + 1] f(t) = 0 |
And suppose $f(0) = 1, f' | And suppose $f(0) = 1, f' | ||
- | 5. Consider the following equation, for , | + | 5 (bonus, optional). Consider the following equation, for , |
- | [(d/dt)^2 + 1] f(t) = 0 | + | (d/dt + 1) (d/dt + 1) f(t) = 0 |
And suppose $f(0) = 1, f' | And suppose $f(0) = 1, f' | ||