Problem with the Derivative Operator (')











up vote
2
down vote

favorite
2












I was working through some physics equations and came to a dead stop when I couldn't get the Derivative operator to work on equations with 2 variables. An example I striped the problem down to is below. What subtle coding principal am I missing about symbolics? I have the documentation open on the other screen and it's not exactly clear how to work with pairs as inputs to functions. I looked at everything with Fullform and didn't see anything too unexpected. Is there an explanation as to what's going on?



h[h_] := h^2 + 2 h +3
h'[u]



2+2 u




(returns as expected)



f[{x_,y_}] := x^4 + y^4
Derivative[1][f][{x,y}]
f'[{x,y}]



f′[{x,y}]



f′[{x,y}]











share|improve this question
























  • Better use D for total derivatives, e.g. D[f[{x, y}], {{x, y}, 1}] and D[f[{x, y}], {{x, y}, 2}].
    – Henrik Schumacher
    2 days ago















up vote
2
down vote

favorite
2












I was working through some physics equations and came to a dead stop when I couldn't get the Derivative operator to work on equations with 2 variables. An example I striped the problem down to is below. What subtle coding principal am I missing about symbolics? I have the documentation open on the other screen and it's not exactly clear how to work with pairs as inputs to functions. I looked at everything with Fullform and didn't see anything too unexpected. Is there an explanation as to what's going on?



h[h_] := h^2 + 2 h +3
h'[u]



2+2 u




(returns as expected)



f[{x_,y_}] := x^4 + y^4
Derivative[1][f][{x,y}]
f'[{x,y}]



f′[{x,y}]



f′[{x,y}]











share|improve this question
























  • Better use D for total derivatives, e.g. D[f[{x, y}], {{x, y}, 1}] and D[f[{x, y}], {{x, y}, 2}].
    – Henrik Schumacher
    2 days ago













up vote
2
down vote

favorite
2









up vote
2
down vote

favorite
2






2





I was working through some physics equations and came to a dead stop when I couldn't get the Derivative operator to work on equations with 2 variables. An example I striped the problem down to is below. What subtle coding principal am I missing about symbolics? I have the documentation open on the other screen and it's not exactly clear how to work with pairs as inputs to functions. I looked at everything with Fullform and didn't see anything too unexpected. Is there an explanation as to what's going on?



h[h_] := h^2 + 2 h +3
h'[u]



2+2 u




(returns as expected)



f[{x_,y_}] := x^4 + y^4
Derivative[1][f][{x,y}]
f'[{x,y}]



f′[{x,y}]



f′[{x,y}]











share|improve this question















I was working through some physics equations and came to a dead stop when I couldn't get the Derivative operator to work on equations with 2 variables. An example I striped the problem down to is below. What subtle coding principal am I missing about symbolics? I have the documentation open on the other screen and it's not exactly clear how to work with pairs as inputs to functions. I looked at everything with Fullform and didn't see anything too unexpected. Is there an explanation as to what's going on?



h[h_] := h^2 + 2 h +3
h'[u]



2+2 u




(returns as expected)



f[{x_,y_}] := x^4 + y^4
Derivative[1][f][{x,y}]
f'[{x,y}]



f′[{x,y}]



f′[{x,y}]








list-manipulation functions education






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago









Henrik Schumacher

45.1k365131




45.1k365131










asked 2 days ago









BBirdsell

367313




367313












  • Better use D for total derivatives, e.g. D[f[{x, y}], {{x, y}, 1}] and D[f[{x, y}], {{x, y}, 2}].
    – Henrik Schumacher
    2 days ago


















  • Better use D for total derivatives, e.g. D[f[{x, y}], {{x, y}, 1}] and D[f[{x, y}], {{x, y}, 2}].
    – Henrik Schumacher
    2 days ago
















Better use D for total derivatives, e.g. D[f[{x, y}], {{x, y}, 1}] and D[f[{x, y}], {{x, y}, 2}].
– Henrik Schumacher
2 days ago




Better use D for total derivatives, e.g. D[f[{x, y}], {{x, y}, 1}] and D[f[{x, y}], {{x, y}, 2}].
– Henrik Schumacher
2 days ago










2 Answers
2






active

oldest

votes

















up vote
5
down vote



accepted










When a function has 2 arguments (not a single list argument), use:



f[x_, y_] := x^4 + y^4
Derivative[1, 0][f][x, y]
Derivative[0, 1][f][x, y]



4 x^3



4 y^3







share|improve this answer





















  • Ah. So I was miss reading the documentation. Thank you.
    – BBirdsell
    2 days ago


















up vote
1
down vote













Here are two approaches. The first requires perhaps more tolerance for "noisy" notation. Note that I did not use a vector argument. If you must, the notation will be correspondingly "noisier".



Clear[f, x, y]
Dt[f[x, y]]
Grad[f[x, y], {x, y}].{dx, dy}





share|improve this answer





















    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: "387"
    };
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f186177%2fproblem-with-the-derivative-operator%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    5
    down vote



    accepted










    When a function has 2 arguments (not a single list argument), use:



    f[x_, y_] := x^4 + y^4
    Derivative[1, 0][f][x, y]
    Derivative[0, 1][f][x, y]



    4 x^3



    4 y^3







    share|improve this answer





















    • Ah. So I was miss reading the documentation. Thank you.
      – BBirdsell
      2 days ago















    up vote
    5
    down vote



    accepted










    When a function has 2 arguments (not a single list argument), use:



    f[x_, y_] := x^4 + y^4
    Derivative[1, 0][f][x, y]
    Derivative[0, 1][f][x, y]



    4 x^3



    4 y^3







    share|improve this answer





















    • Ah. So I was miss reading the documentation. Thank you.
      – BBirdsell
      2 days ago













    up vote
    5
    down vote



    accepted







    up vote
    5
    down vote



    accepted






    When a function has 2 arguments (not a single list argument), use:



    f[x_, y_] := x^4 + y^4
    Derivative[1, 0][f][x, y]
    Derivative[0, 1][f][x, y]



    4 x^3



    4 y^3







    share|improve this answer












    When a function has 2 arguments (not a single list argument), use:



    f[x_, y_] := x^4 + y^4
    Derivative[1, 0][f][x, y]
    Derivative[0, 1][f][x, y]



    4 x^3



    4 y^3








    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered 2 days ago









    Carl Woll

    65.2k285171




    65.2k285171












    • Ah. So I was miss reading the documentation. Thank you.
      – BBirdsell
      2 days ago


















    • Ah. So I was miss reading the documentation. Thank you.
      – BBirdsell
      2 days ago
















    Ah. So I was miss reading the documentation. Thank you.
    – BBirdsell
    2 days ago




    Ah. So I was miss reading the documentation. Thank you.
    – BBirdsell
    2 days ago










    up vote
    1
    down vote













    Here are two approaches. The first requires perhaps more tolerance for "noisy" notation. Note that I did not use a vector argument. If you must, the notation will be correspondingly "noisier".



    Clear[f, x, y]
    Dt[f[x, y]]
    Grad[f[x, y], {x, y}].{dx, dy}





    share|improve this answer

























      up vote
      1
      down vote













      Here are two approaches. The first requires perhaps more tolerance for "noisy" notation. Note that I did not use a vector argument. If you must, the notation will be correspondingly "noisier".



      Clear[f, x, y]
      Dt[f[x, y]]
      Grad[f[x, y], {x, y}].{dx, dy}





      share|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        Here are two approaches. The first requires perhaps more tolerance for "noisy" notation. Note that I did not use a vector argument. If you must, the notation will be correspondingly "noisier".



        Clear[f, x, y]
        Dt[f[x, y]]
        Grad[f[x, y], {x, y}].{dx, dy}





        share|improve this answer












        Here are two approaches. The first requires perhaps more tolerance for "noisy" notation. Note that I did not use a vector argument. If you must, the notation will be correspondingly "noisier".



        Clear[f, x, y]
        Dt[f[x, y]]
        Grad[f[x, y], {x, y}].{dx, dy}






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 days ago









        Alan

        6,1781124




        6,1781124






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f186177%2fproblem-with-the-derivative-operator%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

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

             ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