Fourier Series

Thread Starter

Lightfire

Joined Oct 5, 2010
690
I'm fairly new to this topic. I have not yet studied the first topics in the Differential Equation but I decided to study this first. I don't know why. But I do hope you'll help me understand this.

Problem: Suppose that f(x) has period 2 and that



f(x) = 0 ; -1 ≤ x ≤ 0
= 1 ; 0 < x < 1



What is the value of L in that? In the video it says it's 1. But how come 1 is the value of L? What is L?

L is from the equation



Thank you very much and I do hope you can help me.
 

Thread Starter

Lightfire

Joined Oct 5, 2010
690
I have another question:



I do understand that the indefinite integral of cos is sin so okay.

But I am confused how nπx has a indefinite integral of nπx/nπ. I know it used u-substitution. But I am somewhat confused.
 

WBahn

Joined Mar 31, 2012
30,060
Isn't it π?
No, it's not π (though, because there are no units anywhere, you could create a unit that would result in the numerical value being π in that unit compared to it being 2 in whatever units it is actually in.

Actually, Units Nazi that I am, L just has to have the same units as x and both can carry their units without having to explicitly indicate them. So the problem, as given, is internally consistent.
 

WBahn

Joined Mar 31, 2012
30,060
I have another question:



I do understand that the indefinite integral of cos is sin so okay.

But I am confused how nπx has a indefinite integral of nπx/nπ. I know it used u-substitution. But I am somewhat confused.
It's not that nπx has an integral of nπx/nπ. It's that what you have is

\(
\int \cos(u)du = \sin(u) + C
\)

But you don't have that, you have

\(
\int \cos(ax)dx
\)

So you need to get it into the form of the former in order to use that rule.

If you have u=ax, the du = a dx. So you can rewrite your integral as

\(
\int \cos(ax)\frac{a dx}{a} \ = \ \frac{1}{a}\int \cos(ax) (a dx) \ = \ \frac{1}{a} \sin(ax) + C
\)
 

Thread Starter

Lightfire

Joined Oct 5, 2010
690
It's not that nπx has an integral of nπx/nπ. It's that what you have is

\(
\int \cos(u)du = \sin(u) + C
\)

But you don't have that, you have

\(
\int \cos(ax)dx
\)

So you need to get it into the form of the former in order to use that rule.

If you have u=ax, the du = a dx. So you can rewrite your integral as

\(
\int \cos(ax)\frac{a dx}{a} \ = \ \frac{1}{a}\int \cos(ax) (a dx) \ = \ \frac{1}{a} \sin(ax) + C
\)
I knew differentiation but suppose I have a function ax, is its derivative a dx?

Does ax represents the nπ?

Can you tell me how you did go from and to \(\ \frac{1}{a}\int \cos(ax) (a dx) \ = \ \frac{1}{a} \sin(ax) + C
\)?

Thank you.
 

shteii01

Joined Feb 19, 2010
4,644
Can you tell me how you did go from and to \(\ \frac{1}{a}\int \cos(ax) (a dx) \ = \ \frac{1}{a} \sin(ax) + C
\)?

Thank you.
He did the u thing.

Remember, he defined u=ax. Then he took derivative, du=adx. Now replace ax with u, and adx with du. Now you have a constant, 1/a, times integral of cos(u)du, the result is constant times sin(u). Now take the result and replace u with ax, you have constant times sin(ax).
 

Thread Starter

Lightfire

Joined Oct 5, 2010
690
He did the u thing.

Remember, he defined u=ax. Then he took derivative, du=adx. Now replace ax with u, and adx with du. Now you have a constant, 1/a, times integral of cos(u)du, the result is constant times sin(u). Now take the result and replace u with ax, you have constant times sin(ax).
I really cannot follow. Can you give me a link that has this topic so I can write.

What is ax? Is it the nπx, where nπ acts as the a and x as the x?
 

WBahn

Joined Mar 31, 2012
30,060
I really cannot follow. Can you give me a link that has this topic so I can write.

What is ax? Is it the nπx, where nπ acts as the a and x as the x?
Yes. In integration tables (and most math in general) letters near the beginning of the alphabet represent constants. So 'a' is a constant that, in this case, happens to be equal to 'nπ', which is just another constant (as far as the integral is concerned, meaning that it does not depend on 'x').
 

Thread Starter

Lightfire

Joined Oct 5, 2010
690
Yes. In integration tables (and most math in general) letters near the beginning of the alphabet represent constants. So 'a' is a constant that, in this case, happens to be equal to 'nπ', which is just another constant (as far as the integral is concerned, meaning that it does not depend on 'x').
So do you mean that 'nπ' represents (or should be treated) as a single constant?
 

Thread Starter

Lightfire

Joined Oct 5, 2010
690
It's not that nπx has an integral of nπx/nπ. It's that what you have is

\(
\int \cos(u)du = \sin(u) + C
\)

But you don't have that, you have

\(
\int \cos(ax)dx
\)

So you need to get it into the form of the former in order to use that rule.

If you have u=ax, the du = a dx. So you can rewrite your integral as

\(
\int \cos(ax)\frac{a dx}{a} \ = \ \frac{1}{a}\int \cos(ax) (a dx) \ = \ \frac{1}{a} \sin(ax) + C
\)
\(
\int \cos(ax)\frac{a dx}{a} \ = \ \frac{1}{a}\int \cos(ax) (a dx) \ = \ \frac{1}{a} \sin(ax) + C
\)

Why did you divide adx by a? Is it because for the reason that adx should be just 'dx' so it can act as if it means with 'respect to x'?

So am I correct with this?

\(
\int \cos(ax)\frac{dx}{a} \ = \ \int \frac{1}{a} \cos(ax) (dx) \ = \ \frac{1}{a}\int \cos(ax) (dx) \ = \ \frac{1}{a} \sin(ax) + C
\)

So what happened in 1/a is it just moved outside the integral sign since it is a constant. Am I correct with this?

Thanks.

P.S.: Okay I misunderstood that. But I better leave my original post.

New Question. Why 'adx' and not just 'dx', is it because of the 'a' in the ax?
 

WBahn

Joined Mar 31, 2012
30,060
You can't change the original equation but you can multiply it by 1 all day long without changing it. Well, (a/a) is 1. So I multiplied by (a/a) and then grouped the numerator with dx and brought the denominator outside the integral.

What is the derivative of ax? It's adx, right?

d(ax)/dx = a

therefore

d(ax) = a dx
 

Thread Starter

Lightfire

Joined Oct 5, 2010
690
Okay. I have found out that for every constant a, the indefinite integral of cos(ax) is (sin ax)/a + C. The same holds true for other simple trigonometric function. Like sin(ax) is -[(cos ax)/a)].

What is d(ax)/dx = a?

How do you read that and what is that?

Sorry.
 

WBahn

Joined Mar 31, 2012
30,060
The derivative of 'a' times 'x' taken with respect to 'x' is 'a'.

I think you need to spend some time learning what derivatives and integrals are. You goal should be to be able to derive the result that the indefinite integral of cos(ax) is sin(ax)/a plus an arbitrary constant.
 

Thread Starter

Lightfire

Joined Oct 5, 2010
690
Please spare me some of your valuable time to check my solution in a fourier series problem given.

Thank you!:D

The problem is attached as pdf..

EDIT: THERE ARE ERRORS

the second to the last expression should be






EDIT I Have attached the corrected format of my work http://forum.allaboutcircuits.com/attachment.php?attachmentid=65153&d=1393062237

I graphed it and there seems to be an error. I don't know where. I'll come back as soon as possible.....
 

Attachments

Last edited:
Top