Writings of Baal HaSulam / Articles / The Thought of Creation / The Purpose of Creation
Premise A) That He is not called lacking perfection such that He would be obligated to be completed by the creation. Like a satiated person who is complete without hunger and without bread; rather, when hunger comes he will need bread for his completion, and then returns to being complete as before.
Premise B) That with the destruction of the world, He would not lack from His perfection, for in the spiritual realm there is no difference between potential (Koach) and actual (Poel), and therefore He is also not magnified by the greatness of the creation.
Premise C) A cause can come into being even without a purpose, because it is drawn from a preceding cause, solely by way of antecedent and consequence (cause and effect / Kodem ve-Nimshach).
Premise D) That there is a cause that takes hold of two [aspects]: namely, that it is drawn from the antecedent, and it also has a desired and good purpose, which is worthy of existing on its own without compulsion from a consequence. Rather, the creation has a cause from Him and also a purpose in itself. The cause is that "it is the nature of the Good to do good" (Mi-derech ha-Tov leheitiv). In this alone there is a reason for the creation even if there were no purpose in itself; however, in addition to this, it has a good purpose of "and to cleave unto Him" (Deuteronomy 11:22; 30:20).
According to Premise D, that the creation is in the aspect of cause and effect (Ila ve-Alul) by way of antecedent and consequence, this is sufficient even without a purpose in itself. Namely, because it is the nature of the Good to do good. And the matter of doing good is not a lack in the Good One, and He is not compelled by it, for the reason that there is not yet a lack to do good to and to complete. Like the satiated person, for whom bread is not necessary except after hunger is revealed. One might ask: why do I need hunger and why do I need bread? And the answer is: because in the meantime, pleasure is found in the eating itself. Go and ask the seekers of pleasure if they are tormented by hunger; on the contrary, they constantly pursue things that induce hunger. If so, you will understand that the lowliness of the creatures during the duration of their completion [is there so they can] receive enjoyment and pleasure.
[1] The words of Etz Chayim are explained in Panim Meirot U'Masbirot Vol. 3, Branch 1 at its end, and also in Hakdamot HaSulam, Article 4 from the book Pi Chacham.