Integration by Parts: Solve ∫cos(x)cos(kx)dx

Click For Summary
SUMMARY

The integral ∫cos(x)cos(kx)dx can be solved using integration by parts, specifically the formula ∫f(x)g(x)dx = f(x)G(x) - ∫f'(x)G(x)dx. The user successfully derived the first part of the solution as (cos(x)sin(kx))/k - ∫(-sin(x)sin(kx))/k dx but struggled with the subsequent integration involving two sine functions. The discussion emphasizes the importance of recognizing the periodic properties of sine functions, particularly sin(kπ) = 0, which plays a crucial role in determining the coefficients a_k for Fourier series.

PREREQUISITES
  • Integration by Parts
  • Fourier Series Fundamentals
  • Properties of Sine and Cosine Functions
  • Definite Integrals
NEXT STEPS
  • Study the application of Integration by Parts in solving trigonometric integrals.
  • Learn how to derive Fourier coefficients a_k and a_0 for periodic functions.
  • Explore the implications of sin(kπ) = 0 in Fourier series calculations.
  • Review techniques for integrating products of sine and cosine functions.
USEFUL FOR

Students studying calculus, particularly those focusing on Fourier series and integration techniques, as well as educators seeking to clarify integration by parts and its applications in trigonometric contexts.

8700
Messages
25
Reaction score
1

Homework Statement


Hello!

I am having some trouble solving this integral by parts. I hope someone can help me.

##\int \cos(x)cos(kx) dx##

It is need for a Fourier series

Homework Equations


I am using this definition:

##\int f(x)g(x) dx = f(x)G(x)-\int f'(x)G(x) dx##

since its an even function i need to find ##a_k## and ##a_0##, I've found ##a_0## no worries about that.

The Attempt at a Solution

[/B]

##\int f(x)g(x) dx = \frac{cos(x)sin(kx)}{k} - \int \frac{-sin(x)sin(kx)}{k}##

I can't remember/see the next rule of integration when having two sin functions. Or am i doing something wrong?
 
Last edited:
Physics news on Phys.org
Any particular knowledge about k you can share with us ?

Oh, and: use the template !
 
k is just an integer that's about it.

I'll remember that next time.
 
So what do you do when k = 1 ?
Next question: what do you do when k = 2 ?
And you can guess the third question, right ?
 
I need it for a Fourier series where the inteval is from [0, ##\pi## ]. f(x)=cos(x) so it is an even function which means i need to calculate ##a_0## and ##a_k##.

It is ##a_k## who i am trying to calculate right now by parts, but i am stuck at it.
 
Last edited:
Ah, so it concerns integrals with definite limits. Also something that would have been clearly described under 1.
And you would have provided some relevant equations under 2. e.g. ##\sin k\pi=0##, etc.

Never too late to catch up!

Homework Statement

Homework Equations

The Attempt at a Solution



Have to go now, perhaps others can take over...
 
yeah sorry!

Actually that is what confuses me. if ##\sink\pi=0## then there is only ##\frac{cos(x)sin(kx)}{k}## left? Does that mean that this is my ##a_k##??
 
Last edited:
so when taking the interval into account i get the result ##a_k=\frac{-sin(k\pi)}{k}## which is wroooong
 
Last edited:
8700 said:

The Attempt at a Solution

[/B]

##\int f(x)g(x) dx = \frac{cos(x)sin(kx)}{k} - \int \frac{-sin(x)sin(kx)}{k}##

I can't remember/see the next rule of integration when having two sin functions. Or am i doing something wrong?

The new integral looks very much like the initial one, only using sin() rather than cos(). Your instinct should be to apply Integration by Parts again, leading to something of the form:

f(x) = g(x) - c*f(x)

from which you can isolate f(x).
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
2K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
9
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
Replies
3
Views
2K
Replies
7
Views
2K