Exercise 40

Find the first partial derivatives of the function:

\[ u = \sin(x_1 + 2x_2 + \cdots + n x_n) \]