| Lifat |
At first level the wizard knows 3+INT modifier amount of 1st lvl spells, and he knows all 0-lvl spells (except from his opposition schools). Every level thereafter the wizard gets to add 2 more spells known. He can choose to learn any level spell (that he can cast) with those two choices. Should you be prestige classing, then you wont get 2 spells known per level (not even from the prestige classes that adds "a lvl of spells").
On top of these free spells, a wizard can indeed get to learn more spells by paying for them. There are various ways to do that. Common for them all is that you need to pay (spell lvl * spell lvl *10) in gp for the ink to scribe it into your spellbook (10 gp for a 1st lvl spell, 40 gp for a 2nd lvl spell, 90 gp for a 3rd lvl spell and so on). On top of the ink expense, you may have to pay other wizards for the privilege to copy spells from their spellbook or copy them from scrolls or find spellbooks as loot or other such options. Ask your GM about it.