Long division in LaTeX

  • LaTeX
  • Thread starter binbagsss
  • Start date
  • #1
1,232
10
How do you write each line of long division in LaTeX on here ?

Thanks
 

Answers and Replies

  • #2
14,386
11,697
How do you write each line of long division in LaTeX on here ?

Thanks
This has been my solution:
(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##
 
  • Like
Likes jim mcnamara and Janosh89
  • #4
.Scott
Homework Helper
2,677
985
## \hspace{11.5mm}536##
## 23\overline{)12345}##
## \hspace{7mm}\underline{115}##
## \hspace{11.5mm}84##
## \hspace{11.5mm}\underline{69}##
## \hspace{11.5mm}155##
## \hspace{11.5mm}\underline{138}##
## \hspace{14mm}17##

# \hspace{11.5mm}536#
# 23\overline{)12345}#
# \hspace{7mm}\underline{115}#
# \hspace{11.5mm}84#
# \hspace{11.5mm}\underline{69}#
# \hspace{11.5mm}155#
# \hspace{11.5mm}\underline{138}#
# \hspace{14mm}17#
 
  • Like
Likes Mark44, jim mcnamara and Janosh89
  • #5
Aufbauwerk 2045
Have you looked at the longdivision package?

i.e.

\usepackage{longdivision}
 

Related Threads on Long division in LaTeX

  • Last Post
Replies
8
Views
25K
  • Last Post
Replies
1
Views
3K
Replies
8
Views
931
  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
3
Views
4K
  • Last Post
Replies
5
Views
4K
  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
2
Views
2K
Top