Finding homogennous and particular solution of an equation












0












$begingroup$


Let's say I have an equation like this:



$Sn = 2 cdot S(n-1) + 2^{(n+1)} - 2$



Now I know that I need to transform it to look like this:



$S(n+1) - 2 cdot Sn = 2^{(n+2)} - 2$



From this I can get the characteristic equation: $lambda - 2$ and from that the characteristic number 2. But how do I find the particular solution? And how do I then add it all together? Any explanations or links to materials are appreciated. I did find some but it did not make sense to me.










share|cite|improve this question











$endgroup$












  • $begingroup$
    Please typeset the equations using MathJax.
    $endgroup$
    – Yves Daoust
    Jan 21 at 10:12
















0












$begingroup$


Let's say I have an equation like this:



$Sn = 2 cdot S(n-1) + 2^{(n+1)} - 2$



Now I know that I need to transform it to look like this:



$S(n+1) - 2 cdot Sn = 2^{(n+2)} - 2$



From this I can get the characteristic equation: $lambda - 2$ and from that the characteristic number 2. But how do I find the particular solution? And how do I then add it all together? Any explanations or links to materials are appreciated. I did find some but it did not make sense to me.










share|cite|improve this question











$endgroup$












  • $begingroup$
    Please typeset the equations using MathJax.
    $endgroup$
    – Yves Daoust
    Jan 21 at 10:12














0












0








0





$begingroup$


Let's say I have an equation like this:



$Sn = 2 cdot S(n-1) + 2^{(n+1)} - 2$



Now I know that I need to transform it to look like this:



$S(n+1) - 2 cdot Sn = 2^{(n+2)} - 2$



From this I can get the characteristic equation: $lambda - 2$ and from that the characteristic number 2. But how do I find the particular solution? And how do I then add it all together? Any explanations or links to materials are appreciated. I did find some but it did not make sense to me.










share|cite|improve this question











$endgroup$




Let's say I have an equation like this:



$Sn = 2 cdot S(n-1) + 2^{(n+1)} - 2$



Now I know that I need to transform it to look like this:



$S(n+1) - 2 cdot Sn = 2^{(n+2)} - 2$



From this I can get the characteristic equation: $lambda - 2$ and from that the characteristic number 2. But how do I find the particular solution? And how do I then add it all together? Any explanations or links to materials are appreciated. I did find some but it did not make sense to me.







discrete-mathematics homogeneous-equation






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 21 at 18:34









EdOverflow

25119




25119










asked Jan 21 at 10:09









ponikoliponikoli

416




416












  • $begingroup$
    Please typeset the equations using MathJax.
    $endgroup$
    – Yves Daoust
    Jan 21 at 10:12


















  • $begingroup$
    Please typeset the equations using MathJax.
    $endgroup$
    – Yves Daoust
    Jan 21 at 10:12
















$begingroup$
Please typeset the equations using MathJax.
$endgroup$
– Yves Daoust
Jan 21 at 10:12




$begingroup$
Please typeset the equations using MathJax.
$endgroup$
– Yves Daoust
Jan 21 at 10:12










1 Answer
1






active

oldest

votes


















0












$begingroup$

The homogeneous equation reads



$$S_n=2S_{n-1}$$ and by induction



$$S_n=2^nS_0.$$



Now let us find a particular solution for the term $-2$, and let us try a constant $a$:



$$a=2a-2$$ yields the solution $a=2$.



Now finding a particular solution for the term $2^{n+1}$ is more tricky. You will be tempted to use the Ansatz $b,2^n$, but as this is of the same form as the homogeneous solution, it won't work:



$$b,2^n=2b,2^{n-1}+2^{n+1}$$ has no solution.



Inspired by the theory of linear ODEs, we will try $bn,2^n$, and



$$bn,2^n=2b(n-1)2^{n-1}+2^{n+1},$$ giving $b=2$.



The global solution is just the sum of these contributions,



$$S_n=c,2^n+2n,2^n+2.$$



Indeed,



$$S_n-2S_{n-1}=c,2^n-c,2^n+2n,2^n-2(n-1),2^n+2-4=2^{n+1}-2.$$



You determine $c$ from the initial condition,



