Simplifying Integrals with Coefficients

In summary: If you want to find the general term, you should first cancel out the sum. To do this, you need to find the inverse of ## \int_{-1} ^1 P_n (x) f(x) dx##.
  • #1
MathewsMD
433
7
For the question attached in the file, how exactly does one go about finding a solution? Problem 28 says that if n does not equal m, then ## \int_{-1} ^{1} {P_n}{P_m} = 0 ##

With that statement, I've tried treating this as a Taylor series (centred at 0, arbitrarily) and then trying to find a general term that would allow me to isolate for ## a_k ## but that was unsuccessful.

Since ## P_k (x) ## and ## f(x) ## have similar orders, can I assume ## \int_{-1} ^{1} {P_k (x)}{f(x)} = 0 ##? This doesn't really help, unless I want the trivial solution for ## a_k = 0##

I also tried substituting the ##a_k## term into the sum to show the two sides are equivalent, but end up with ## f(x) = \sum [{P_k} \int_{-1} ^{1}f(x){P_k}(x)]## but I can't quite do anything with this either.
I just don't quite see how the above statement from Problem 28 is useful in this problem, and am uncertain on how to proceed. Any hints or explanations would be greatly appreciated!
 

Attachments

  • Screen Shot 2014-11-07 at 11.03.49 PM.png
    Screen Shot 2014-11-07 at 11.03.49 PM.png
    5.4 KB · Views: 479
Last edited:
Physics news on Phys.org
  • #2
It may be easier to see if I adjust the notation a tad:
You have (1) ##f(x)=\sum_{n=0}^N a_nP_n(x)##, and (2) ##\int_{-1}^1 P_nP_m\;dx = 0:n\neq m## (wat happens for n=m?)
Your task is to find the kth coefficient in (1) exploiting the property in (2). (Do you know anything else about P?)
Note: ##\int_{-1}^1 P_k(x)f(x)\;dx \neq 0##
 
  • #3
Simon Bridge said:
It may be easier to see if I adjust the notation a tad:
You have (1) ##f(x)=\sum_{n=0}^N a_nP_n(x)##, and (2) ##\int_{-1}^1 P_nP_m\;dx = 0:n\neq m## (wat happens for n=m?)
Your task is to find the kth coefficient in (1) exploiting the property in (2). (Do you know anything else about P?)
Note: ##\int_{-1}^1 P_k(x)f(x)\;dx \neq 0##

Do you have any relatively simple proofs for when m = n? I have searched a few and couldn't quite get one with the similar strategy used for ## m \neq n## and the ones for when m = n seem a little longer than what I was expecting.

Also, if I just multiply by ## P_n (x) ##, can I just integrate both sides then and then include ## P_n (x) ## with the sum terms? Then, uses the the property of it equaling for 2/(2n+1) for m = n, this does seem to make sense.
 
  • #4
Simon Bridge said:
It may be easier to see if I adjust the notation a tad:
You have (1) ##f(x)=\sum_{n=0}^N a_nP_n(x)##, and (2) ##\int_{-1}^1 P_nP_m\;dx = 0:n\neq m## (wat happens for n=m?)
Your task is to find the kth coefficient in (1) exploiting the property in (2). (Do you know anything else about P?)
Note: ##\int_{-1}^1 P_k(x)f(x)\;dx \neq 0##

How exactly does multiplying a sum by a function, and then integrating, work? When you multiply 2 functions, and then integrate, is this analogous to taking the sum of the the two products? If one of the functions is a sum itself, can the initial sum of terms be taken out (e.g. ## f(x)=\sum_{n=0}^N a_nP_n(x) ## and ## g(x) = h(x)f(x)## ; ##\int_{-1}^1 g(x) = h(x)f(x) = \sum_{k=0}^K h(x)a_nP_n(x) ## OR is it ## \int_{-1}^1 g(x) = h(x)f(x) = \sum_{k=0}^K h(x)\sum_{n=0}^Na_nP_n(x) = \sum_{k=0}^K \sum_{n=0}^N h(x)a_nP_n(x) ##
OR none of the above)?

