So, now imagine that x isn't the independent variable, and we instead have an unnamed independent variable that can be used via ι. The derivative of x is just known as Dx, and the derivative of y, with respect to the independent variable, is Dy.
Let's do something easy. Let y=x+sinx. Notice that sinx becomes sin∘x when we evaluate the expression, since x is an R→R function (or C→C or whatever). Also, the whole thing is forked over +. We can rewrite the equation as y=(ι+sin) x. Then we can differentiate, using the chain rule: Dy=(1+cos) x⋅Dx. Magically, we're left with:
DxDy=1+cosxWhereas it's a sin in normal mathematics to throw around solitary dxs, Dxs are just ordinary functions. You can do whatever you want with them.
Let's try something a little more interesting. Consider:
2⋅x+2⋅y=12⋅x⋅Dx+2⋅y⋅Dy=0applied D to both sidesyx+DxDy=0applied (2⋅y⋅Dx/) to both sidesDxDy=yx−0applied (yx−) to both sidesSee that curried functions are useful for documentation. They give us the option to be more symbolic, rather than using verbose phrases like “divide through by ...” which have to be translated before we can see them interacting with the equation at hand.
No comments:
Post a Comment