Analytical solution to the 2D wave equation with Neumann BC's on a square












0












$begingroup$


I'm struggling to find an exact solution to the 2D wave equation, $u_{tt} = c^2(u_{xx} + u_{yy})$ with the following boundary and initial conditions:



The left edge of the square is equal to 1, while the top, bottom and right are 0.
$u_x(0,y,t) =1$
$u_y(x,0,t) = u_y (x,1,t)= u_x(1,y,0)=0$



Initial conditions
$u(x,y,0) = u_t (x,y,0)=0 $.



By separation of variables, let U(x,y,t) = F(x,y)G(t), and going through the usual process letting $-v^2$ be the constant that lets the two functions equal to each other.



This reduces to two equations requiring to be solved $G'' + lambda^2 G = 0 $ therefore $G(t) = Acos(lambda t) + Bsin(lambda t)$ where $lambda = cv$.
And $F_{xx} + F_{yy} + v^2 F = 0$ (2D Helmholtz equation). However when I apply the conditions all i get is zero, which shouldn't be the case.










share|cite|improve this question









$endgroup$












  • $begingroup$
    If $F(x,y) = 0$ and $G(t)=0$, then $u_x(0,y,t)=F_x(0,y)G(t)neq 1$, so you are applying the boundary conditions wrong. Can you show us your work, so we can point out the mistake?
    $endgroup$
    – Vasily Mitch
    Jan 22 at 17:27
















0












$begingroup$


I'm struggling to find an exact solution to the 2D wave equation, $u_{tt} = c^2(u_{xx} + u_{yy})$ with the following boundary and initial conditions:



The left edge of the square is equal to 1, while the top, bottom and right are 0.
$u_x(0,y,t) =1$
$u_y(x,0,t) = u_y (x,1,t)= u_x(1,y,0)=0$



Initial conditions
$u(x,y,0) = u_t (x,y,0)=0 $.



By separation of variables, let U(x,y,t) = F(x,y)G(t), and going through the usual process letting $-v^2$ be the constant that lets the two functions equal to each other.



This reduces to two equations requiring to be solved $G'' + lambda^2 G = 0 $ therefore $G(t) = Acos(lambda t) + Bsin(lambda t)$ where $lambda = cv$.
And $F_{xx} + F_{yy} + v^2 F = 0$ (2D Helmholtz equation). However when I apply the conditions all i get is zero, which shouldn't be the case.










share|cite|improve this question









$endgroup$












  • $begingroup$
    If $F(x,y) = 0$ and $G(t)=0$, then $u_x(0,y,t)=F_x(0,y)G(t)neq 1$, so you are applying the boundary conditions wrong. Can you show us your work, so we can point out the mistake?
    $endgroup$
    – Vasily Mitch
    Jan 22 at 17:27














0












0








0





$begingroup$


I'm struggling to find an exact solution to the 2D wave equation, $u_{tt} = c^2(u_{xx} + u_{yy})$ with the following boundary and initial conditions:



The left edge of the square is equal to 1, while the top, bottom and right are 0.
$u_x(0,y,t) =1$
$u_y(x,0,t) = u_y (x,1,t)= u_x(1,y,0)=0$



Initial conditions
$u(x,y,0) = u_t (x,y,0)=0 $.



By separation of variables, let U(x,y,t) = F(x,y)G(t), and going through the usual process letting $-v^2$ be the constant that lets the two functions equal to each other.



This reduces to two equations requiring to be solved $G'' + lambda^2 G = 0 $ therefore $G(t) = Acos(lambda t) + Bsin(lambda t)$ where $lambda = cv$.
And $F_{xx} + F_{yy} + v^2 F = 0$ (2D Helmholtz equation). However when I apply the conditions all i get is zero, which shouldn't be the case.










share|cite|improve this question









$endgroup$




I'm struggling to find an exact solution to the 2D wave equation, $u_{tt} = c^2(u_{xx} + u_{yy})$ with the following boundary and initial conditions:



The left edge of the square is equal to 1, while the top, bottom and right are 0.
$u_x(0,y,t) =1$
$u_y(x,0,t) = u_y (x,1,t)= u_x(1,y,0)=0$



