This is too difficult to follow. Something like this would ideally be in Latex, but if you can't code it you have got to be clear with parentheses. It's a headache to look at, and that will discourage people from helping you. So if you clean it up I'll take another look. Maybe also include an intermediate steps. Again this makes things easier to follow and easier to spot errors.