# Factor not factoring quadratic polynomial [closed]

I'm using version 11.3

Expand[(Sqrt - t)^2]
2 - 2 Sqrt t + t^2,


but

Factor[2 - 2 Sqrt t + t^2]
2 - 2 Sqrt t + t^2.


On the other hand, without the $$\sqrt{2}$$ the expression is factored as expected.

Factor[1 - 2  t + t^2]
(-1 + t)^2


## closed as off-topic by m_goldberg, MarcoB, Alex Trounev, Daniel Lichtblau, José Antonio Díaz NavasMar 28 at 19:23

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – m_goldberg, MarcoB, Alex Trounev, Daniel Lichtblau, José Antonio Díaz Navas
If this question can be reworded to fit the rules in the help center, please edit the question.

• Please do not use the bugs tag when posting a new question. See the tag description for why. – Szabolcs Mar 24 at 21:21

If you want irrational coefficients, you need to tell it which numbers to use as an extension of the rationals.

Factor[2 - 2 Sqrt t + t^2, Extension -> {Sqrt}]
(* (Sqrt - t)^2 *)


If you do not know what extension to use with Factor

expr = 2 - 2 Sqrt t + t^2;
expr2 = (a + b*t)^2;

sol = expr2 /. Solve[Thread[CoefficientList[expr, t] ==
CoefficientList[expr2, t]], {a, b}]

(* {(-Sqrt + t)^2, (Sqrt - t)^2} *)

expr == sol // Thread // Simplify

(* {True, True} *)