Hi Aly.
I can only repeat looking on the internet as composition using mathematical formulas or not is a huge subject. Try some of the words / ideas above in Google etc.
Lots of articles at.
http://photoinf.com/ on composition not all mathematical. Hope it helps, just the start of a subject you could study for years.