Learn How to Differentiate the Vector-Valued Function