Non-homogenous differential equation help












1












$begingroup$



  1. a) Given $x = e^u$ and $$x^2frac{d^2y}{dx^2} - 4x frac{dy}{dx} + 6y = 12$$ show that $$frac{d^2y}{du^2} - 5 frac{dy}{du} + 6y = 12$$


I was able to do this:
$x = e^u$



$$frac{dx}{du} = e^u = x $$



$$frac{dy}{dx} = frac{dy}{du} frac{du}{dx} = frac{1}{x}frac{dy}{du}$$



$$frac{d^2y}{dx^2} = -frac{1}{x^2}frac{dy}{du} + frac{1}{x}frac{d^2y}{du^2}frac{du}{dx} = -frac{1}{x^2}frac{dy}{du} + frac{1}{x^2}frac{d^2y}{du^2}$$



$$x^2left(-frac{1}{x^2}frac{dy}{du} + frac{1}{x^2}frac{d^2y}{du^2}right) -4xleft(frac{1}{x}frac{dy}{du}right) + 6y = 12 $$



$$-frac{dy}{du} + frac{d^2y}{du^2} - 4frac{dy}{du} +6y = 12 $$



$$frac{d^2y}{du^2} - 5frac{dy}{du} + 6y = 12 $$



part b is where I got stuck:



b) Hence solve the equation $$x^2frac{d^2y}{dx^2} - 4xfrac{dy}{dx} + 6y = 12$$ given that $y(1) = 7$ and $y(2) = 14$



$$frac{d^2y}{du^2} - 5frac{dy}{du} + 6y = 12 $$



auxiliary equation: $lambda^2 - 5λ + 6 = 0 $



Hence $lambda = 3, 2$



Complementary function: $$y = Ae^{3u} + Be^{2u}$$



particular integral in the form $y = c$



$$frac{dy}{dx} = 0 = frac{d^2y}{dx^2}$$



$$6C = 12 $$



$$C = 2$$



general solution: $$y = Ae^{3u} + Be^{2u} + 2 $$



where I began to get stuck:



replacing $u = ln x$ means you get left with



$$y = Ax^3 + Bx^2 + 2$$



$$frac{dy}{dx} = 3Ax^2 + 2Bx $$



$$frac{d^2y}{dx^2} = 6Ax + 2B $$



my teacher told me to "substitute this into the solution of the DE and just apply the conditions"



(this is where I think I may me wrong, I think I might have to equate the differential equation to 0 after substituting)



through substituting these values into the differential equation you get:



$$x^2 (6Ax + 2B) - 5(3Ax^2 + 2Bx) + 6 (Ax^3 + Bx^2 + 2) = 12 $$



$$ 6Ax^3 + 2Bx^2 -15Ax^2 - 10Bx + 6Ax^3 + 6Bx^2 + 12 = 12 $$



$$ 12Ax^3 + 8Bx^2 -15Ax^2 - 10Bx = 0 $$



This may resolve very simply, but I didn't want to try without knowing I was doing the correct thing.










share|cite|improve this question











$endgroup$












  • $begingroup$
    This is way easier than you think. Your general solution $y(x)=Ax^3+Bx^2+2$ is correct. Now, using the boundary conditions, you obtain: $$7=y(1)=Acdot 1^3+Bcdot 1^2+2=A+B+2$$ $$14=y(2)=Acdot 2^3+Bcdot 2^2+2=8A+4B+2$$ Solve for $A$ and $B$, then plug it in to your general solution.
    $endgroup$
    – projectilemotion
    Jan 6 at 21:16












  • $begingroup$
    I appreciate you trying to use the formatting. Next time, use $ or $$ for the entire line, and never use x for multiplication
    $endgroup$
    – Dylan
    Jan 7 at 9:49
















1












$begingroup$



  1. a) Given $x = e^u$ and $$x^2frac{d^2y}{dx^2} - 4x frac{dy}{dx} + 6y = 12$$ show that $$frac{d^2y}{du^2} - 5 frac{dy}{du} + 6y = 12$$


I was able to do this:
$x = e^u$



$$frac{dx}{du} = e^u = x $$



$$frac{dy}{dx} = frac{dy}{du} frac{du}{dx} = frac{1}{x}frac{dy}{du}$$



$$frac{d^2y}{dx^2} = -frac{1}{x^2}frac{dy}{du} + frac{1}{x}frac{d^2y}{du^2}frac{du}{dx} = -frac{1}{x^2}frac{dy}{du} + frac{1}{x^2}frac{d^2y}{du^2}$$



$$x^2left(-frac{1}{x^2}frac{dy}{du} + frac{1}{x^2}frac{d^2y}{du^2}right) -4xleft(frac{1}{x}frac{dy}{du}right) + 6y = 12 $$



