$$ *** $$
Let the set of functions Y = $\{ y_1(x),y_2(x),y_3(x) \} = \{x^2, \sin x, \cos x \}$, be linearly dependent.
Since you did not mention the anything about where the function is coming from and going to and about the field.
I will suppose that, Y: $\mathbb{R}$ -> $\mathbb{R}$
Then by definition of linear dependence, there exists scalars (not all zero), such that, $$\ c_1.\mathbf{y_1(x)} + c_2.\mathbf{y_2(x)} + c_3.\mathbf{y_3(x)} = \mathbf{0(x)},\ \ \ \ x \in \mathbb{R},c_1,c_2,c_3 \in \mathbb{N} $$
$$ c_1.x^2 + c_2.\sin x + c_3.\cos x = 0 ,\ \ \ \ x \in \mathbb{R},c_1,c_2,c_3 \in \mathbb{N}$$
$$ c_2.\sin x + c_3.\cos x = -c_1.x^2 $$
$$ c_2.\sin x + c_3.\cos x = c_4.x^2, \ \ \ \ c_4 = -c_1 $$
Is there a possibility that the manipulation of just the scalars $c_1, c_2, c_3$, we can equate the above equation?
Let $c_2$ = 0, then,
$$ c_3. \cos x = c_4.x^2 \ is \ only \ possible \ when \ c_3 = c_4 = 0$$
Let $c_3$ = 0, then,
$$ c_2. \sin x = c_4.x^2 \ is \ only \ possible \ when \ c_2 = c_4 = 0$$
Therefore, $ c_2.\sin x + c_3.\cos x = c_4.x^2$ is only possible when $c_2 = c_3 = c_4 = 0$
Therefore, the set of function forms a linearly independent set.
$$ *** $$
Disclaimer: I don't have a definite reason why $ c_3. \cos x = c_4.x^2 \ is \ only \ possible \ when \ c_3 = c_4 = 0$, yet.