binbagsss
- 1,291
- 12
How do you write each line of long division in LaTeX on here ?
Thanks
Thanks
This discussion focuses on writing long division in LaTeX, specifically using the longdivision package. Users shared various methods to display each line of long division, including examples using MathJax and traditional LaTeX commands. Key solutions involve using the \hspace command for alignment and the \underline command for underlining results. The discussion also references external resources from TeX StackExchange and TUGboat for further examples and techniques.
PREREQUISITESMathematicians, educators, students, and anyone looking to present long division clearly in LaTeX or on web platforms using MathJax.
This has been my solution:binbagsss said:How do you write each line of long division in LaTeX on here ?
Thanks
(Sorry, for the sub-optimal alignment.)
##(x^3+2x+1) : (x-a) \rightarrow x^2##
##-[(x-a)\cdot x^2] = -x^3+ax^2##
##\text{+________________________}##
##ax^2 + 2x +1 / : (x-a) \rightarrow ax##
##-[(x-a)\cdot ax] = -ax^2+a^2x##
##\text{+________________________}##
##2x+a^2x+1 / :(x-a) \rightarrow (2+a^2)##
##-[(x-a)\cdot (2+a^2)] = -2x+2a-a^2x+a^3##
##\text{+________________________}##
##2a+a^3+1##