Solveeit Logo

Question

Question: What is the derivative of \(w=\sqrt{{{x}^{2}}+{{y}^{2}}+{{z}^{2}}}?\)...

What is the derivative of w=x2+y2+z2?w=\sqrt{{{x}^{2}}+{{y}^{2}}+{{z}^{2}}}?

Explanation

Solution

We solve this question by using the concept of partial differentiation since the question involves a multivariable function. We partially differentiate the function w with respect to x, y and z individually. Here, x, y and z are independent variables.

Complete step by step solution:
In order to solve this question, let us consider the equation given in the question.
w=x2+y2+z2\Rightarrow w=\sqrt{{{x}^{2}}+{{y}^{2}}+{{z}^{2}}}
Now, let us first differentiate the function with respect to the variable x partially. This means that we consider the variables y and z as constants while partially differentiating with respect to x.
wx=xx2+y2+z2\Rightarrow \dfrac{\partial w}{\partial x}=\dfrac{\partial }{\partial x}\sqrt{{{x}^{2}}+{{y}^{2}}+{{z}^{2}}}
The square root can be written as the power 12.\dfrac{1}{2}.
wx=x(x2+y2+z2)12\Rightarrow \dfrac{\partial w}{\partial x}=\dfrac{\partial }{\partial x}{{\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)}^{\dfrac{1}{2}}}
We use the chain rule to differentiate this function. By the use of the chain rule, we differentiate the outer function first followed by the inner function. The outer function in this case is (x2+y2+z2)12{{\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)}^{\dfrac{1}{2}}} and the inner function is x2+y2+z2.{{x}^{2}}+{{y}^{2}}+{{z}^{2}}. Differentiating the outer function first,
wx=12(x2+y2+z2)121.x(x2+y2+z2)\Rightarrow \dfrac{\partial w}{\partial x}=\dfrac{1}{2}{{\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)}^{\dfrac{1}{2}-1}}.\dfrac{\partial }{\partial x}\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)
Here, the y2{{y}^{2}} and z2{{z}^{2}} terms are treated as constants. Differentiating the inner function,
wx=12(x2+y2+z2)12.2x\Rightarrow \dfrac{\partial w}{\partial x}=\dfrac{1}{2}{{\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)}^{-\dfrac{1}{2}}}.2x
Cancelling the 2 in the numerator and denominator and since (x2+y2+z2)12{{\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)}^{-\dfrac{1}{2}}} can be written as 1x2+y2+z2.\dfrac{1}{\sqrt{{{x}^{2}}+{{y}^{2}}+{{z}^{2}}}}.
wx=xx2+y2+z2\Rightarrow \dfrac{\partial w}{\partial x}=\dfrac{x}{\sqrt{{{x}^{2}}+{{y}^{2}}+{{z}^{2}}}}
Similarly, we differentiate with respect to y and z. Partially differentiating with respect to y,
wy=yx2+y2+z2\Rightarrow \dfrac{\partial w}{\partial y}=\dfrac{\partial }{\partial y}\sqrt{{{x}^{2}}+{{y}^{2}}+{{z}^{2}}}
The square root can be written as the power 12.\dfrac{1}{2}.
wy=y(x2+y2+z2)12\Rightarrow \dfrac{\partial w}{\partial y}=\dfrac{\partial }{\partial y}{{\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)}^{\dfrac{1}{2}}}
By the use of the chain rule, we differentiate the outer function first followed by the inner function. The outer function in this case is (x2+y2+z2)12{{\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)}^{\dfrac{1}{2}}} and the inner function is x2+y2+z2.{{x}^{2}}+{{y}^{2}}+{{z}^{2}}. Differentiating the outer function first,
wy=12(x2+y2+z2)121.y(x2+y2+z2)\Rightarrow \dfrac{\partial w}{\partial y}=\dfrac{1}{2}{{\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)}^{\dfrac{1}{2}-1}}.\dfrac{\partial }{\partial y}\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)
Here, the x2{{x}^{2}} and z2{{z}^{2}} terms are treated as constants. Differentiating the inner function,
wy=12(x2+y2+z2)12.2y\Rightarrow \dfrac{\partial w}{\partial y}=\dfrac{1}{2}{{\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)}^{-\dfrac{1}{2}}}.2y
Cancelling the 2 in the numerator and denominator and since (x2+y2+z2)12{{\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)}^{-\dfrac{1}{2}}} can be written as 1x2+y2+z2.\dfrac{1}{\sqrt{{{x}^{2}}+{{y}^{2}}+{{z}^{2}}}}.
wy=yx2+y2+z2\Rightarrow \dfrac{\partial w}{\partial y}=\dfrac{y}{\sqrt{{{x}^{2}}+{{y}^{2}}+{{z}^{2}}}}
Similarly, now we differentiate with respect to z. Partially differentiating the given function with respect to z,
wz=zx2+y2+z2\Rightarrow \dfrac{\partial w}{\partial z}=\dfrac{\partial }{\partial z}\sqrt{{{x}^{2}}+{{y}^{2}}+{{z}^{2}}}
The square root can be written as the power 12.\dfrac{1}{2}.
wz=z(x2+y2+z2)12\Rightarrow \dfrac{\partial w}{\partial z}=\dfrac{\partial }{\partial z}{{\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)}^{\dfrac{1}{2}}}
By the use of the chain rule, we differentiate the outer function first followed by the inner function. The outer function in this case is (x2+y2+z2)12{{\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)}^{\dfrac{1}{2}}} and the inner function is x2+y2+z2.{{x}^{2}}+{{y}^{2}}+{{z}^{2}}. Differentiating the outer function first,
wz=12(x2+y2+z2)121.z(x2+y2+z2)\Rightarrow \dfrac{\partial w}{\partial z}=\dfrac{1}{2}{{\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)}^{\dfrac{1}{2}-1}}.\dfrac{\partial }{\partial z}\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)
Here, the x2{{x}^{2}} and y2{{y}^{2}} terms are treated as constants. Differentiating the inner function,
wz=12(x2+y2+z2)12.2y\Rightarrow \dfrac{\partial w}{\partial z}=\dfrac{1}{2}{{\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)}^{-\dfrac{1}{2}}}.2y
Cancelling the 2 in the numerator and denominator and since (x2+y2+z2)12{{\left( {{x}^{2}}+{{y}^{2}}+{{z}^{2}} \right)}^{-\dfrac{1}{2}}} can be written as 1x2+y2+z2.\dfrac{1}{\sqrt{{{x}^{2}}+{{y}^{2}}+{{z}^{2}}}}.
wz=zx2+y2+z2\Rightarrow \dfrac{\partial w}{\partial z}=\dfrac{z}{\sqrt{{{x}^{2}}+{{y}^{2}}+{{z}^{2}}}}
Hence, the derivative of w=x2+y2+z2w=\sqrt{{{x}^{2}}+{{y}^{2}}+{{z}^{2}}} is represented by, wx=xx2+y2+z2\dfrac{\partial w}{\partial x}=\dfrac{x}{\sqrt{{{x}^{2}}+{{y}^{2}}+{{z}^{2}}}} , wy=yx2+y2+z2\dfrac{\partial w}{\partial y}=\dfrac{y}{\sqrt{{{x}^{2}}+{{y}^{2}}+{{z}^{2}}}} , and wz=zx2+y2+z2.\dfrac{\partial w}{\partial z}=\dfrac{z}{\sqrt{{{x}^{2}}+{{y}^{2}}+{{z}^{2}}}}.

Note:
We need to know the basic formulae for partial differentiation. We need to be careful while partially differentiating with respect to a variable because we need to treat all the other variables as constants else it would lead to a wrong result.