Finding the constants $A$ and $B$ for the general series solution of the wave equation with initial condition $g(x) = max 0, 1 − $

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I am trying to find the constants $A$ and $B$ for the general series solution of the wave equation



$$u(x, t) = sum_n = 1^infty left( A_n cos(c n pi t) + B_n sin(c n pi t) right) sin(pi n x)$$



with initial condition $g(x) = max $.



I'm assuming this means $u(x, 0) = g(x) = max $? Would I be correct?



I know that we can use the orthogonality of $sin(n pi x)$ to find the explicit form of the coefficients $A_n$ and $B_n$, by multiplying each equation by $sin(m pi x)$ and integrating.



It says the solution is



$$A_n = left( frac8pi n right)^2 left( sinleft( fracn pi16 right) right)^2 left( sinleft( fracn pi2 right) right)$$



for odd $n$ and $A_n = 0$ for even $n$.



And apparently the second condition gives us $B_n = 0$.



However, I'm not sure how to use this initial condition.



The first thing I calculated was when $g(x) = 1 − |8x − 4|$ and when $g(x) = 0$:



$$1 - |8x - 4| > 0$$



$$rightarrow |8x - 4| < 1$$



By my reasoning, we have two possibilities:



$$8x - 4 < 1$$ (If $8x - 4 > 0$)



$$rightarrow 8x < 5$$



$$x < frac58$$



$$-(8x - 4) < 1$$ (If $8x - 4 < 0$)



$$rightarrow 8x - 4 > -1$$



$$rightarrow 8x > 3$$



$$x > frac38$$



This means that $dfrac58 > x > dfrac38$ to have $1 - |8x - 4| > 0$.



I am not sure how to proceed from here?



Thank you for any help.







