Mathematica or (preferably) maxima display exanded form

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
richyw
Messages
179
Reaction score
0
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

[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 news on Phys.org
nevermind, I figured it out. I typed "expand(A)". who would have thunk?