Given z = wx + b, find out the derivatives of the parameters w, x, and b for the following two settings. Apply the chain rule where necessary and show complete derivations of each step.
X1, W, x2, a = M(z), b = M@L(b, y), W2, x3, W3, b
i. M = tanh activation function and L = Cross Entropy Loss Function
ii. M = ReLU activation function and L = L2 Loss Function