$$-frac{dy}{du} + frac{d^2y}{du^2} - 4frac{dy}{du} +6y = 12 $$



$$frac{d^2y}{du^2} - 5frac{dy}{du} + 6y = 12 $$



part b is where I got stuck:



b) Hence solve the equation $$x^2frac{d^2y}{dx^2} - 4xfrac{dy}{dx} + 6y = 12$$ given that $y(1) = 7$ and $y(2) = 14$



$$frac{d^2y}{du^2} - 5frac{dy}{du} + 6y = 12 $$



auxiliary equation: $lambda^2 - 5λ + 6 = 0 $



Hence $lambda = 3, 2$



Complementary function: $$y = Ae^{3u} + Be^{2u}$$



particular integral in the form $y = c$



$$frac{dy}{dx} = 0 = frac{d^2y}{dx^2}$$



$$6C = 12 $$



$$C = 2$$



general solution: $$y = Ae^{3u} + Be^{2u} + 2 $$



where I began to get stuck:



replacing $u = ln x$ means you get left with



$$y = Ax^3 + Bx^2 + 2$$



$$frac{dy}{dx} = 3Ax^2 + 2Bx $$



$$frac{d^2y}{dx^2} = 6Ax + 2B $$



my teacher told me to "substitute this into the solution of the DE and just apply the conditions"



(this is where I think I may me wrong, I think I might have to equate the differential equation to 0 after substituting)



through substituting these values into the differential equation you get:



$$x^2 (6Ax + 2B) - 5(3Ax^2 + 2Bx) + 6 (Ax^3 + Bx^2 + 2) = 12 $$



$$ 6Ax^3 + 2Bx^2 -15Ax^2 - 10Bx + 6Ax^3 + 6Bx^2 + 12 = 12 $$



$$ 12Ax^3 + 8Bx^2 -15Ax^2 - 10Bx = 0 $$



This may resolve very simply, but I didn't want to try without knowing I was doing the correct thing.










share|cite|improve this question











$endgroup$












  • $begingroup$
    This is way easier than you think. Your general solution $y(x)=Ax^3+Bx^2+2$ is correct. Now, using the boundary conditions, you obtain: $$7=y(1)=Acdot 1^3+Bcdot 1^2+2=A+B+2$$ $$14=y(2)=Acdot 2^3+Bcdot 2^2+2=8A+4B+2$$ Solve for $A$ and $B$, then plug it in to your general solution.
    $endgroup$
    – projectilemotion
    Jan 6 at 21:16












  • $begingroup$
    I appreciate you trying to use the formatting. Next time, use $ or $$ for the entire line, and never use x for multiplication
    $endgroup$
    – Dylan
    Jan 7 at 9:49














1












1








1





$begingroup$



  1. a) Given $x = e^u$ and $$x^2frac{d^2y}{dx^2} - 4x frac{dy}{dx} + 6y = 12$$ show that $$frac{d^2y}{du^2} - 5 frac{dy}{du} + 6y = 12$$


I was able to do this:
$x = e^u$



$$frac{dx}{du} = e^u = x $$



$$frac{dy}{dx} = frac{dy}{du} frac{du}{dx} = frac{1}{x}frac{dy}{du}$$



$$frac{d^2y}{dx^2} = -frac{1}{x^2}frac{dy}{du} + frac{1}{x}frac{d^2y}{du^2}frac{du}{dx} = -frac{1}{x^2}frac{dy}{du} + frac{1}{x^2}frac{d^2y}{du^2}$$



$$x^2left(-frac{1}{x^2}frac{dy}{du} + frac{1}{x^2}frac{d^2y}{du^2}right) -4xleft(frac{1}{x}frac{dy}{du}right) + 6y = 12 $$



$$-frac{dy}{du} + frac{d^2y}{du^2} - 4frac{dy}{du} +6y = 12 $$



$$frac{d^2y}{du^2} - 5frac{dy}{du} + 6y = 12 $$



part b is where I got stuck:



b) Hence solve the equation $$x^2frac{d^2y}{dx^2} - 4xfrac{dy}{dx} + 6y = 12$$ given that $y(1) = 7$ and $y(2) = 14$



$$frac{d^2y}{du^2} - 5frac{dy}{du} + 6y = 12 $$



auxiliary equation: $lambda^2 - 5λ + 6 = 0 $



Hence $lambda = 3, 2$



Complementary function: $$y = Ae^{3u} + Be^{2u}$$



particular integral in the form $y = c$



$$frac{dy}{dx} = 0 = frac{d^2y}{dx^2}$$



$$6C = 12 $$



$$C = 2$$



general solution: $$y = Ae^{3u} + Be^{2u} + 2 $$



where I began to get stuck:



replacing $u = ln x$ means you get left with