Initial conditions
$u(x,y,0) = u_t (x,y,0)=0 $.



By separation of variables, let U(x,y,t) = F(x,y)G(t), and going through the usual process letting $-v^2$ be the constant that lets the two functions equal to each other.



This reduces to two equations requiring to be solved $G'' + lambda^2 G = 0 $ therefore $G(t) = Acos(lambda t) + Bsin(lambda t)$ where $lambda = cv$.
And $F_{xx} + F_{yy} + v^2 F = 0$ (2D Helmholtz equation). However when I apply the conditions all i get is zero, which shouldn't be the case.







pde wave-equation






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 22 at 17:18









jake rowbottomjake rowbottom

1




1












  • $begingroup$
    If $F(x,y) = 0$ and $G(t)=0$, then $u_x(0,y,t)=F_x(0,y)G(t)neq 1$, so you are applying the boundary conditions wrong. Can you show us your work, so we can point out the mistake?
    $endgroup$
    – Vasily Mitch
    Jan 22 at 17:27


















  • $begingroup$
    If $F(x,y) = 0$ and $G(t)=0$, then $u_x(0,y,t)=F_x(0,y)G(t)neq 1$, so you are applying the boundary conditions wrong. Can you show us your work, so we can point out the mistake?
    $endgroup$
    – Vasily Mitch
    Jan 22 at 17:27
















$begingroup$
If $F(x,y) = 0$ and $G(t)=0$, then $u_x(0,y,t)=F_x(0,y)G(t)neq 1$, so you are applying the boundary conditions wrong. Can you show us your work, so we can point out the mistake?
$endgroup$
– Vasily Mitch
Jan 22 at 17:27




$begingroup$
If $F(x,y) = 0$ and $G(t)=0$, then $u_x(0,y,t)=F_x(0,y)G(t)neq 1$, so you are applying the boundary conditions wrong. Can you show us your work, so we can point out the mistake?
$endgroup$
– Vasily Mitch
Jan 22 at 17:27










1 Answer
1






active

oldest

votes


















0












$begingroup$

I first tried to solve this problem by finding a time-independent solution that satisfies that Laplace equation with the corresponding boundary conditions. But as it turns out, no such solution exists.



What you actually have to do is to separate the solution into $u(x,y,t) = w(x,y,t) + v(x,y,t)$, where $w$ is some particular function that satisfies the boundary conditions, and $v$ is homogeneous on the boundary. There are many options, but for simplicity, we pick a $w$ wuch that $w_y=0$ and $w_x=1-x$, so



$$ w(x,y,t) = -frac{(1-x)^2}{2} $$



Plugigng this into the original equation, we have



begin{align}
v_{tt} - c^2(v_{xx} + v_{yy}) &= -c^2 \
v_y(x,0,t) = v_y(x,1,t) &= 0 \
v_x(0,y,t) = v_x(1,y,t) &= 0 \ v(x,y,0) &= frac{(1-x)^2}{2} \ v_t(x,y,0) &= 0 end{align}



We can find $v$ by decomposing into a triple product: $v(x,y,t) = T(t)X(x)Y(y)$, such that $X(x)$ and $Y(y)$ are eigenfunctions of the Laplacian operators, each satisfying Neumann boundary conditions. You can find them by solving



begin{align}
X'' + lambda^2 X &= 0, quad X'(0) = X'(1) = 0 \
Y'' + mu^2 Y &= 0, quad Y'(0) = Y'(1) = 0
end{align}



which gives



$$ X_n(x) = cos(npi x), quad Y_m(y) = cos(mpi y) $$



However, notice that the solution does not need to depend on $y$, so we're left with



$$ v(x,y,t) = T_0(t) + sum_{n=1}^infty T_n(t)cos(npi x) $$



Plugging this into the equation:



$$ T_0'' + sum_{n=1}^infty [T_n'' + c^2n^2pi^2 T_n]cos(npi x) = -c^2 $$



$$ implies begin{cases} T_0'' = -c^2 \ T_n'' + c^2n^2pi^2 T_n = 0 &&, n ge 1 end{cases} $$



The last step is to break down the initial condition into its Fourier series



$$ v(x,y,0) = frac{(1-x)^2}{2} = T_0(0) + sum_{n=1}^infty T_n(t)cos(npi x) $$