I'm trying to manipulate the equation, but am a little uncertain on the valid operations regarding sum and integral combinations.
 
  • #5
How exactly does multiplying a sum by a function, and then integrating, work?
Well is ##f=2x^2## and ##g=3x^3## then ## h=fg=6x^5## and ##\int h\;dx = \int fg\;dx = x^6+c##... that's how it works.
You don't need analogies - just do it: concentrate on what is in front of you.

Note: if ##f = \sum_n g_n## then ##\int f\;dx = \int \sum g_n\;dx = \sum \int g_n\;dx##

It's more difficult to help you if you don't answer questions.
 
  • #6
Simon Bridge said:
Well is ##f=2x^2## and ##g=3x^3## then ## h=fg=6x^5## and ##\int h\;dx = \int fg\;dx = x^6+c##... that's how it works.
You don't need analogies - just do it: concentrate on what is in front of you.

Note: if ##f = \sum_n g_n## then ##\int f\;dx = \int \sum g_n\;dx = \sum \int g_n\;dx##

It's more difficult to help you if you don't answer questions.

Ok, thank you for the feedback! I did this:

Multiply both sides by ## P_n (x) ## to get:

## P_n (x) f(x)= P_n (x) \sum_{n=0}^N a_nP_n(x)## Then I integrated both sides wrt x, from -1 to 1.

## \int _{-1} ^1 P_n (x) f(x)= \int _{-1} ^1 P_n (x) dx \sum_{n=0}^N a_nP_n(x)##

## \int _{-1} ^1 P_n (x) f(x)= \sum_{n=0}^N a_n \int _{-1} ^1 P_n (x)P_n(x) dx ##

## \int _{-1} ^1 P_n (x) f(x)= \sum_{n=0}^N [\frac {2}{2n+1}a_n]##

But I want to find value for the general ##a_n## term, not for the sum of n terms of a up to n. How exactly do I cancel out the sum to find the general term? Have I done anything incorrect so far?
 
  • #7
You want:
$$\int_{-1}^1 P_k(x)f(x)\;dx = \sum_{n=0}^N a_n \int_{-1}^1 P_k(x)P_n(x)\;dx$$ ... which is why I asked about what happens when n=k.
 
  • #8
Simon Bridge said:
You want:
$$\int_{-1}^1 P_k(x)f(x)\;dx = \sum_{n=0}^N a_n \int_{-1}^1 P_k(x)P_n(x)\;dx$$ ... which is why I asked about what happens when n=k.

Hmmm..okay. I know that ## \int_{-1}^1 P_k(x)P_n(x)dx = \frac {2}{2n+1}## for ## k = n ##, but from here (I may just be missing something extremely obvious) I am a little lost. I can't seem to separate the ## \sum_{n=0}^N \frac {2}{2n+1}a_n ## and isolate for simply ##a_n## in ##\int_{-1}^1 P_k(x)f(x)\;dx = \sum_{n=0}^N \frac {2}{2n+1}a_n## . I just don't quite see how to break up the series and find the general expression for an arbitrary a term. Any hints?
 
  • #9
I know that ##\int_{-1}^1 P_kP_n\;dx = \frac{2}{2n+1}## for k=n ...
... you've got it back to front.
In the equation it is n that varies and k that is fixed. What happens when n=k in the sum?

$$\int_{-1}^1 P_kf(x)\;dx \neq \sum_{n=0}^N \frac{2}{2n+1}a_n$$ ... the step right before that one was wrong.

Go back to the last equation I posted and get rid of the summation symbol on the RHS by expanding it explicitly into each term.
What happens to all the terms where ##n\neq k##?
 
  • #10
Simon Bridge said:
... you've got it back to front.
In the equation it is n that varies and k that is fixed. What happens when n=k in the sum?

$$\int_{-1}^1 P_kf(x)\;dx \neq \sum_{n=0}^N \frac{2}{2n+1}a_n$$ ... the step right before that one was wrong.

Go back to the last equation I posted and get rid of the summation symbol on the RHS by expanding it explicitly into each term.
What happens to all the terms where ##n\neq k##?