$$S_0=c+2.$$






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%2f3081701%2ffinding-homogennous-and-particular-solution-of-an-equation%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$

    The homogeneous equation reads



    $$S_n=2S_{n-1}$$ and by induction



    $$S_n=2^nS_0.$$



    Now let us find a particular solution for the term $-2$, and let us try a constant $a$:



    $$a=2a-2$$ yields the solution $a=2$.



    Now finding a particular solution for the term $2^{n+1}$ is more tricky. You will be tempted to use the Ansatz $b,2^n$, but as this is of the same form as the homogeneous solution, it won't work:



    $$b,2^n=2b,2^{n-1}+2^{n+1}$$ has no solution.



    Inspired by the theory of linear ODEs, we will try $bn,2^n$, and



    $$bn,2^n=2b(n-1)2^{n-1}+2^{n+1},$$ giving $b=2$.



    The global solution is just the sum of these contributions,



    $$S_n=c,2^n+2n,2^n+2.$$



    Indeed,



    $$S_n-2S_{n-1}=c,2^n-c,2^n+2n,2^n-2(n-1),2^n+2-4=2^{n+1}-2.$$



    You determine $c$ from the initial condition,



    $$S_0=c+2.$$






    share|cite|improve this answer









    $endgroup$


















      0












      $begingroup$

      The homogeneous equation reads



      $$S_n=2S_{n-1}$$ and by induction



      $$S_n=2^nS_0.$$



      Now let us find a particular solution for the term $-2$, and let us try a constant $a$:



      $$a=2a-2$$ yields the solution $a=2$.



      Now finding a particular solution for the term $2^{n+1}$ is more tricky. You will be tempted to use the Ansatz $b,2^n$, but as this is of the same form as the homogeneous solution, it won't work:



      $$b,2^n=2b,2^{n-1}+2^{n+1}$$ has no solution.



      Inspired by the theory of linear ODEs, we will try $bn,2^n$, and



      $$bn,2^n=2b(n-1)2^{n-1}+2^{n+1},$$ giving $b=2$.



      The global solution is just the sum of these contributions,



      $$S_n=c,2^n+2n,2^n+2.$$



      Indeed,



      $$S_n-2S_{n-1}=c,2^n-c,2^n+2n,2^n-2(n-1),2^n+2-4=2^{n+1}-2.$$



      You determine $c$ from the initial condition,



      $$S_0=c+2.$$






      share|cite|improve this answer









      $endgroup$
















        0












        0








        0





        $begingroup$

        The homogeneous equation reads



        $$S_n=2S_{n-1}$$ and by induction



        $$S_n=2^nS_0.$$



        Now let us find a particular solution for the term $-2$, and let us try a constant $a$:



        $$a=2a-2$$ yields the solution $a=2$.



        Now finding a particular solution for the term $2^{n+1}$ is more tricky. You will be tempted to use the Ansatz $b,2^n$, but as this is of the same form as the homogeneous solution, it won't work:



        $$b,2^n=2b,2^{n-1}+2^{n+1}$$ has no solution.



        Inspired by the theory of linear ODEs, we will try $bn,2^n$, and



        $$bn,2^n=2b(n-1)2^{n-1}+2^{n+1},$$ giving $b=2$.



        The global solution is just the sum of these contributions,



        $$S_n=c,2^n+2n,2^n+2.$$



        Indeed,



        $$S_n-2S_{n-1}=c,2^n-c,2^n+2n,2^n-2(n-1),2^n+2-4=2^{n+1}-2.$$



        You determine $c$ from the initial condition,



        $$S_0=c+2.$$






        share|cite|improve this answer









        $endgroup$



        The homogeneous equation reads



        $$S_n=2S_{n-1}$$ and by induction



        $$S_n=2^nS_0.$$



        Now let us find a particular solution for the term $-2$, and let us try a constant $a$:



        $$a=2a-2$$ yields the solution $a=2$.



        Now finding a particular solution for the term $2^{n+1}$ is more tricky. You will be tempted to use the Ansatz $b,2^n$, but as this is of the same form as the homogeneous solution, it won't work:



        $$b,2^n=2b,2^{n-1}+2^{n+1}$$ has no solution.



        Inspired by the theory of linear ODEs, we will try $bn,2^n$, and



        $$bn,2^n=2b(n-1)2^{n-1}+2^{n+1},$$ giving $b=2$.



        The global solution is just the sum of these contributions,



        $$S_n=c,2^n+2n,2^n+2.$$



        Indeed,



        $$S_n-2S_{n-1}=c,2^n-c,2^n+2n,2^n-2(n-1),2^n+2-4=2^{n+1}-2.$$



        You determine $c$ from the initial condition,



        $$S_0=c+2.$$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jan 21 at 10:28









        Yves DaoustYves Daoust

        129k676227




        129k676227






























            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%2f3081701%2ffinding-homogennous-and-particular-solution-of-an-equation%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