That depends on you desktop/windows manager.
Mine (lxde with openbox) remembers the last state automatically.
In KDE if it does not remember corectly, you can right-click the applications title-bar and step tp advanced -> special settings. There you can chose whether to remember the past position and size or not, or set a default initial size/position.