Expand symbolic expression

x₁*(2x₁ + 6x₂) + x₂*(6x₁ + 7x₂)

How can I expand this into (2x₁^2 + 12x₁*x₂ + 7x₂) ?

expr = x₁*(2x₁ + 6x₂) + x₂*(6x₁ + 7x₂)

expand(expr)

2 Likes