# Sheet 10 a) Express the function Example 1. 

advertisement ```Sheet 10
Example 1. a) Express the function
f (x) =

−1








 4
if
0≤x&lt;
1
4
if
1
4
≤x&lt;
1
2
2
if
1
2
≤x&lt;
3
4
−3
if
3
4
≤x&lt;1









in terms of the building blocks {φ(22x), φ(22 x &plusmn; 1), φ(22 x &plusmn; 2) . . . } of V2 . Check your answer
by having Matlab plot it.
b) Find the wavelet decomposition; that is, express f = w0 + w1 + f0 , where w0 ∈ W0 ,
w1 ∈ W1 and f0 ∈ V0 . Check your answer by plotting it.
Example 2. a) Express the function
f (x) =

2








 −3
if
0≤x&lt;
1
4
if
1
4
≤x&lt;
1
2
1
if
1
2
≤x&lt;
3
4
3
if
3
4
≤x&lt;1









in terms of the building blocks of V2 and check your answer as above.
b) Find the wavelet decomposition and check your answer.
Example 3. Repeat this for the function
 3

2







− 21





1
f (x) =






−2






 1
2
if
−1 ≤ x &lt; − 34
if
− 34 ≤ x &lt; − 12
if
− 41 ≤ x &lt; 0
if
1
2
≤x&lt;
3
4
if
1≤x&lt;
5
4
```