Ahh yes, sorry. I had just mixed up my notation.
 
  • #11
Simon Bridge said:
... you've got it back to front.
In the equation it is n that varies and k that is fixed. What happens when n=k in the sum?

$$\int_{-1}^1 P_kf(x)\;dx \neq \sum_{n=0}^N \frac{2}{2n+1}a_n$$ ... the step right before that one was wrong.

Go back to the last equation I posted and get rid of the summation symbol on the RHS by expanding it explicitly into each term.
What happens to all the terms where ##n\neq k##?

Would the correct steps be:

## \int _{-1} ^1 P_k (x) f(x)= \sum_{n=0}^N a_n \int _{-1} ^1 P_n (x)P_k(x) dx ##

Then for k = n

## \int _{-1} ^1 P_k (x) f(x)= a_k \frac{2}{2k+1} ## which is the answer since the integral terms become 0 when ## m \neq n ##. Thank you so much for the help!
 
  • #12
No, we do not need to consider that for ##n\neq k## that ##a_n=0## ... why would you need to?
Anyway - that would invalidate the proof.

By picking the value of k, you are choosing to evaluate the coefficient of a single term in the sum.
The point of premultiplying by ##P_k## was to isolate that term.
 
Last edited:
  • #13
Simon Bridge said:
No, we do not need to consider that for ##n\neq k## that ##a_n=0## ... why would you need to?
Anyway - that would invalidate the proof.

Yes. Sorry, I saw what you were saying now. Thank you! I just want to clarify one step still, since I don't quite grasp how exactly integrals and sums are still combined.

For this step:

## \int _{-1} ^1 P_k (x) f(x)\ dx= \int _{-1} ^1 P_k (x) \sum_{n=0}^N a_nP_n(x)\ dx##

to

## \int _{-1} ^1 P_k (x) f(x)\ dx= \sum_{n=0}^N a_n \int _{-1} ^1 P_k (x)P_n(x)\ dx ##

How exactly is it allowed for me to push the integral in the sum? Is it because the ##a_n## terms are considered constant by integration wrt to x, and the ##P_k (x)## function is independent of n? Is what I did here valid?
 

1. What is the purpose of determining coefficients in scientific research?

The purpose of determining coefficients is to quantify the relationship between variables in a scientific study. Coefficients are used to describe the strength and direction of the relationship between variables, and can help researchers make predictions and draw conclusions based on their data.

2. How are coefficients calculated?

Coefficients are typically calculated using statistical methods such as regression analysis or correlation analysis. These methods involve analyzing the data to determine the best fit for a mathematical equation that describes the relationship between the variables.

3. What do the different coefficients (e.g. correlation coefficient, regression coefficient) represent?

The correlation coefficient represents the strength and direction of a linear relationship between two variables. A regression coefficient represents the change in the dependent variable for every one unit change in the independent variable. Other coefficients, such as beta coefficients, may represent the contribution of a specific variable to the overall relationship between multiple variables.

4. How do you interpret coefficients in a scientific study?

The interpretation of coefficients in a scientific study depends on the specific research question and methodology. In general, a positive coefficient indicates a positive relationship between the variables, while a negative coefficient indicates a negative relationship. The magnitude of the coefficient also reflects the strength of the relationship, with larger coefficients representing a stronger relationship.

5. Can coefficients be used to make predictions?

Yes, coefficients can be used to make predictions based on the relationship between variables in a scientific study. However, it is important to note that correlation does not necessarily imply causation, so predictions based on coefficients should be interpreted with caution and considered alongside other evidence.

Similar threads

  • Differential Equations
Replies
1
Views
1K
  • Differential Equations
Replies
15
Views
2K
  • Differential Equations
Replies
7
Views
386
  • Differential Equations
Replies
1
Views
1K
  • Quantum Interpretations and Foundations
2
Replies
35
Views
4K
  • Differential Equations
Replies
9
Views
2K
  • Calculus and Beyond Homework Help
Replies
5
Views
530
  • Differential Equations
Replies
4
Views
2K
  • Differential Equations
Replies
1
Views
662
  • Differential Equations
Replies
4
Views
2K
Back
Top