Fourier series of piecewise function, special case












0












$begingroup$


I'm wondering how to find the Fourier series piecewise functions where the interval on which each of the partial functions are defined are unequal. For example:
$f(x)=begin{cases} x & 0 le x le 1 \ x^2 & 1 le xle piend{cases} $ (and let's just consider the Fourier sine series of $f$ for the sake of brevity).



What coefficient should be used before the integral of $b_n$? My guess is $1$ for $int_0^1 dots$, but I'm stuck with the coefficient before $int_1^pi dots$. Or can I just use $frac1pi$ for both integrals?



I have one more questions regarding the arguments of $sin$ in both integrals. We need $sin(npi x/L)$ when working on $[-L,L]$. But since the integrals have other lengths, I'm wondering whether I can use $sin(nx)$?



Thanks for the help!










share|cite|improve this question









$endgroup$












  • $begingroup$
    Write down the general formula for the coefficients first (expressed through $f(x)$), then substitute your particular function. The only special thing for piecewise functions is that you would need to separate the integral into two parts. The $1/ pi$ factor will stay the same
    $endgroup$
    – Yuriy S
    Jan 17 at 10:42










  • $begingroup$
    Can I use $1/pi$ when the interval is $[0,pi]$? Or should I first extend the function to make sure it is odd (since the question is about the sine series) on $[-pi,pi]$?
    $endgroup$
    – Zachary
    Jan 17 at 10:58










  • $begingroup$
    Wait a minute, how are you going to extend the function and use the sine series if your function is neither even nor odd? I think you should work on $[0, pi]$ and use the full series with both sine and cosine terms
    $endgroup$
    – Yuriy S
    Jan 17 at 11:23










  • $begingroup$
    This is what I've done: $F(x) = begin{cases} -x^2 & -pi le x le -1 \ -x & -1 le x le 0 \ x & 0 le x le 1 \ x^2 & 1 le x le pi end{cases}$. Then $b_n = frac1pi int_{-pi}^{-pi} F(x) sin(nx)dx = frac2pi int_{0}^{pi}f(x)sin(nx)dx$. And then I separated the integral into two parts. Result: $f(x) = frac{-2}{pi} sum_{n ge 1} ( frac{sin n}{n^2} + (-1)^n frac{pi^2}{n} + frac{2}{n^3} ((-1)^n - cos n))sin nx$. Which seems correct.
    $endgroup$
    – Zachary
    Jan 17 at 12:37


















0












$begingroup$


I'm wondering how to find the Fourier series piecewise functions where the interval on which each of the partial functions are defined are unequal. For example:
$f(x)=begin{cases} x & 0 le x le 1 \ x^2 & 1 le xle piend{cases} $ (and let's just consider the Fourier sine series of $f$ for the sake of brevity).



What coefficient should be used before the integral of $b_n$? My guess is $1$ for $int_0^1 dots$, but I'm stuck with the coefficient before $int_1^pi dots$. Or can I just use $frac1pi$ for both integrals?



I have one more questions regarding the arguments of $sin$ in both integrals. We need $sin(npi x/L)$ when working on $[-L,L]$. But since the integrals have other lengths, I'm wondering whether I can use $sin(nx)$?



Thanks for the help!










share|cite|improve this question









$endgroup$












  • $begingroup$
    Write down the general formula for the coefficients first (expressed through $f(x)$), then substitute your particular function. The only special thing for piecewise functions is that you would need to separate the integral into two parts. The $1/ pi$ factor will stay the same
    $endgroup$
    – Yuriy S
    Jan 17 at 10:42










  • $begingroup$
    Can I use $1/pi$ when the interval is $[0,pi]$? Or should I first extend the function to make sure it is odd (since the question is about the sine series) on $[-pi,pi]$?
    $endgroup$
    – Zachary
    Jan 17 at 10:58










  • $begingroup$
    Wait a minute, how are you going to extend the function and use the sine series if your function is neither even nor odd? I think you should work on $[0, pi]$ and use the full series with both sine and cosine terms
    $endgroup$
    – Yuriy S
    Jan 17 at 11:23










  • $begingroup$
    This is what I've done: $F(x) = begin{cases} -x^2 & -pi le x le -1 \ -x & -1 le x le 0 \ x & 0 le x le 1 \ x^2 & 1 le x le pi end{cases}$. Then $b_n = frac1pi int_{-pi}^{-pi} F(x) sin(nx)dx = frac2pi int_{0}^{pi}f(x)sin(nx)dx$. And then I separated the integral into two parts. Result: $f(x) = frac{-2}{pi} sum_{n ge 1} ( frac{sin n}{n^2} + (-1)^n frac{pi^2}{n} + frac{2}{n^3} ((-1)^n - cos n))sin nx$. Which seems correct.
    $endgroup$
    – Zachary
    Jan 17 at 12:37
















0












0








0





$begingroup$


I'm wondering how to find the Fourier series piecewise functions where the interval on which each of the partial functions are defined are unequal. For example:
$f(x)=begin{cases} x & 0 le x le 1 \ x^2 & 1 le xle piend{cases} $ (and let's just consider the Fourier sine series of $f$ for the sake of brevity).



What coefficient should be used before the integral of $b_n$? My guess is $1$ for $int_0^1 dots$, but I'm stuck with the coefficient before $int_1^pi dots$. Or can I just use $frac1pi$ for both integrals?



I have one more questions regarding the arguments of $sin$ in both integrals. We need $sin(npi x/L)$ when working on $[-L,L]$. But since the integrals have other lengths, I'm wondering whether I can use $sin(nx)$?



Thanks for the help!










share|cite|improve this question









$endgroup$




I'm wondering how to find the Fourier series piecewise functions where the interval on which each of the partial functions are defined are unequal. For example:
$f(x)=begin{cases} x & 0 le x le 1 \ x^2 & 1 le xle piend{cases} $ (and let's just consider the Fourier sine series of $f$ for the sake of brevity).



What coefficient should be used before the integral of $b_n$? My guess is $1$ for $int_0^1 dots$, but I'm stuck with the coefficient before $int_1^pi dots$. Or can I just use $frac1pi$ for both integrals?



I have one more questions regarding the arguments of $sin$ in both integrals. We need $sin(npi x/L)$ when working on $[-L,L]$. But since the integrals have other lengths, I'm wondering whether I can use $sin(nx)$?



Thanks for the help!







real-analysis






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 17 at 10:33









ZacharyZachary

1559




1559












  • $begingroup$
    Write down the general formula for the coefficients first (expressed through $f(x)$), then substitute your particular function. The only special thing for piecewise functions is that you would need to separate the integral into two parts. The $1/ pi$ factor will stay the same
    $endgroup$
    – Yuriy S
    Jan 17 at 10:42










  • $begingroup$
    Can I use $1/pi$ when the interval is $[0,pi]$? Or should I first extend the function to make sure it is odd (since the question is about the sine series) on $[-pi,pi]$?
    $endgroup$
    – Zachary
    Jan 17 at 10:58










  • $begingroup$
    Wait a minute, how are you going to extend the function and use the sine series if your function is neither even nor odd? I think you should work on $[0, pi]$ and use the full series with both sine and cosine terms
    $endgroup$
    – Yuriy S
    Jan 17 at 11:23










  • $begingroup$
    This is what I've done: $F(x) = begin{cases} -x^2 & -pi le x le -1 \ -x & -1 le x le 0 \ x & 0 le x le 1 \ x^2 & 1 le x le pi end{cases}$. Then $b_n = frac1pi int_{-pi}^{-pi} F(x) sin(nx)dx = frac2pi int_{0}^{pi}f(x)sin(nx)dx$. And then I separated the integral into two parts. Result: $f(x) = frac{-2}{pi} sum_{n ge 1} ( frac{sin n}{n^2} + (-1)^n frac{pi^2}{n} + frac{2}{n^3} ((-1)^n - cos n))sin nx$. Which seems correct.
    $endgroup$
    – Zachary
    Jan 17 at 12:37




















  • $begingroup$
    Write down the general formula for the coefficients first (expressed through $f(x)$), then substitute your particular function. The only special thing for piecewise functions is that you would need to separate the integral into two parts. The $1/ pi$ factor will stay the same
    $endgroup$
    – Yuriy S
    Jan 17 at 10:42










  • $begingroup$
    Can I use $1/pi$ when the interval is $[0,pi]$? Or should I first extend the function to make sure it is odd (since the question is about the sine series) on $[-pi,pi]$?
    $endgroup$
    – Zachary
    Jan 17 at 10:58










  • $begingroup$
    Wait a minute, how are you going to extend the function and use the sine series if your function is neither even nor odd? I think you should work on $[0, pi]$ and use the full series with both sine and cosine terms
    $endgroup$
    – Yuriy S
    Jan 17 at 11:23










  • $begingroup$
    This is what I've done: $F(x) = begin{cases} -x^2 & -pi le x le -1 \ -x & -1 le x le 0 \ x & 0 le x le 1 \ x^2 & 1 le x le pi end{cases}$. Then $b_n = frac1pi int_{-pi}^{-pi} F(x) sin(nx)dx = frac2pi int_{0}^{pi}f(x)sin(nx)dx$. And then I separated the integral into two parts. Result: $f(x) = frac{-2}{pi} sum_{n ge 1} ( frac{sin n}{n^2} + (-1)^n frac{pi^2}{n} + frac{2}{n^3} ((-1)^n - cos n))sin nx$. Which seems correct.
    $endgroup$
    – Zachary
    Jan 17 at 12:37


















$begingroup$
Write down the general formula for the coefficients first (expressed through $f(x)$), then substitute your particular function. The only special thing for piecewise functions is that you would need to separate the integral into two parts. The $1/ pi$ factor will stay the same
$endgroup$
– Yuriy S
Jan 17 at 10:42




$begingroup$
Write down the general formula for the coefficients first (expressed through $f(x)$), then substitute your particular function. The only special thing for piecewise functions is that you would need to separate the integral into two parts. The $1/ pi$ factor will stay the same
$endgroup$
– Yuriy S
Jan 17 at 10:42












$begingroup$
Can I use $1/pi$ when the interval is $[0,pi]$? Or should I first extend the function to make sure it is odd (since the question is about the sine series) on $[-pi,pi]$?
$endgroup$
– Zachary
Jan 17 at 10:58




$begingroup$
Can I use $1/pi$ when the interval is $[0,pi]$? Or should I first extend the function to make sure it is odd (since the question is about the sine series) on $[-pi,pi]$?
$endgroup$
– Zachary
Jan 17 at 10:58












$begingroup$
Wait a minute, how are you going to extend the function and use the sine series if your function is neither even nor odd? I think you should work on $[0, pi]$ and use the full series with both sine and cosine terms
$endgroup$
– Yuriy S
Jan 17 at 11:23




$begingroup$
Wait a minute, how are you going to extend the function and use the sine series if your function is neither even nor odd? I think you should work on $[0, pi]$ and use the full series with both sine and cosine terms
$endgroup$
– Yuriy S
Jan 17 at 11:23












$begingroup$
This is what I've done: $F(x) = begin{cases} -x^2 & -pi le x le -1 \ -x & -1 le x le 0 \ x & 0 le x le 1 \ x^2 & 1 le x le pi end{cases}$. Then $b_n = frac1pi int_{-pi}^{-pi} F(x) sin(nx)dx = frac2pi int_{0}^{pi}f(x)sin(nx)dx$. And then I separated the integral into two parts. Result: $f(x) = frac{-2}{pi} sum_{n ge 1} ( frac{sin n}{n^2} + (-1)^n frac{pi^2}{n} + frac{2}{n^3} ((-1)^n - cos n))sin nx$. Which seems correct.
$endgroup$
– Zachary
Jan 17 at 12:37






$begingroup$
This is what I've done: $F(x) = begin{cases} -x^2 & -pi le x le -1 \ -x & -1 le x le 0 \ x & 0 le x le 1 \ x^2 & 1 le x le pi end{cases}$. Then $b_n = frac1pi int_{-pi}^{-pi} F(x) sin(nx)dx = frac2pi int_{0}^{pi}f(x)sin(nx)dx$. And then I separated the integral into two parts. Result: $f(x) = frac{-2}{pi} sum_{n ge 1} ( frac{sin n}{n^2} + (-1)^n frac{pi^2}{n} + frac{2}{n^3} ((-1)^n - cos n))sin nx$. Which seems correct.
$endgroup$
– Zachary
Jan 17 at 12:37












0






active

oldest

votes











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3076827%2ffourier-series-of-piecewise-function-special-case%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3076827%2ffourier-series-of-piecewise-function-special-case%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Mario Kart Wii

What does “Dominus providebit” mean?

The Binding of Isaac: Rebirth/Afterbirth