$$ implies begin{cases} T_0(0) = int_0^1 frac{(1-x)^2}{2} dx \ T_n(0) = dfrac{int_0^1 frac{(1-x)^2}{2}cos(npi x) dx}{int_0^1 cos^2 (npi x) dx} &&, n ge 1 end{cases} $$



and $T_n'(0)=0, forall n$.



Solve the remaining IVPs for $T_n(t)$





You may also review this method which uses the characteristic lines to form a recursive solution. It's less work if you understand the concepts.






share|cite|improve this answer











$endgroup$













    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%2f3083425%2fanalytical-solution-to-the-2d-wave-equation-with-neumann-bcs-on-a-square%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0












    $begingroup$

    I first tried to solve this problem by finding a time-independent solution that satisfies that Laplace equation with the corresponding boundary conditions. But as it turns out, no such solution exists.



    What you actually have to do is to separate the solution into $u(x,y,t) = w(x,y,t) + v(x,y,t)$, where $w$ is some particular function that satisfies the boundary conditions, and $v$ is homogeneous on the boundary. There are many options, but for simplicity, we pick a $w$ wuch that $w_y=0$ and $w_x=1-x$, so



    $$ w(x,y,t) = -frac{(1-x)^2}{2} $$



    Plugigng this into the original equation, we have



    begin{align}
    v_{tt} - c^2(v_{xx} + v_{yy}) &= -c^2 \
    v_y(x,0,t) = v_y(x,1,t) &= 0 \
    v_x(0,y,t) = v_x(1,y,t) &= 0 \ v(x,y,0) &= frac{(1-x)^2}{2} \ v_t(x,y,0) &= 0 end{align}



    We can find $v$ by decomposing into a triple product: $v(x,y,t) = T(t)X(x)Y(y)$, such that $X(x)$ and $Y(y)$ are eigenfunctions of the Laplacian operators, each satisfying Neumann boundary conditions. You can find them by solving



    begin{align}
    X'' + lambda^2 X &= 0, quad X'(0) = X'(1) = 0 \
    Y'' + mu^2 Y &= 0, quad Y'(0) = Y'(1) = 0
    end{align}



    which gives



    $$ X_n(x) = cos(npi x), quad Y_m(y) = cos(mpi y) $$



    However, notice that the solution does not need to depend on $y$, so we're left with



    $$ v(x,y,t) = T_0(t) + sum_{n=1}^infty T_n(t)cos(npi x) $$



    Plugging this into the equation:



    $$ T_0'' + sum_{n=1}^infty [T_n'' + c^2n^2pi^2 T_n]cos(npi x) = -c^2 $$



    $$ implies begin{cases} T_0'' = -c^2 \ T_n'' + c^2n^2pi^2 T_n = 0 &&, n ge 1 end{cases} $$



    The last step is to break down the initial condition into its Fourier series



    $$ v(x,y,0) = frac{(1-x)^2}{2} = T_0(0) + sum_{n=1}^infty T_n(t)cos(npi x) $$



    $$ implies begin{cases} T_0(0) = int_0^1 frac{(1-x)^2}{2} dx \ T_n(0) = dfrac{int_0^1 frac{(1-x)^2}{2}cos(npi x) dx}{int_0^1 cos^2 (npi x) dx} &&, n ge 1 end{cases} $$



    and $T_n'(0)=0, forall n$.



    Solve the remaining IVPs for $T_n(t)$





    You may also review this method which uses the characteristic lines to form a recursive solution. It's less work if you understand the concepts.






    share|cite|improve this answer











    $endgroup$


















      0












      $begingroup$

      I first tried to solve this problem by finding a time-independent solution that satisfies that Laplace equation with the corresponding boundary conditions. But as it turns out, no such solution exists.



      What you actually have to do is to separate the solution into $u(x,y,t) = w(x,y,t) + v(x,y,t)$, where $w$ is some particular function that satisfies the boundary conditions, and $v$ is homogeneous on the boundary. There are many options, but for simplicity, we pick a $w$ wuch that $w_y=0$ and $w_x=1-x$, so



      $$ w(x,y,t) = -frac{(1-x)^2}{2} $$



      Plugigng this into the original equation, we have



      begin{align}
      v_{tt} - c^2(v_{xx} + v_{yy}) &= -c^2 \
      v_y(x,0,t) = v_y(x,1,t) &= 0 \
      v_x(0,y,t) = v_x(1,y,t) &= 0 \ v(x,y,0) &= frac{(1-x)^2}{2} \ v_t(x,y,0) &= 0 end{align}



      We can find $v$ by decomposing into a triple product: $v(x,y,t) = T(t)X(x)Y(y)$, such that $X(x)$ and $Y(y)$ are eigenfunctions of the Laplacian operators, each satisfying Neumann boundary conditions. You can find them by solving



      begin{align}
      X'' + lambda^2 X &= 0, quad X'(0) = X'(1) = 0 \
      Y'' + mu^2 Y &= 0, quad Y'(0) = Y'(1) = 0
      end{align}



      which gives



      $$ X_n(x) = cos(npi x), quad Y_m(y) = cos(mpi y) $$



      However, notice that the solution does not need to depend on $y$, so we're left with



      $$ v(x,y,t) = T_0(t) + sum_{n=1}^infty T_n(t)cos(npi x) $$



      Plugging this into the equation:



      $$ T_0'' + sum_{n=1}^infty [T_n'' + c^2n^2pi^2 T_n]cos(npi x) = -c^2 $$



      $$ implies begin{cases} T_0'' = -c^2 \ T_n'' + c^2n^2pi^2 T_n = 0 &&, n ge 1 end{cases} $$



      The last step is to break down the initial condition into its Fourier series



      $$ v(x,y,0) = frac{(1-x)^2}{2} = T_0(0) + sum_{n=1}^infty T_n(t)cos(npi x) $$



      $$ implies begin{cases} T_0(0) = int_0^1 frac{(1-x)^2}{2} dx \ T_n(0) = dfrac{int_0^1 frac{(1-x)^2}{2}cos(npi x) dx}{int_0^1 cos^2 (npi x) dx} &&, n ge 1 end{cases} $$



      and $T_n'(0)=0, forall n$.



      Solve the remaining IVPs for $T_n(t)$





      You may also review this method which uses the characteristic lines to form a recursive solution. It's less work if you understand the concepts.






      share|cite|improve this answer











      $endgroup$
















        0












        0








        0





        $begingroup$

        I first tried to solve this problem by finding a time-independent solution that satisfies that Laplace equation with the corresponding boundary conditions. But as it turns out, no such solution exists.



        What you actually have to do is to separate the solution into $u(x,y,t) = w(x,y,t) + v(x,y,t)$, where $w$ is some particular function that satisfies the boundary conditions, and $v$ is homogeneous on the boundary. There are many options, but for simplicity, we pick a $w$ wuch that $w_y=0$ and $w_x=1-x$, so



        $$ w(x,y,t) = -frac{(1-x)^2}{2} $$



        Plugigng this into the original equation, we have



        begin{align}
        v_{tt} - c^2(v_{xx} + v_{yy}) &= -c^2 \
        v_y(x,0,t) = v_y(x,1,t) &= 0 \
        v_x(0,y,t) = v_x(1,y,t) &= 0 \ v(x,y,0) &= frac{(1-x)^2}{2} \ v_t(x,y,0) &= 0 end{align}



        We can find $v$ by decomposing into a triple product: $v(x,y,t) = T(t)X(x)Y(y)$, such that $X(x)$ and $Y(y)$ are eigenfunctions of the Laplacian operators, each satisfying Neumann boundary conditions. You can find them by solving



        begin{align}
        X'' + lambda^2 X &= 0, quad X'(0) = X'(1) = 0 \
        Y'' + mu^2 Y &= 0, quad Y'(0) = Y'(1) = 0
        end{align}



        which gives



        $$ X_n(x) = cos(npi x), quad Y_m(y) = cos(mpi y) $$



        However, notice that the solution does not need to depend on $y$, so we're left with



        $$ v(x,y,t) = T_0(t) + sum_{n=1}^infty T_n(t)cos(npi x) $$



        Plugging this into the equation:



        $$ T_0'' + sum_{n=1}^infty [T_n'' + c^2n^2pi^2 T_n]cos(npi x) = -c^2 $$



        $$ implies begin{cases} T_0'' = -c^2 \ T_n'' + c^2n^2pi^2 T_n = 0 &&, n ge 1 end{cases} $$



        The last step is to break down the initial condition into its Fourier series



        $$ v(x,y,0) = frac{(1-x)^2}{2} = T_0(0) + sum_{n=1}^infty T_n(t)cos(npi x) $$



        $$ implies begin{cases} T_0(0) = int_0^1 frac{(1-x)^2}{2} dx \ T_n(0) = dfrac{int_0^1 frac{(1-x)^2}{2}cos(npi x) dx}{int_0^1 cos^2 (npi x) dx} &&, n ge 1 end{cases} $$



        and $T_n'(0)=0, forall n$.



        Solve the remaining IVPs for $T_n(t)$





        You may also review this method which uses the characteristic lines to form a recursive solution. It's less work if you understand the concepts.






        share|cite|improve this answer











        $endgroup$



        I first tried to solve this problem by finding a time-independent solution that satisfies that Laplace equation with the corresponding boundary conditions. But as it turns out, no such solution exists.



        What you actually have to do is to separate the solution into $u(x,y,t) = w(x,y,t) + v(x,y,t)$, where $w$ is some particular function that satisfies the boundary conditions, and $v$ is homogeneous on the boundary. There are many options, but for simplicity, we pick a $w$ wuch that $w_y=0$ and $w_x=1-x$, so



        $$ w(x,y,t) = -frac{(1-x)^2}{2} $$



        Plugigng this into the original equation, we have



        begin{align}
        v_{tt} - c^2(v_{xx} + v_{yy}) &= -c^2 \
        v_y(x,0,t) = v_y(x,1,t) &= 0 \
        v_x(0,y,t) = v_x(1,y,t) &= 0 \ v(x,y,0) &= frac{(1-x)^2}{2} \ v_t(x,y,0) &= 0 end{align}



        We can find $v$ by decomposing into a triple product: $v(x,y,t) = T(t)X(x)Y(y)$, such that $X(x)$ and $Y(y)$ are eigenfunctions of the Laplacian operators, each satisfying Neumann boundary conditions. You can find them by solving



        begin{align}
        X'' + lambda^2 X &= 0, quad X'(0) = X'(1) = 0 \
        Y'' + mu^2 Y &= 0, quad Y'(0) = Y'(1) = 0
        end{align}



        which gives



        $$ X_n(x) = cos(npi x), quad Y_m(y) = cos(mpi y) $$



        However, notice that the solution does not need to depend on $y$, so we're left with



        $$ v(x,y,t) = T_0(t) + sum_{n=1}^infty T_n(t)cos(npi x) $$



        Plugging this into the equation:



        $$ T_0'' + sum_{n=1}^infty [T_n'' + c^2n^2pi^2 T_n]cos(npi x) = -c^2 $$



        $$ implies begin{cases} T_0'' = -c^2 \ T_n'' + c^2n^2pi^2 T_n = 0 &&, n ge 1 end{cases} $$



        The last step is to break down the initial condition into its Fourier series



        $$ v(x,y,0) = frac{(1-x)^2}{2} = T_0(0) + sum_{n=1}^infty T_n(t)cos(npi x) $$



        $$ implies begin{cases} T_0(0) = int_0^1 frac{(1-x)^2}{2} dx \ T_n(0) = dfrac{int_0^1 frac{(1-x)^2}{2}cos(npi x) dx}{int_0^1 cos^2 (npi x) dx} &&, n ge 1 end{cases} $$



        and $T_n'(0)=0, forall n$.



        Solve the remaining IVPs for $T_n(t)$





        You may also review this method which uses the characteristic lines to form a recursive solution. It's less work if you understand the concepts.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Jan 24 at 8:08

























        answered Jan 23 at 12:53









        DylanDylan

        13.7k31027




        13.7k31027






























            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%2f3083425%2fanalytical-solution-to-the-2d-wave-equation-with-neumann-bcs-on-a-square%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

            MongoDB - Not Authorized To Execute Command

            How to fix TextFormField cause rebuild widget in Flutter

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith