Is it possible to get either one to display the less factored form of an expression? what I am doing is multiplying matrices together for geometrical optics but my answers keep coming out really ugly. For example I have(adsbygoogle = window.adsbygoogle || []).push({});

[tex]d-d\left(\frac{2d}{r}-1\right)[/tex] I don't think a person would ever write it like that. This is not a bad example but in some cases its doing just really ugly things where the neatest form is (at least close to) the fully expanded form. I'd rather see my answer expanded and then manually make the decision on what to factor out if that makes any sense?

thanks!

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mathematica or (preferably) maxima display exanded form

**Physics Forums | Science Articles, Homework Help, Discussion**