# Inverse fuction of TensorExpand

Is there a way in mathematica to factorize/simplify a dot product? I.e. I have something like a.b + a.c (obviously more complicated expressions) and I would like to factorize terms like

TensorSimplify[a.b+a.c] and return a.(b+c)

• Dot performs several different operations depending on the shape of the arguments provided; it seems to me that these shapes need to be defined before simplification can be attempted. – Mr.Wizard Jun 26 '19 at 16:54