In this paper we calculate the effect of finite disk thickness on the structure and stability of a differentially rotating three-dimensional disk galaxy with stars and gases. The problem is solved exactly in terms of the rigorous mathematical method of Gr