So this question essentially arose from setting:
$ax^2 + bx + c = (Ax + B)(Cx + D)$, where $A, B, C, D$ are integers.
This means $ax^2 + bx + c = ACx^2 + (BC + AD)x+ BD$. Now intuitively we've been thought in grade school that this means $a = AC$ , $b = (BC + AD)$ , and $c = BD$. However, I never really thought why 2 quadratics with different coefficients can't have the same graph (or same output for each real number input).
So my way of proving it was proof by contradiction.
Assume there exists $a_{1}, b_{1}, c_{1}, a_{2}, b_{2}, c_{2}$ within real numbers where $a_{2} \neq a_{1}$ or $b_{2} \neq b_{1}$ or $c_{2} \neq c_{1}$ such that for all $x$ within real numbers $a_{1}x^2 + b_{1}x + c_{1} = a_{2}x^2 + b_{2}x + c_{2}$.
This means $(a_{1} - a_{2})x^2 + (b_{1} - b_{2})x + (c_{1} - c_{2}) = 0$ for all real number inputs, meaning this new quadratic has infinitely many roots, which is contradiction since a quadratic only has at most 2 real roots.
Hence for all $a_{1}, b_{1}, c_{1}, a_{2}, b_{2}, c_{2}$ within real numbers where $a_{2} \neq a_{1}$ or $b_{2} \neq b_{1}$ or $c_{2} \neq c_{1}$ there exists $x$ within real numbers such that $a_{1}x^2 + b_{1}x + c_{1} \neq a_{2}x^2 + b_{2}x + c_{2}$.
Is my proof correct? I'm specifically not to confident if my final conclusion ("Hence for all ...") is enough to say that the coefficients must match. Since my conclusion basically says if any 1 of the coefficients of the 2 quadratics mismatch, then they won't have an equal output for some input x. Hence the only way for these 2 quadratics to have the same graph is for their coefficients to be equal (as in be the same equation). Not sure if that is implied or if I have to explicitly state it.
Also, I guess this argument extends for a polynomial of any degree, no? Kindly please let me know.