What determines trophy points won in the arena?


When I win in the arena there seems to be a lot of variability on how many trophy points I get. What determines the amount of trophy points awarded when you win a battle?
(It seems like when you lose, you always lose 30 points.)
Can anybody clarify how the trophy point system works?