The function of the cooling system is to cool the engine to ensure that the engine's operating temperature is within a proper range.
Expansion tank is a component of the "engine cooling system", which is usually used to store the coolant with elevated temperature to prevent excessive pressure in the cooling line.