$$y = Ax^3 + Bx^2 + 2$$



$$frac{dy}{dx} = 3Ax^2 + 2Bx $$



$$frac{d^2y}{dx^2} = 6Ax + 2B $$



my teacher told me to "substitute this into the solution of the DE and just apply the conditions"



(this is where I think I may me wrong, I think I might have to equate the differential equation to 0 after substituting)



through substituting these values into the differential equation you get:



$$x^2 (6Ax + 2B) - 5(3Ax^2 + 2Bx) + 6 (Ax^3 + Bx^2 + 2) = 12 $$



$$ 6Ax^3 + 2Bx^2 -15Ax^2 - 10Bx + 6Ax^3 + 6Bx^2 + 12 = 12 $$



$$ 12Ax^3 + 8Bx^2 -15Ax^2 - 10Bx = 0 $$



This may resolve very simply, but I didn't want to try without knowing I was doing the correct thing.










share|cite|improve this question











$endgroup$





  1. a) Given $x = e^u$ and $$x^2frac{d^2y}{dx^2} - 4x frac{dy}{dx} + 6y = 12$$ show that $$frac{d^2y}{du^2} - 5 frac{dy}{du} + 6y = 12$$


I was able to do this:
$x = e^u$



$$frac{dx}{du} = e^u = x $$



$$frac{dy}{dx} = frac{dy}{du} frac{du}{dx} = frac{1}{x}frac{dy}{du}$$



$$frac{d^2y}{dx^2} = -frac{1}{x^2}frac{dy}{du} + frac{1}{x}frac{d^2y}{du^2}frac{du}{dx} = -frac{1}{x^2}frac{dy}{du} + frac{1}{x^2}frac{d^2y}{du^2}$$



$$x^2left(-frac{1}{x^2}frac{dy}{du} + frac{1}{x^2}frac{d^2y}{du^2}right) -4xleft(frac{1}{x}frac{dy}{du}right) + 6y = 12 $$



$$-frac{dy}{du} + frac{d^2y}{du^2} - 4frac{dy}{du} +6y = 12 $$



$$frac{d^2y}{du^2} - 5frac{dy}{du} + 6y = 12 $$



part b is where I got stuck:



b) Hence solve the equation $$x^2frac{d^2y}{dx^2} - 4xfrac{dy}{dx} + 6y = 12$$ given that $y(1) = 7$ and $y(2) = 14$



$$frac{d^2y}{du^2} - 5frac{dy}{du} + 6y = 12 $$



auxiliary equation: $lambda^2 - 5λ + 6 = 0 $



Hence $lambda = 3, 2$



Complementary function: $$y = Ae^{3u} + Be^{2u}$$



particular integral in the form $y = c$



$$frac{dy}{dx} = 0 = frac{d^2y}{dx^2}$$



$$6C = 12 $$



$$C = 2$$



general solution: $$y = Ae^{3u} + Be^{2u} + 2 $$



where I began to get stuck:



replacing $u = ln x$ means you get left with



$$y = Ax^3 + Bx^2 + 2$$



$$frac{dy}{dx} = 3Ax^2 + 2Bx $$



$$frac{d^2y}{dx^2} = 6Ax + 2B $$



my teacher told me to "substitute this into the solution of the DE and just apply the conditions"



(this is where I think I may me wrong, I think I might have to equate the differential equation to 0 after substituting)



through substituting these values into the differential equation you get:



$$x^2 (6Ax + 2B) - 5(3Ax^2 + 2Bx) + 6 (Ax^3 + Bx^2 + 2) = 12 $$



$$ 6Ax^3 + 2Bx^2 -15Ax^2 - 10Bx + 6Ax^3 + 6Bx^2 + 12 = 12 $$



$$ 12Ax^3 + 8Bx^2 -15Ax^2 - 10Bx = 0 $$



This may resolve very simply, but I didn't want to try without knowing I was doing the correct thing.







ordinary-differential-equations






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 7 at 9:47









Dylan

12.5k31026




12.5k31026










asked Jan 6 at 20:50







user624037



















  • $begingroup$
    This is way easier than you think. Your general solution $y(x)=Ax^3+Bx^2+2$ is correct. Now, using the boundary conditions, you obtain: $$7=y(1)=Acdot 1^3+Bcdot 1^2+2=A+B+2$$ $$14=y(2)=Acdot 2^3+Bcdot 2^2+2=8A+4B+2$$ Solve for $A$ and $B$, then plug it in to your general solution.
    $endgroup$
    – projectilemotion
    Jan 6 at 21:16












  • $begingroup$
    I appreciate you trying to use the formatting. Next time, use $ or $$ for the entire line, and never use x for multiplication
    $endgroup$
    – Dylan
    Jan 7 at 9:49


















  • $begingroup$
    This is way easier than you think. Your general solution $y(x)=Ax^3+Bx^2+2$ is correct. Now, using the boundary conditions, you obtain: $$7=y(1)=Acdot 1^3+Bcdot 1^2+2=A+B+2$$ $$14=y(2)=Acdot 2^3+Bcdot 2^2+2=8A+4B+2$$ Solve for $A$ and $B$, then plug it in to your general solution.
    $endgroup$
    – projectilemotion
    Jan 6 at 21:16












  • $begingroup$
    I appreciate you trying to use the formatting. Next time, use $ or $$ for the entire line, and never use x for multiplication
    $endgroup$
    – Dylan
    Jan 7 at 9:49
















