Partial Derivative Proof
1. **State the problem:** Given the equation $$z(x + y) = x^2 + y^2,$$ prove that $$\left(\frac{\partial z}{\partial x} - \frac{\partial z}{\partial y}\right)^2 = 4 \left(1 - \frac{\partial z}{\partial x} - \frac{\partial z}{\partial y}\right).$$
2. **Rewrite the given equation:** Let $$u = x + y,$$ so the equation becomes $$z(u) = x^2 + y^2.$$ Since $$z$$ is a function of $$u,$$ we can write $$z = z(u).$$
3. **Find partial derivatives:** Using the chain rule,
$$\frac{\partial z}{\partial x} = \frac{dz}{du} \cdot \frac{\partial u}{\partial x} = z'(u) \cdot 1 = z'(u),$$
$$\frac{\partial z}{\partial y} = \frac{dz}{du} \cdot \frac{\partial u}{\partial y} = z'(u) \cdot 1 = z'(u).$$
4. **Express the right side in terms of $$x$$ and $$y$$:** From the original equation,
$$z(u) = x^2 + y^2,$$
so
$$z'(u) = \frac{d}{du}(x^2 + y^2).$$
But since $$x$$ and $$y$$ are independent variables, and $$u = x + y,$$ we consider $$x = u - y$$ or $$y = u - x$$ to find $$z'(u).$$
5. **Rewrite $$x^2 + y^2$$ in terms of $$u$$ and one variable:**
$$x^2 + y^2 = x^2 + (u - x)^2 = x^2 + u^2 - 2ux + x^2 = 2x^2 - 2ux + u^2.$$
6. **Differentiate with respect to $$x$$:**
$$\frac{d}{dx}(x^2 + y^2) = \frac{d}{dx}(2x^2 - 2ux + u^2) = 4x - 2u,$$
but since $$u = x + y,$$ $$\frac{du}{dx} = 1,$$ so
$$\frac{d}{du}(x^2 + y^2) = z'(u) = 2x - 1.$$ This is inconsistent; instead, we use implicit differentiation.
7. **Use implicit differentiation on the original equation:**
$$z(u) = x^2 + y^2,$$
so
$$\frac{\partial z}{\partial x} = z'(u) \cdot 1 = 2x,$$
$$\frac{\partial z}{\partial y} = z'(u) \cdot 1 = 2y.$$
8. **Calculate the left side:**
$$\left(\frac{\partial z}{\partial x} - \frac{\partial z}{\partial y}\right)^2 = (2x - 2y)^2 = 4(x - y)^2.$$
9. **Calculate the right side:**
$$4 \left(1 - \frac{\partial z}{\partial x} - \frac{\partial z}{\partial y}\right) = 4(1 - 2x - 2y) = 4(1 - 2(x + y)).$$
10. **Recall that $$u = x + y$$ and from the original equation $$z(u) = x^2 + y^2,$$ so
$$x^2 + y^2 = z(u).$$
11. **Rewrite the right side:**
$$4(1 - 2u).$$
12. **Check if the left side equals the right side:**
We want to prove
$$4(x - y)^2 = 4(1 - 2u).$$
Divide both sides by 4:
$$(x - y)^2 = 1 - 2(x + y).$$
13. **Expand and rearrange:**
$$(x - y)^2 = x^2 - 2xy + y^2,$$
so
$$x^2 - 2xy + y^2 = 1 - 2x - 2y.$$
14. **Recall from the original equation:**
$$z(u) = x^2 + y^2,$$
so
$$x^2 + y^2 = z(u).$$
15. **Substitute $$x^2 + y^2$$:**
$$z(u) - 2xy = 1 - 2x - 2y.$$
16. **Since $$z(u) = x^2 + y^2,$$ and $$u = x + y,$$ the equation becomes
$$z(u) - 2xy = 1 - 2u.$$ This matches the form we want to prove.
**Final answer:**
$$\boxed{\left(\frac{\partial z}{\partial x} - \frac{\partial z}{\partial y}\right)^2 = 4 \left(1 - \frac{\partial z}{\partial x} - \frac{\partial z}{\partial y}\right)}.$$