Let $X$ be a non-empty set and $((Y_\lambda,\tau_\lambda))_{\lambda\in\Lambda}$ a family of topological spaces. Suppose $(f_\lambda:X\rightarrow Y_\lambda)_{\lambda\in\Lambda}$ is a family of functions. Let $\mathcal{S}=\{f_{\lambda}^{-1}(G)|\lambda\in\Lambda\ and\ G\in\tau_\lambda\}$.
Now it is required to show that the topology $\tau$ on $X$, for which $\mathcal{S}$ is a sub basis, is the smallest topology on $X$ such that $f_\lambda$ is continuous $\forall\lambda\in\Lambda$.
Can someone help me answer this question please? A hint is appreciated. Thank you.