How do you differentiate with respect to y?

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












4












$begingroup$


Find the gradient of



$$z=x^y$$



I understand how to get it with respect to $x$ since $y$ is treated as a constant. But when trying to solve it with respect to $y$, why is it incorrect to implicitly differentiate and use the product rule:



$$ln(z)=ycdot ln(x)$$



$$frac(z_y)z=Bigr(ycdot frac1xBigr)+(1cdot ln(x))$$



$$z_y=zBigr(fracyx+ln(x)Bigr)$$



$$z_y=x^yBigr(fracyx+ln(x)Bigr)$$










share|cite|improve this question











$endgroup$
















    4












    $begingroup$


    Find the gradient of



    $$z=x^y$$



    I understand how to get it with respect to $x$ since $y$ is treated as a constant. But when trying to solve it with respect to $y$, why is it incorrect to implicitly differentiate and use the product rule:



    $$ln(z)=ycdot ln(x)$$



    $$frac(z_y)z=Bigr(ycdot frac1xBigr)+(1cdot ln(x))$$



    $$z_y=zBigr(fracyx+ln(x)Bigr)$$



    $$z_y=x^yBigr(fracyx+ln(x)Bigr)$$










    share|cite|improve this question











    $endgroup$














      4












      4








      4


      1



      $begingroup$


      Find the gradient of



      $$z=x^y$$



      I understand how to get it with respect to $x$ since $y$ is treated as a constant. But when trying to solve it with respect to $y$, why is it incorrect to implicitly differentiate and use the product rule:



      $$ln(z)=ycdot ln(x)$$



      $$frac(z_y)z=Bigr(ycdot frac1xBigr)+(1cdot ln(x))$$



      $$z_y=zBigr(fracyx+ln(x)Bigr)$$



      $$z_y=x^yBigr(fracyx+ln(x)Bigr)$$










      share|cite|improve this question











      $endgroup$




      Find the gradient of



      $$z=x^y$$



      I understand how to get it with respect to $x$ since $y$ is treated as a constant. But when trying to solve it with respect to $y$, why is it incorrect to implicitly differentiate and use the product rule:



      $$ln(z)=ycdot ln(x)$$



      $$frac(z_y)z=Bigr(ycdot frac1xBigr)+(1cdot ln(x))$$



      $$z_y=zBigr(fracyx+ln(x)Bigr)$$



      $$z_y=x^yBigr(fracyx+ln(x)Bigr)$$







      derivatives






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Jan 15 at 1:14









      Xander Henderson

      14.3k103554




      14.3k103554










      asked Jan 15 at 1:06









      Random StudentRandom Student

      443




      443




















          5 Answers
          5






          active

          oldest

          votes


















          2












          $begingroup$

          In single-variable calculus, a first application of implicit differentiation is typically to find the derivative of $x mapsto a^x$, where $a > 0$. The typical argument is
          beginalign*
          y = a^x
          &implies log(y) = xlog(a) \
          &implies frac1y y' = log(a) \
          &implies y' = ylog(a) = a^x log(a).
          endalign*

          In your problem, when you differentiate with respect to $y$, you need to regard $x$ as a constant (you should also probably assume that $x > 0$). You can then apply the single-variable result to get
          $$ z_y
          = fracmathrmdmathrmdy x^y
          = x^ylog(x).
          $$






          share|cite|improve this answer









          $endgroup$




















            2












            $begingroup$

            Note that $x $ is not a function of $y $. Hence $x_y=0$. So the correct one is:



            $$ln(z)=ycdotln(x)$$



            $$frac(z_y)z=1cdotln(x)$$



            $$z_y=zln(x)$$



            $$z_y=x^yln(x)$$






            share|cite|improve this answer









            $endgroup$




















              1












              $begingroup$

              When take the derivative of $x^y$ with respect to $y$, are you treating $x$ as a constant or as a function of $y$?



              If the former then (using your notation) you get $fracz_yz=1 times ln(x)$ and so $z_y = x^y ln(x)$



              If the latter then you get $fracz_yz=y times frac1xtimes x_y+1 times ln(x)$ and so $z_y =y x^y-1 x_y+ x^y ln(x)$. Then you might also want to say $z_x = y x^y-1+ x^y ln(x) y_x$ when taking the derivative of $x^y$ with respect to $x$






              share|cite|improve this answer









              $endgroup$




















                0












                $begingroup$

                When we're differentiating with respect to $y$, $x$ should be treated as a constant. The $frac yx$ term in there that comes from differentiating $x$ shouldn't be there.






                share|cite|improve this answer









                $endgroup$




















                  0












                  $begingroup$

                  The variables $x$ and $y$ are to be considered independent when computing the gradient of $z$, that is,



                  $nabla z = (z_x, z_y), tag 1$



                  which is a vector. We have



                  $z = x^y, tag 2$



                  whence



                  $z_x = yx^y - 1, tag 3$



                  as our OP Random Student has noted. As for $z_y$, we have



                  $ln z = y ln x, tag 4$



                  whence



                  $dfracz_yz = ln x, tag 5$



                  or



                  $z_y = z ln x = x^y ln x; tag 6$



                  thus,



                  $nabla z = (z_x, z_y) = (yx^y - 1, x^y ln x). tag 7$



                  In (4)-(6), we have implicitly differentated $z$ with respect to $y$ alone, holding $x$ constant.






                  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%2f3073952%2fhow-do-you-differentiate-with-respect-to-y%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown

























                    5 Answers
                    5






                    active

                    oldest

                    votes








                    5 Answers
                    5






                    active

                    oldest

                    votes









                    active

                    oldest

                    votes






                    active

                    oldest

                    votes









                    2












                    $begingroup$

                    In single-variable calculus, a first application of implicit differentiation is typically to find the derivative of $x mapsto a^x$, where $a > 0$. The typical argument is
                    beginalign*
                    y = a^x
                    &implies log(y) = xlog(a) \
                    &implies frac1y y' = log(a) \
                    &implies y' = ylog(a) = a^x log(a).
                    endalign*

                    In your problem, when you differentiate with respect to $y$, you need to regard $x$ as a constant (you should also probably assume that $x > 0$). You can then apply the single-variable result to get
                    $$ z_y
                    = fracmathrmdmathrmdy x^y
                    = x^ylog(x).
                    $$






                    share|cite|improve this answer









                    $endgroup$

















                      2












                      $begingroup$

                      In single-variable calculus, a first application of implicit differentiation is typically to find the derivative of $x mapsto a^x$, where $a > 0$. The typical argument is
                      beginalign*
                      y = a^x
                      &implies log(y) = xlog(a) \
                      &implies frac1y y' = log(a) \
                      &implies y' = ylog(a) = a^x log(a).
                      endalign*

                      In your problem, when you differentiate with respect to $y$, you need to regard $x$ as a constant (you should also probably assume that $x > 0$). You can then apply the single-variable result to get
                      $$ z_y
                      = fracmathrmdmathrmdy x^y
                      = x^ylog(x).
                      $$






                      share|cite|improve this answer









                      $endgroup$















                        2












                        2








                        2





                        $begingroup$

                        In single-variable calculus, a first application of implicit differentiation is typically to find the derivative of $x mapsto a^x$, where $a > 0$. The typical argument is
                        beginalign*
                        y = a^x
                        &implies log(y) = xlog(a) \
                        &implies frac1y y' = log(a) \
                        &implies y' = ylog(a) = a^x log(a).
                        endalign*

                        In your problem, when you differentiate with respect to $y$, you need to regard $x$ as a constant (you should also probably assume that $x > 0$). You can then apply the single-variable result to get
                        $$ z_y
                        = fracmathrmdmathrmdy x^y
                        = x^ylog(x).
                        $$






                        share|cite|improve this answer









                        $endgroup$



                        In single-variable calculus, a first application of implicit differentiation is typically to find the derivative of $x mapsto a^x$, where $a > 0$. The typical argument is
                        beginalign*
                        y = a^x
                        &implies log(y) = xlog(a) \
                        &implies frac1y y' = log(a) \
                        &implies y' = ylog(a) = a^x log(a).
                        endalign*

                        In your problem, when you differentiate with respect to $y$, you need to regard $x$ as a constant (you should also probably assume that $x > 0$). You can then apply the single-variable result to get
                        $$ z_y
                        = fracmathrmdmathrmdy x^y
                        = x^ylog(x).
                        $$







                        share|cite|improve this answer












                        share|cite|improve this answer



                        share|cite|improve this answer










                        answered Jan 15 at 1:13









                        Xander HendersonXander Henderson

                        14.3k103554




                        14.3k103554





















                            2












                            $begingroup$

                            Note that $x $ is not a function of $y $. Hence $x_y=0$. So the correct one is:



                            $$ln(z)=ycdotln(x)$$



                            $$frac(z_y)z=1cdotln(x)$$



                            $$z_y=zln(x)$$



                            $$z_y=x^yln(x)$$






                            share|cite|improve this answer









                            $endgroup$

















                              2












                              $begingroup$

                              Note that $x $ is not a function of $y $. Hence $x_y=0$. So the correct one is:



                              $$ln(z)=ycdotln(x)$$



                              $$frac(z_y)z=1cdotln(x)$$



                              $$z_y=zln(x)$$



                              $$z_y=x^yln(x)$$






                              share|cite|improve this answer









                              $endgroup$















                                2












                                2








                                2





                                $begingroup$

                                Note that $x $ is not a function of $y $. Hence $x_y=0$. So the correct one is:



                                $$ln(z)=ycdotln(x)$$



                                $$frac(z_y)z=1cdotln(x)$$



                                $$z_y=zln(x)$$



                                $$z_y=x^yln(x)$$






                                share|cite|improve this answer









                                $endgroup$



                                Note that $x $ is not a function of $y $. Hence $x_y=0$. So the correct one is:



                                $$ln(z)=ycdotln(x)$$



                                $$frac(z_y)z=1cdotln(x)$$



                                $$z_y=zln(x)$$



                                $$z_y=x^yln(x)$$







                                share|cite|improve this answer












                                share|cite|improve this answer



                                share|cite|improve this answer










                                answered Jan 15 at 1:15









                                Thomas ShelbyThomas Shelby

                                2,710421




                                2,710421





















                                    1












                                    $begingroup$

                                    When take the derivative of $x^y$ with respect to $y$, are you treating $x$ as a constant or as a function of $y$?



                                    If the former then (using your notation) you get $fracz_yz=1 times ln(x)$ and so $z_y = x^y ln(x)$



                                    If the latter then you get $fracz_yz=y times frac1xtimes x_y+1 times ln(x)$ and so $z_y =y x^y-1 x_y+ x^y ln(x)$. Then you might also want to say $z_x = y x^y-1+ x^y ln(x) y_x$ when taking the derivative of $x^y$ with respect to $x$






                                    share|cite|improve this answer









                                    $endgroup$

















                                      1












                                      $begingroup$

                                      When take the derivative of $x^y$ with respect to $y$, are you treating $x$ as a constant or as a function of $y$?



                                      If the former then (using your notation) you get $fracz_yz=1 times ln(x)$ and so $z_y = x^y ln(x)$



                                      If the latter then you get $fracz_yz=y times frac1xtimes x_y+1 times ln(x)$ and so $z_y =y x^y-1 x_y+ x^y ln(x)$. Then you might also want to say $z_x = y x^y-1+ x^y ln(x) y_x$ when taking the derivative of $x^y$ with respect to $x$






                                      share|cite|improve this answer









                                      $endgroup$















                                        1












                                        1








                                        1





                                        $begingroup$

                                        When take the derivative of $x^y$ with respect to $y$, are you treating $x$ as a constant or as a function of $y$?



                                        If the former then (using your notation) you get $fracz_yz=1 times ln(x)$ and so $z_y = x^y ln(x)$



                                        If the latter then you get $fracz_yz=y times frac1xtimes x_y+1 times ln(x)$ and so $z_y =y x^y-1 x_y+ x^y ln(x)$. Then you might also want to say $z_x = y x^y-1+ x^y ln(x) y_x$ when taking the derivative of $x^y$ with respect to $x$






                                        share|cite|improve this answer









                                        $endgroup$



                                        When take the derivative of $x^y$ with respect to $y$, are you treating $x$ as a constant or as a function of $y$?



                                        If the former then (using your notation) you get $fracz_yz=1 times ln(x)$ and so $z_y = x^y ln(x)$



                                        If the latter then you get $fracz_yz=y times frac1xtimes x_y+1 times ln(x)$ and so $z_y =y x^y-1 x_y+ x^y ln(x)$. Then you might also want to say $z_x = y x^y-1+ x^y ln(x) y_x$ when taking the derivative of $x^y$ with respect to $x$







                                        share|cite|improve this answer












                                        share|cite|improve this answer



                                        share|cite|improve this answer










                                        answered Jan 15 at 1:13









                                        HenryHenry

                                        99.7k479165




                                        99.7k479165





















                                            0












                                            $begingroup$

                                            When we're differentiating with respect to $y$, $x$ should be treated as a constant. The $frac yx$ term in there that comes from differentiating $x$ shouldn't be there.






                                            share|cite|improve this answer









                                            $endgroup$

















                                              0












                                              $begingroup$

                                              When we're differentiating with respect to $y$, $x$ should be treated as a constant. The $frac yx$ term in there that comes from differentiating $x$ shouldn't be there.






                                              share|cite|improve this answer









                                              $endgroup$















                                                0












                                                0








                                                0





                                                $begingroup$

                                                When we're differentiating with respect to $y$, $x$ should be treated as a constant. The $frac yx$ term in there that comes from differentiating $x$ shouldn't be there.






                                                share|cite|improve this answer









                                                $endgroup$



                                                When we're differentiating with respect to $y$, $x$ should be treated as a constant. The $frac yx$ term in there that comes from differentiating $x$ shouldn't be there.







                                                share|cite|improve this answer












                                                share|cite|improve this answer



                                                share|cite|improve this answer










                                                answered Jan 15 at 1:11









                                                jmerryjmerry

                                                6,232718




                                                6,232718





















                                                    0












                                                    $begingroup$

                                                    The variables $x$ and $y$ are to be considered independent when computing the gradient of $z$, that is,



                                                    $nabla z = (z_x, z_y), tag 1$



                                                    which is a vector. We have



                                                    $z = x^y, tag 2$



                                                    whence



                                                    $z_x = yx^y - 1, tag 3$



                                                    as our OP Random Student has noted. As for $z_y$, we have



                                                    $ln z = y ln x, tag 4$



                                                    whence



                                                    $dfracz_yz = ln x, tag 5$



                                                    or



                                                    $z_y = z ln x = x^y ln x; tag 6$



                                                    thus,



                                                    $nabla z = (z_x, z_y) = (yx^y - 1, x^y ln x). tag 7$



                                                    In (4)-(6), we have implicitly differentated $z$ with respect to $y$ alone, holding $x$ constant.






                                                    share|cite|improve this answer











                                                    $endgroup$

















                                                      0












                                                      $begingroup$

                                                      The variables $x$ and $y$ are to be considered independent when computing the gradient of $z$, that is,



                                                      $nabla z = (z_x, z_y), tag 1$



                                                      which is a vector. We have



                                                      $z = x^y, tag 2$



                                                      whence



                                                      $z_x = yx^y - 1, tag 3$



                                                      as our OP Random Student has noted. As for $z_y$, we have



                                                      $ln z = y ln x, tag 4$



                                                      whence



                                                      $dfracz_yz = ln x, tag 5$



                                                      or



                                                      $z_y = z ln x = x^y ln x; tag 6$



                                                      thus,



                                                      $nabla z = (z_x, z_y) = (yx^y - 1, x^y ln x). tag 7$



                                                      In (4)-(6), we have implicitly differentated $z$ with respect to $y$ alone, holding $x$ constant.






                                                      share|cite|improve this answer











                                                      $endgroup$















                                                        0












                                                        0








                                                        0





                                                        $begingroup$

                                                        The variables $x$ and $y$ are to be considered independent when computing the gradient of $z$, that is,



                                                        $nabla z = (z_x, z_y), tag 1$



                                                        which is a vector. We have



                                                        $z = x^y, tag 2$



                                                        whence



                                                        $z_x = yx^y - 1, tag 3$



                                                        as our OP Random Student has noted. As for $z_y$, we have



                                                        $ln z = y ln x, tag 4$



                                                        whence



                                                        $dfracz_yz = ln x, tag 5$



                                                        or



                                                        $z_y = z ln x = x^y ln x; tag 6$



                                                        thus,



                                                        $nabla z = (z_x, z_y) = (yx^y - 1, x^y ln x). tag 7$



                                                        In (4)-(6), we have implicitly differentated $z$ with respect to $y$ alone, holding $x$ constant.






                                                        share|cite|improve this answer











                                                        $endgroup$



                                                        The variables $x$ and $y$ are to be considered independent when computing the gradient of $z$, that is,



                                                        $nabla z = (z_x, z_y), tag 1$



                                                        which is a vector. We have



                                                        $z = x^y, tag 2$



                                                        whence



                                                        $z_x = yx^y - 1, tag 3$



                                                        as our OP Random Student has noted. As for $z_y$, we have



                                                        $ln z = y ln x, tag 4$



                                                        whence



                                                        $dfracz_yz = ln x, tag 5$



                                                        or



                                                        $z_y = z ln x = x^y ln x; tag 6$



                                                        thus,



                                                        $nabla z = (z_x, z_y) = (yx^y - 1, x^y ln x). tag 7$



                                                        In (4)-(6), we have implicitly differentated $z$ with respect to $y$ alone, holding $x$ constant.







                                                        share|cite|improve this answer














                                                        share|cite|improve this answer



                                                        share|cite|improve this answer








                                                        edited Jan 15 at 3:29

























                                                        answered Jan 15 at 1:23









                                                        Robert LewisRobert Lewis

                                                        45.6k23065




                                                        45.6k23065



























                                                            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%2f3073952%2fhow-do-you-differentiate-with-respect-to-y%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

                                                            Peggy Mitchell

                                                            Palaiologos

                                                            The Forum (Inglewood, California)