The best way to remember derivatives is to use algebra, and the general function is y = axn -> dy/dx = anxn-1
So for this equation dy/dx = (3x3)x3-1 + (2x1)x2-1 + 1x1-1
So the answer would be dy/dx = 9x2 + 2x + 1
The last one may be confusing but as the power is 0, you remove the x and it becomes a whole number, in this case 1.