The digits and square numbers

All the nine digits are arranged here so as to form four square numbers: 

9, 81, 324, and 576. 

How would you put them together so as to form a single smallest possible square number and a single largest possible square number?