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)

Thanks in advance

  • $\begingroup$ 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. $\endgroup$ – Mr.Wizard Jun 26 '19 at 16:54
  • $\begingroup$ Yes, of course a,b and c are defined as vectors... $\endgroup$ – Siddhartha Morales Jun 27 '19 at 10:31
  • $\begingroup$ Related: (23423), (66910). Possible duplicate: (126485) $\endgroup$ – Mr.Wizard Jun 27 '19 at 16:58
  • $\begingroup$ Ok, defining up values are usefull, but it is not what I wanted. As I say, I would like to simplify dot expressions when all the objects are vectors. Let's say that p1+p2+..+pn = 0, and then I would like to simplify expressions of the type p_i.p_j+..- etc. Also, as far as I know there is no function that can factorize dot products, like the one that I wrote in the question. $\endgroup$ – Siddhartha Morales Jul 3 '19 at 12:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.