How do you differentiate with respect to y?












3












$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 frac{1}{x}Bigr)+(1cdot ln(x))$$



$$z_y=zBigr(frac{y}{x}+ln(x)Bigr)$$



$$z_y=x^yBigr(frac{y}{x}+ln(x)Bigr)$$










share|cite|improve this question









New contributor




Random Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$

















    3












    $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 frac{1}{x}Bigr)+(1cdot ln(x))$$



    $$z_y=zBigr(frac{y}{x}+ln(x)Bigr)$$



    $$z_y=x^yBigr(frac{y}{x}+ln(x)Bigr)$$










    share|cite|improve this question









    New contributor




    Random Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.







    $endgroup$















      3












      3








      3


      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 frac{1}{x}Bigr)+(1cdot ln(x))$$



      $$z_y=zBigr(frac{y}{x}+ln(x)Bigr)$$



      $$z_y=x^yBigr(frac{y}{x}+ln(x)Bigr)$$










      share|cite|improve this question









      New contributor




      Random Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.







      $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 frac{1}{x}Bigr)+(1cdot ln(x))$$



      $$z_y=zBigr(frac{y}{x}+ln(x)Bigr)$$



      $$z_y=x^yBigr(frac{y}{x}+ln(x)Bigr)$$







      derivatives






      share|cite|improve this question









      New contributor




      Random Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|cite|improve this question









      New contributor




      Random Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|cite|improve this question




      share|cite|improve this question








      edited 4 hours ago









      Xander Henderson

      14.2k103554




      14.2k103554






      New contributor




      Random Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 4 hours ago









      Random StudentRandom Student

      182




      182




      New contributor




      Random Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Random Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Random Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          5 Answers
          5






          active

          oldest

          votes


















          1












          $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
          begin{align*}
          y = a^x
          &implies log(y) = xlog(a) \
          &implies frac{1}{y} y' = log(a) \
          &implies y' = ylog(a) = a^x log(a).
          end{align*}

          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
          = frac{mathrm{d}}{mathrm{d}y} x^y
          = x^ylog(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 $frac{z_y}{z}=1 times ln(x)$ and so $z_y = x^y ln(x)$



            If the latter then you get $frac{z_y}{z}=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$

                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$





















                  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



                  $dfrac{z_y}{z} = 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
                    });


                    }
                    });






                    Random Student is a new contributor. Be nice, and check out our Code of Conduct.










                    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









                    1












                    $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
                    begin{align*}
                    y = a^x
                    &implies log(y) = xlog(a) \
                    &implies frac{1}{y} y' = log(a) \
                    &implies y' = ylog(a) = a^x log(a).
                    end{align*}

                    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
                    = frac{mathrm{d}}{mathrm{d}y} x^y
                    = x^ylog(x).
                    $$






                    share|cite|improve this answer









                    $endgroup$


















                      1












                      $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
                      begin{align*}
                      y = a^x
                      &implies log(y) = xlog(a) \
                      &implies frac{1}{y} y' = log(a) \
                      &implies y' = ylog(a) = a^x log(a).
                      end{align*}

                      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
                      = frac{mathrm{d}}{mathrm{d}y} x^y
                      = x^ylog(x).
                      $$






                      share|cite|improve this answer









                      $endgroup$
















                        1












                        1








                        1





                        $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
                        begin{align*}
                        y = a^x
                        &implies log(y) = xlog(a) \
                        &implies frac{1}{y} y' = log(a) \
                        &implies y' = ylog(a) = a^x log(a).
                        end{align*}

                        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
                        = frac{mathrm{d}}{mathrm{d}y} 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
                        begin{align*}
                        y = a^x
                        &implies log(y) = xlog(a) \
                        &implies frac{1}{y} y' = log(a) \
                        &implies y' = ylog(a) = a^x log(a).
                        end{align*}

                        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
                        = frac{mathrm{d}}{mathrm{d}y} x^y
                        = x^ylog(x).
                        $$







                        share|cite|improve this answer












                        share|cite|improve this answer



                        share|cite|improve this answer










                        answered 4 hours ago









                        Xander HendersonXander Henderson

                        14.2k103554




                        14.2k103554























                            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 $frac{z_y}{z}=1 times ln(x)$ and so $z_y = x^y ln(x)$



                            If the latter then you get $frac{z_y}{z}=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 $frac{z_y}{z}=1 times ln(x)$ and so $z_y = x^y ln(x)$



                              If the latter then you get $frac{z_y}{z}=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 $frac{z_y}{z}=1 times ln(x)$ and so $z_y = x^y ln(x)$



                                If the latter then you get $frac{z_y}{z}=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 $frac{z_y}{z}=1 times ln(x)$ and so $z_y = x^y ln(x)$



                                If the latter then you get $frac{z_y}{z}=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 4 hours ago









                                HenryHenry

                                98.7k476163




                                98.7k476163























                                    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 4 hours ago









                                        jmerryjmerry

                                        3,592514




                                        3,592514























                                            0












                                            $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$


















                                              0












                                              $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$
















                                                0












                                                0








                                                0





                                                $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 4 hours ago









                                                Thomas ShelbyThomas Shelby

                                                2,119220




                                                2,119220























                                                    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



                                                    $dfrac{z_y}{z} = 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



                                                      $dfrac{z_y}{z} = 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



                                                        $dfrac{z_y}{z} = 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



                                                        $dfrac{z_y}{z} = 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 2 hours ago

























                                                        answered 4 hours ago









                                                        Robert LewisRobert Lewis

                                                        44.5k22964




                                                        44.5k22964






















                                                            Random Student is a new contributor. Be nice, and check out our Code of Conduct.










                                                            draft saved

                                                            draft discarded


















                                                            Random Student is a new contributor. Be nice, and check out our Code of Conduct.













                                                            Random Student is a new contributor. Be nice, and check out our Code of Conduct.












                                                            Random Student is a new contributor. Be nice, and check out our Code of Conduct.
















                                                            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

                                                            404 Error Contact Form 7 ajax form submitting

                                                            How to know if a Active Directory user can login interactively

                                                            Refactoring coordinates for Minecraft Pi buildings written in Python