There are both physical and chemical changes happening in both frying eggs or baking a cake. These are not simple reactions, many complex events happen inside these foods during cooking.
A few examples:
- polymerizations and crosslinkings are happening in the eggs - chemical change
- proteins and sugars combine causing browning of the cake - chemical change
- baking soda or baking powder in the cake gives off carbon dioxide - chemical change
- carbon dioxide forms bubbles causing the cake to rise - physical change
- water is evaporating from both the eggs and the cake - physical change
- etc.