Suppose I have n samples $x_1,x_2,...x_n$ sampled from a $\mathcal{N}(\mu,\sigma^2)$. I need to find the sufficient statistics for $\mu,\sigma^2$. I write the likelihood
$$ \mathcal{L} = (2 \pi \sigma^2)^{-\frac{n}{2}}\exp\left(-\frac{1}{2\sigma^2}\left(\sum_{i=1}^n x_i^2 + \sum_{i=1}^n \mu^2 - 2\mu\sum_{i=1}^n x_i\right)\right) $$
$$\mathcal{L} = (2 \pi \sigma^2)^{-\frac{n}{2}}\exp\left(-\frac{n\mu^2}{2\sigma^2}\right) \exp\left(-\frac{1}{2\sigma^2}\left(\sum_{i=1}^n x_i^2 - 2\mu\sum_{i=1}^n x_i\right)\right)$$
Then we say that by using factorization theorem $T_1 = \sum_{i=1}^n x_i^2$ and $T_2 = \sum_{i=1}^nx_i$ are sufficient statistics. I want to ask how we come with that the first sufficient statistic is for $\mu$ and other one is for $\sigma^2$.
I know like MLE is a function of sufficient statistic with that probably we can say that first one is for $\mu$ and other is for $\sigma$(not sure about this thing) but what if I don't know the MLE of some distribution, then how to figure out.