$begingroup$
This is way easier than you think. Your general solution $y(x)=Ax^3+Bx^2+2$ is correct. Now, using the boundary conditions, you obtain: $$7=y(1)=Acdot 1^3+Bcdot 1^2+2=A+B+2$$ $$14=y(2)=Acdot 2^3+Bcdot 2^2+2=8A+4B+2$$ Solve for $A$ and $B$, then plug it in to your general solution.
$endgroup$
– projectilemotion
Jan 6 at 21:16






$begingroup$
This is way easier than you think. Your general solution $y(x)=Ax^3+Bx^2+2$ is correct. Now, using the boundary conditions, you obtain: $$7=y(1)=Acdot 1^3+Bcdot 1^2+2=A+B+2$$ $$14=y(2)=Acdot 2^3+Bcdot 2^2+2=8A+4B+2$$ Solve for $A$ and $B$, then plug it in to your general solution.
$endgroup$
– projectilemotion
Jan 6 at 21:16














$begingroup$
I appreciate you trying to use the formatting. Next time, use $ or $$ for the entire line, and never use x for multiplication
$endgroup$
– Dylan
Jan 7 at 9:49




$begingroup$
I appreciate you trying to use the formatting. Next time, use $ or $$ for the entire line, and never use x for multiplication
$endgroup$
– Dylan
Jan 7 at 9:49










1 Answer
1






active

oldest

votes


















1












$begingroup$

You're correct that the general solution is



$$ y(x) = Ax^3 + Bx^2 + 2 $$



Using the given boundary conditions we have



begin{align}
y(1) &= A + B + 2 = 7 \
y(2) &= 8A + 4B + 2 = 14
end{align}



or



begin{align}
A + B &= 5\
8A + 4B &= 12
end{align}



Solving the above system gives $A=-2$, $B=7$






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%2f3064380%2fnon-homogenous-differential-equation-help%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









    1












    $begingroup$

    You're correct that the general solution is



    $$ y(x) = Ax^3 + Bx^2 + 2 $$



    Using the given boundary conditions we have



    begin{align}
    y(1) &= A + B + 2 = 7 \
    y(2) &= 8A + 4B + 2 = 14
    end{align}



    or



    begin{align}
    A + B &= 5\
    8A + 4B &= 12
    end{align}



    Solving the above system gives $A=-2$, $B=7$






    share|cite|improve this answer









    $endgroup$


















      1












      $begingroup$

      You're correct that the general solution is



      $$ y(x) = Ax^3 + Bx^2 + 2 $$



      Using the given boundary conditions we have



      begin{align}
      y(1) &= A + B + 2 = 7 \
      y(2) &= 8A + 4B + 2 = 14
      end{align}



      or



      begin{align}
      A + B &= 5\
      8A + 4B &= 12
      end{align}



      Solving the above system gives $A=-2$, $B=7$






      share|cite|improve this answer









      $endgroup$
















        1












        1








        1





        $begingroup$

        You're correct that the general solution is



        $$ y(x) = Ax^3 + Bx^2 + 2 $$



        Using the given boundary conditions we have



        begin{align}
        y(1) &= A + B + 2 = 7 \
        y(2) &= 8A + 4B + 2 = 14
        end{align}



        or



        begin{align}
        A + B &= 5\
        8A + 4B &= 12
        end{align}



        Solving the above system gives $A=-2$, $B=7$






        share|cite|improve this answer









        $endgroup$



        You're correct that the general solution is



        $$ y(x) = Ax^3 + Bx^2 + 2 $$



        Using the given boundary conditions we have



        begin{align}
        y(1) &= A + B + 2 = 7 \
        y(2) &= 8A + 4B + 2 = 14
        end{align}



        or



        begin{align}
        A + B &= 5\
        8A + 4B &= 12
        end{align}



        Solving the above system gives $A=-2$, $B=7$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jan 7 at 9:56









        DylanDylan

        12.5k31026




        12.5k31026






























            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%2f3064380%2fnon-homogenous-differential-equation-help%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

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

            How to fix TextFormField cause rebuild widget in Flutter