Subtracting Integers
Author: Megan Yanes

Use the sliders to perform integer subtraction.

The blue slider represents the first number in the subtraction problem.  The red number represents the number that is being subtracted.

Both numbers are displayed above the number line.  Below the number line, you can see the subtraction (adding the opposite) being performed.  The difference can be seen on the number line.  It is the purple dot.

0

2

4

6

8

10

12

14

-2

-4

-6

-8

-10

-12

-14

-

=

-16

-18

-20

16

18

20

SUSTRACCIÓN CON NÚMEROS ENTEROS

Instrucciones:
Mueva el cursor para poder visualizar la sustracción
de números enteros en la recta numérica.

c = -3 (slider from -10 to 10, step 1)
b = 10 (slider from -10 to 10, step 1)
A = (-3, 1)
B = (12, 1)
a = Line(A, B)
C = Point(a)
k = Circle(C, 4)
d = OrthogonalLine(C, a)
R_1 = Intersect(k, d, 2)
J_1 = Intersect(k, d, 1)
K_1: (x(J_1) + b, y(J_1))
p = Circle(C, 2)
I_1, L_5 = Intersect(p, d)
g = Circle(L_5, 1)
N_1 = Intersect(g, d, 1)
r = Circle(R_1, N_1)
S_1 = Intersect(r, d, 2)
i = OrthogonalLine(N_1, d)
M_1: (x(K_1), y(L_5))
q = Circle(M_1, 1)
O_1, P_1 = Intersect(q, i)
L_1: (x(I_1) + c, y(I_1))
v = Vector(I_1, L_1)
Q_1 = Translate(O_1, v)
Z_1 = Mirror(Q_1, O_1)
D = Point(a)
E = Point(a)
F = Point(a)
G = Point(a)
H = Point(a)
I = Point(a)
J = Point(a)
K = Point(a)
L = Point(a)
M = Point(a)
N = Point(a)
O = Point(a)
P = Point(a)
Q = Point(a)
R = Point(a)
S = Point(a)
T = Point(a)
U = Point(a)
V = Point(a)
W = Point(a)
Y = Point(a)
Z = Point(a)
A_1 = Point(a)
B_1 = Point(a)
C_1 = Point(a)
D_1 = Point(a)
E_1 = Point(a)
F_1 = Point(a)
G_1 = Point(a)
H_1 = Point(a)
e = OrthogonalLine(I_1, d)
h = OrthogonalLine(L_5, d)
f = OrthogonalLine(J_1, d)
u = Vector(J_1, K_1)
w = Vector(L_5, M_1)
z = Vector(O_1, Q_1)
j = OrthogonalLine(S_1, d)
T_1: (x(Z_1), y(S_1))
l = Vector(S_1, T_1)
m = Segment(J_1, S_1)
t = Segment(M_1, O_1)
n = OrthogonalLine(K_1, a)
U_1 = Intersect(n, a)
s = OrthogonalLine(L_1, a)
a_1 = OrthogonalLine(T_1, a)
W_1 = Intersect(s, a)
Y_1 = Intersect(a_1, a)
b_1 = Segment(K_1, U_1)
c_1 = Segment(T_1, Y_1)
d_1 = Segment(L_1, W_1)
b_2 = Segment(I_1, L_1)
e_1 = Segment(J_1, K_1)
f_1 = Segment(L_5, M_1)
g_1 = Segment(Q_1, O_1)
h_1 = Segment(T_1, S_1)
Z_2 = Midpoint(J_1, K_1)
A_2 = Midpoint(I_1, L_1)
B_2 = Midpoint(L_5, M_1)
C_2 = Midpoint(Q_1, O_1)
T16: b + ""
T17: c + ""
T18: b + ""
T19: c + ""
O_1' = Mirror(O_1, O_1)
i_1 = Segment(Z_1, O_1')
u_1 = Vector(O_1, Z_1)
T20: b + ""
T22: "(" + c + ")"
T24: "" + (x(Y_1))
j_1 = Segment(O_1, Z_1)
V_1 = Midpoint(O_1, Z_1)
k_1 = Segment(Z_1, Y_1)
D_2 = Point(a)
E_2 = Point(a)
F_2 = Point(a)
G_2 = Point(a)
H_2 = Point(a)
I_2 = Point(a)
J_2 = Point(a)
K_2 = Point(a)
L_2 = Point(a)
M_2 = Point(a)