Could someone explain the usage of the pyramidal or trigonal composition in work of art? Which purpose does a triangle-composition serve?

Please refer to sources in your answer, if possible.

Thank you on beforehand!