I found an example at the following URL that asks for the Fourier Transform of $f(t) = 2t-3$ for 0 < t < 3/2, for all other values of t, f(t) = 0 : http://www.usciences.edu/~lvas/MathMethods/fourier.pdf
Their solution approximates this as an even function because it uses the cosine transform but it is obviously a piece wise function that looks like a triangle. When i approached this solution i did not think of doing this because it isnt even at first glance to me.
If they can just use the cosine transform then why couldnt they just use the sine transform since we have no other information as to what happens with x less than zero.
Why are they able to do this?
Thank you.
Firstly, their solution does not approximate anything. As said in http://www.usciences.edu/~lvas/MathMethods/fourier.pdf, page 13, I quote from it " suppose that $f(t)$ is defined just for $t>0$. We can extend $f(t)$ so that it is even.
Please note the word "extend" (not approximate). Since $f(t)$ is defined for $t>0$, we extend to the negative side and think of it as an even function. Since $f(t)$ is even, then
$F(\omega)=\frac{1}{\sqrt{2 \pi}}\int_{-3/2}^{3/2} f(t) e^{-jwt}dt= 2\frac{1}{\sqrt{2 \pi}}\int_{0}^{3/2} f(t) cos(wt)dt$.
We could use sine transform if we extend the function $f(t)$ as an odd function. I hope you can try that yourself.