Shivering and trembling do have similar meanings but there is difference in their usage sometimes. For Example, we generally do not say that “He was trembling in cold” we use ‘Shivering’ in such a sentence. But we usually use the expression “The leaves tremble (and not ‘shiver’) in the breeze