share|cite|improve this question























    up vote
    1
    down vote

    favorite












    I am trying to find the constants $A$ and $B$ for the general series solution of the wave equation



    $$u(x, t) = sum_n = 1^infty left( A_n cos(c n pi t) + B_n sin(c n pi t) right) sin(pi n x)$$



    with initial condition $g(x) = max $.



    I'm assuming this means $u(x, 0) = g(x) = max $? Would I be correct?



    I know that we can use the orthogonality of $sin(n pi x)$ to find the explicit form of the coefficients $A_n$ and $B_n$, by multiplying each equation by $sin(m pi x)$ and integrating.



    It says the solution is



    $$A_n = left( frac8pi n right)^2 left( sinleft( fracn pi16 right) right)^2 left( sinleft( fracn pi2 right) right)$$



    for odd $n$ and $A_n = 0$ for even $n$.



    And apparently the second condition gives us $B_n = 0$.



    However, I'm not sure how to use this initial condition.



    The first thing I calculated was when $g(x) = 1 − |8x − 4|$ and when $g(x) = 0$:



    $$1 - |8x - 4| > 0$$



    $$rightarrow |8x - 4| < 1$$



    By my reasoning, we have two possibilities:



    $$8x - 4 < 1$$ (If $8x - 4 > 0$)



    $$rightarrow 8x < 5$$



    $$x < frac58$$



    $$-(8x - 4) < 1$$ (If $8x - 4 < 0$)



    $$rightarrow 8x - 4 > -1$$



    $$rightarrow 8x > 3$$



    $$x > frac38$$



    This means that $dfrac58 > x > dfrac38$ to have $1 - |8x - 4| > 0$.



    I am not sure how to proceed from here?



    Thank you for any help.







    share|cite|improve this question





















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am trying to find the constants $A$ and $B$ for the general series solution of the wave equation



      $$u(x, t) = sum_n = 1^infty left( A_n cos(c n pi t) + B_n sin(c n pi t) right) sin(pi n x)$$



      with initial condition $g(x) = max $.



      I'm assuming this means $u(x, 0) = g(x) = max $? Would I be correct?



      I know that we can use the orthogonality of $sin(n pi x)$ to find the explicit form of the coefficients $A_n$ and $B_n$, by multiplying each equation by $sin(m pi x)$ and integrating.



      It says the solution is



      $$A_n = left( frac8pi n right)^2 left( sinleft( fracn pi16 right) right)^2 left( sinleft( fracn pi2 right) right)$$



      for odd $n$ and $A_n = 0$ for even $n$.



      And apparently the second condition gives us $B_n = 0$.



      However, I'm not sure how to use this initial condition.



      The first thing I calculated was when $g(x) = 1 − |8x − 4|$ and when $g(x) = 0$:



      $$1 - |8x - 4| > 0$$



      $$rightarrow |8x - 4| < 1$$



      By my reasoning, we have two possibilities:



      $$8x - 4 < 1$$ (If $8x - 4 > 0$)



      $$rightarrow 8x < 5$$



      $$x < frac58$$



      $$-(8x - 4) < 1$$ (If $8x - 4 < 0$)



      $$rightarrow 8x - 4 > -1$$



      $$rightarrow 8x > 3$$



      $$x > frac38$$



      This means that $dfrac58 > x > dfrac38$ to have $1 - |8x - 4| > 0$.



      I am not sure how to proceed from here?



      Thank you for any help.







      share|cite|improve this question











      I am trying to find the constants $A$ and $B$ for the general series solution of the wave equation



      $$u(x, t) = sum_n = 1^infty left( A_n cos(c n pi t) + B_n sin(c n pi t) right) sin(pi n x)$$



      with initial condition $g(x) = max $.



      I'm assuming this means $u(x, 0) = g(x) = max $? Would I be correct?



      I know that we can use the orthogonality of $sin(n pi x)$ to find the explicit form of the coefficients $A_n$ and $B_n$, by multiplying each equation by $sin(m pi x)$ and integrating.



      It says the solution is



      $$A_n = left( frac8pi n right)^2 left( sinleft( fracn pi16 right) right)^2 left( sinleft( fracn pi2 right) right)$$



      for odd $n$ and $A_n = 0$ for even $n$.



      And apparently the second condition gives us $B_n = 0$.



      However, I'm not sure how to use this initial condition.



      The first thing I calculated was when $g(x) = 1 − |8x − 4|$ and when $g(x) = 0$:



      $$1 - |8x - 4| > 0$$



      $$rightarrow |8x - 4| < 1$$



      By my reasoning, we have two possibilities:



      $$8x - 4 < 1$$ (If $8x - 4 > 0$)



      $$rightarrow 8x < 5$$



      $$x < frac58$$



      $$-(8x - 4) < 1$$ (If $8x - 4 < 0$)



      $$rightarrow 8x - 4 > -1$$



      $$rightarrow 8x > 3$$



      $$x > frac38$$



      This means that $dfrac58 > x > dfrac38$ to have $1 - |8x - 4| > 0$.



      I am not sure how to proceed from here?



      Thank you for any help.









      share|cite|improve this question










      share|cite|improve this question




      share|cite|improve this question









      asked Jul 26 at 9:25









      Wyuw

      1526




      1526




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          Break up the absolute value



          $$ |8x-4| = begincases 8x-4, & textif & x > frac12 \ -(8x-4), & textif& x < frac12 endcases $$



          Hence



          $$ 1-|8x-4| = begincases 5-8x, & textif & x > frac12 \ 8x-3, & textif& x < frac12 endcases $$



          You already deduced that the function has to be zero outside $(frac38, frac58)$, therefore



          $$ g(x) = begincases 0, & textif & 0 < x < frac38 \ 8x-3, & textif & frac38 < x < frac12 \ 5-8x, & textif & frac12 < x < frac58 \ 0, & textif & frac58 < x < 1 endcases $$



          I assume the the domain is $[0,1]$ from the Fourier series expression.



          You can integrate piece-wise to find $A_n$



          You need a second initial condition to determine $B_n$. Check the problem again to see what it might be. If $B_n=0$ then it's likely $u_t(x,0)=0$






          share|cite|improve this answer























          • Yes sorry about that. We have $c = 1/2$ and $u_t(x, 0) = 0$.
            – Wyuw
            Jul 26 at 18:48










          • What's $c$? Define your variables
            – Dylan
            Jul 27 at 12:43










          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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%2f2863241%2ffinding-the-constants-a-and-b-for-the-general-series-solution-of-the-wave-eq%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote













          Break up the absolute value



          $$ |8x-4| = begincases 8x-4, & textif & x > frac12 \ -(8x-4), & textif& x < frac12 endcases $$



          Hence



          $$ 1-|8x-4| = begincases 5-8x, & textif & x > frac12 \ 8x-3, & textif& x < frac12 endcases $$



          You already deduced that the function has to be zero outside $(frac38, frac58)$, therefore



          $$ g(x) = begincases 0, & textif & 0 < x < frac38 \ 8x-3, & textif & frac38 < x < frac12 \ 5-8x, & textif & frac12 < x < frac58 \ 0, & textif & frac58 < x < 1 endcases $$



          I assume the the domain is $[0,1]$ from the Fourier series expression.



          You can integrate piece-wise to find $A_n$



          You need a second initial condition to determine $B_n$. Check the problem again to see what it might be. If $B_n=0$ then it's likely $u_t(x,0)=0$






          share|cite|improve this answer























          • Yes sorry about that. We have $c = 1/2$ and $u_t(x, 0) = 0$.
            – Wyuw
            Jul 26 at 18:48










          • What's $c$? Define your variables
            – Dylan
            Jul 27 at 12:43














          up vote
          1
          down vote













          Break up the absolute value



          $$ |8x-4| = begincases 8x-4, & textif & x > frac12 \ -(8x-4), & textif& x < frac12 endcases $$



          Hence



          $$ 1-|8x-4| = begincases 5-8x, & textif & x > frac12 \ 8x-3, & textif& x < frac12 endcases $$



          You already deduced that the function has to be zero outside $(frac38, frac58)$, therefore



          $$ g(x) = begincases 0, & textif & 0 < x < frac38 \ 8x-3, & textif & frac38 < x < frac12 \ 5-8x, & textif & frac12 < x < frac58 \ 0, & textif & frac58 < x < 1 endcases $$



          I assume the the domain is $[0,1]$ from the Fourier series expression.



          You can integrate piece-wise to find $A_n$



          You need a second initial condition to determine $B_n$. Check the problem again to see what it might be. If $B_n=0$ then it's likely $u_t(x,0)=0$






          share|cite|improve this answer























          • Yes sorry about that. We have $c = 1/2$ and $u_t(x, 0) = 0$.
            – Wyuw
            Jul 26 at 18:48










          • What's $c$? Define your variables
            – Dylan
            Jul 27 at 12:43












          up vote
          1
          down vote










          up vote
          1
          down vote









          Break up the absolute value



          $$ |8x-4| = begincases 8x-4, & textif & x > frac12 \ -(8x-4), & textif& x < frac12 endcases $$



          Hence



          $$ 1-|8x-4| = begincases 5-8x, & textif & x > frac12 \ 8x-3, & textif& x < frac12 endcases $$



          You already deduced that the function has to be zero outside $(frac38, frac58)$, therefore



          $$ g(x) = begincases 0, & textif & 0 < x < frac38 \ 8x-3, & textif & frac38 < x < frac12 \ 5-8x, & textif & frac12 < x < frac58 \ 0, & textif & frac58 < x < 1 endcases $$



          I assume the the domain is $[0,1]$ from the Fourier series expression.



          You can integrate piece-wise to find $A_n$



          You need a second initial condition to determine $B_n$. Check the problem again to see what it might be. If $B_n=0$ then it's likely $u_t(x,0)=0$






          share|cite|improve this answer















          Break up the absolute value



          $$ |8x-4| = begincases 8x-4, & textif & x > frac12 \ -(8x-4), & textif& x < frac12 endcases $$



          Hence



          $$ 1-|8x-4| = begincases 5-8x, & textif & x > frac12 \ 8x-3, & textif& x < frac12 endcases $$



          You already deduced that the function has to be zero outside $(frac38, frac58)$, therefore



          $$ g(x) = begincases 0, & textif & 0 < x < frac38 \ 8x-3, & textif & frac38 < x < frac12 \ 5-8x, & textif & frac12 < x < frac58 \ 0, & textif & frac58 < x < 1 endcases $$



          I assume the the domain is $[0,1]$ from the Fourier series expression.



          You can integrate piece-wise to find $A_n$



          You need a second initial condition to determine $B_n$. Check the problem again to see what it might be. If $B_n=0$ then it's likely $u_t(x,0)=0$







          share|cite|improve this answer















          share|cite|improve this answer



          share|cite|improve this answer








          edited Jul 26 at 15:04


























          answered Jul 26 at 14:52









          Dylan

          11.4k31026




          11.4k31026











          • Yes sorry about that. We have $c = 1/2$ and $u_t(x, 0) = 0$.
            – Wyuw
            Jul 26 at 18:48










          • What's $c$? Define your variables
            – Dylan
            Jul 27 at 12:43
















          • Yes sorry about that. We have $c = 1/2$ and $u_t(x, 0) = 0$.
            – Wyuw
            Jul 26 at 18:48










          • What's $c$? Define your variables
            – Dylan
            Jul 27 at 12:43















          Yes sorry about that. We have $c = 1/2$ and $u_t(x, 0) = 0$.
          – Wyuw
          Jul 26 at 18:48




          Yes sorry about that. We have $c = 1/2$ and $u_t(x, 0) = 0$.
          – Wyuw
          Jul 26 at 18:48












          What's $c$? Define your variables
          – Dylan
          Jul 27 at 12:43




          What's $c$? Define your variables
          – Dylan
          Jul 27 at 12:43












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2863241%2ffinding-the-constants-a-and-b-for-the-general-series-solution-of-the-wave-eq%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What is the equation of a 3D cone with generalised tilt?

          Color the edges and diagonals of a regular polygon

          Relationship between determinant of matrix and determinant of adjoint?