Subtracting Fractions with Fraction Squares in GeoGebra

Subtracting Fractions with Fraction Squares in GeoGebra
Loading the math board and drawing, please wait…
2023-01-30 12:37
This GeoGebra lesson demonstrates fraction subtraction using interactive fraction squares and visual part-whole models. Students select or enter two fractions, see the common denominator generated by LCM, and compare the resulting difference through shaded polygon pieces and optional arc visuals. The construction uses Sequence to generate exercise items, LCM for common denominators, Polygon and CircleArc to draw fraction regions, If/CountIf/Shuffle/Append/Remove for question control and answer checking, Textfield with input1/input2 for user entry, and selected1 through selected24 as option states. It is suitable for grades 5-6 or early middle school for practicing fraction operations, equivalent fractions, and subtraction with unlike denominators.

GeoGebra Commands & Parameters

  1. Join(Sequence[Shuffle[Sequence[1, 10] \ {3, 6}], m, 1, floor(110 / 10)]) → listExNums
  2. LCM(numN1, numN2) → vielfaches
  3. CountIf(n ≟ true, n, {selected1, selected2, selected3, selected4, selected5, selected6, selected7, selected8, selected9, selected10, selected11, selected12, selected13, selected14, selected15, selected16, selected17, selected18, selected19, selected20, selected21, selected22, selected23, selected24}) → inputSelected
  4. Element({{1, 2, 3}, {1, 2, 4, 5}, {1, 2, 3, 4, 5, 6}, {1, 2, 3, 6, 7, 8}, {1, 4, 7, 10}, {1, 2, 3, 5, 6, 7}, {1, 2, 4, 5}, {1, 2, 5, 6, 9, 10}, {1, 2, 3}, {1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19}}, exnum) → listSquaresCAll
  5. Point(Line[A, xAxis]) → B
  6. If(nennervertical2, parts2hori, parts2vert) → parts2horiactual
  7. Textfield(input1) → InputBox1
  8. Textfield(input2) → InputBox2
  9. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForX, {2, 9, 8, 7, 3, 4, 9, 8, 8, 5, 4, 6, 5, 2, 3, 7, 2, 6, 9, 5, 2, 10, 0, 7, 8, 0, 7, 4, 4, 0, 8, 4, 1, 9, 2, 6, 0, 5, 5, 2, 1, 8, 4, 9, 6, 8, 10, 2, 8, 5, 0, 10, 7, 3, 3, 10, 2, 4, 9, 6, 8, 8, 6, 0, 3, 3, 5, 3, 10, 3, 3, 3, 8, 5, 1, 0, 8, 8, 5, 6, 6, 1, 4, 1, 5, 8, 2, 8, 0, 0, 7, 6, 5, 7, 2, 10, 8, 8, 4, 3}
  10. Element(randomNosForX, Mod[questionCount, 100] + 1) → numX
  11. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {3, 3, 4, 8, 7, 7, 8, 7, 5, 7, 1, 4, 7, 4, 0, 4, 10, 2, 7, 2, 5, 9, 6, 2, 2, 3, 6, 2, 3, 5, 10, 6, 1, 2, 4, 10, 2, 1, 4, 7, 1, 1, 0, 8, 7, 10, 6, 4, 3, 2, 5, 9, 4, 0, 10, 9, 3, 2, 3, 4, 0, 0, 1, 5, 4, 7, 8, 0, 9, 7, 3, 7, 5, 1, 0, 9, 8, 7, 0, 4, 10, 8, 10, 10, 8, 4, 6, 4, 3, 4, 2, 0, 6, 8, 2, 8, 3, 10, 0, 8}
  12. Element(randomNosForY, Mod[questionCount, 100] + 1) → numY
  13. Append(true, Sequence[If[randomNosForX(i) ≟ randomNosForX(i - 1), false, true], i, 2, 100]) → stayX
  14. Append(true, Sequence[If[randomNosForY(i) ≟ randomNosForY(i - 1), false, true], i, 2, 100]) → stayY
  15. Remove(Sequence[If[stayX(i), randomNosForX(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeat
  16. Remove(Sequence[If[stayY(i), randomNosForY(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeat
  17. Element(randomNosForXwithoutRepeat, Mod[questionCount, Length[randomNosForXwithoutRepeat]] + 1) → numXwithoutRepeat
  18. Element(randomNosForYwithoutRepeat, Mod[questionCount, Length[randomNosForYwithoutRepeat]] + 1) → numYwithoutRepeat
  19. Defined((input1 * input2)) → fixed
  20. If(nennervertical1, parts1hori, parts1vert) → parts1horiactual
  21. Join({Sequence[Segment[B + ((boxsize, 0) * m / parts2vertactual), B + (0, (-boxsize)) + ((boxsize, 0) * m / parts2vertactual)], m, 1, parts2vertactual], Sequence[Segment[B + ((0, (-boxsize)) * m / parts2horiactual), B + (boxsize, 0) + ((0, (-boxsize)) * m / parts2horiactual)], m, 1, parts2horiactual]}) → listLinesB
  22. Join({Sequence[Segment[A + ((boxsize, 0) * m / parts1vertactual), A + (0, (-boxsize)) + ((boxsize, 0) * m / parts1vertactual)], m, 1, parts1vertactual], Sequence[Segment[A + ((0, (-boxsize)) * m / parts1horiactual), A + (boxsize, 0) + ((0, (-boxsize)) * m / parts1horiactual)], m, 1, parts1horiactual]}) → listLinesA
  23. Flatten(Sequence[Sequence[B + (m * ((boxsize * 1 / parts2vertactual), 0)) + (j * (0, ((-boxsize) * 1 / parts2horiactual))), m, 0, parts2vertactual - 1], j, 0, parts2horiactual - 1]) → listPointsB
  24. Sequence(Translate[Polygon[(0, 0), (((boxsize * 1 / parts2vertactual) * If[nennervertical2, 1, faktor2]), 0), (((boxsize * 1 / parts2vertactual) * If[nennervertical2, 1, faktor2]), (((-boxsize) * 1 / parts2horiactual) * If[nennervertical2, faktor2, 1])), (0, (((-boxsize) * 1 / parts2horiactual) * faktor2))], B + (m * ((boxsize * 1 / parts2vertactual), 0))], m, 0, Min[numZ2 - 1, parts2vertactual - 1]) → l1
  25. Polygon((0, 0), (0, 0) + v2xfix, (0, 0) + v2xfix + v2yfix, (0, 0) + v2yfix) → v2fix, j, k, l, m
  26. Flatten(Sequence[Sequence[B + (m * v2xfix) + (j * v2yfix), m, 0, listPointsBstartTeile(exnum, 1) - 1], j, 0, listPointsBstartTeile(exnum, 2) - 1]) → listPointsBstart
  27. Sequence(Translate[v2fix, listPointsBstart(m)], m, 1, numZ2) → partB
  28. Join({Sequence[Segment[C + ((boxsize, 0) * m / solPartsVert), C + (0, (-boxsize)) + ((boxsize, 0) * m / solPartsVert)], m, 1, solPartsVert], Sequence[Segment[C + ((0, (-boxsize)) * m / solPartsHori), C + (boxsize, 0) + ((0, (-boxsize)) * m / solPartsHori)], m, 1, solPartsHori]}) → listLinesC
  29. Polygon((0, 0), (0, 0) + v3x, (0, 0) + v3x + v3y, (0, 0) + v3y) → v3, f, g, h, i
  30. Flatten(Sequence[Sequence[C + (m * ((boxsize * 1 / solPartsVert), 0)) + (j * (0, ((-boxsize) * 1 / solPartsHori))), m, 0, solPartsVert - 1], j, 0, solPartsHori - 1]) → listPointsC
  31. If(correct0, listSquaresCAll, {}) → listSquaresC
  32. Max({floor(((2 * vielfaches) - 1) / numN2), 2}) → maxfaktor2
  33. Max({floor(((2 * vielfaches) - 1) / numN1), 2}) → maxfaktor1
  34. Zip(Translate[Polygon[(0, 0), (boxsize, 0), (boxsize, (-boxsize)), (0, (-boxsize))], P], P, {A, B}) → listBoxes
  35. Zip(Translate[Polygon[(0, 0), (boxsize, 0), (boxsize, (-boxsize)), (0, (-boxsize))], P], P, {C}) → listBoxC
  36. Point(Line[D1, xAxis]) → D2
  37. CircleArc(D2 + (-0.5, (-0.5 * arrowlength)), D2 + (0, (-arrowlength)), D2) → d
  38. CircleArc(D1 + (0.5, (-0.5 * arrowlength)), D1, D1 + (0, (-arrowlength))) → c
  39. If(numN2 ≟ vielfaches, Max[{attemptCount01, attemptCount02, attemptCount03, attemptCount04}] ≥ 1, Max[{attemptCount03, attemptCount04}] ≥ 1) → showtext2
  40. If(numN1 ≟ vielfaches, Max[{attemptCount01, attemptCount02, attemptCount03, attemptCount04}] ≥ 1, Max[{attemptCount01, attemptCount02}] ≥ 1) → showtext1
  41. Polygon((0, 0), (0, 0) + v1xfix, (0, 0) + v1xfix + v1yfix, (0, 0) + v1yfix) → v1fix, n, p, q, r
  42. Flatten(Sequence[Sequence[A + (m * ((boxsize * 1 / parts1vertactual), 0)) + (j * (0, ((-boxsize) * 1 / parts1horiactual))), m, 0, parts1vertactual - 1], j, 0, parts1horiactual - 1]) → listPointsA
  43. Sequence(Translate[v1fix, listPointsA(m)], m, 1, numZ1) → partA
  44. Zip(Translate[Polygon[(0, 0), (boxsize, 0), (boxsize, (-boxsize)), (0, (-boxsize))], P], P, {A, B}) → fbBoxesWhite

AI Drawing Prompt Reference

Describe a geometric demonstration of fraction subtraction. The figure includes two fraction squares representing the input fractions. The least common multiple (LCM) is displayed as the common denominator. The fraction squares are placed within a framework of the common denominator. The difference is shown through shaded regions or arcs. The figure also includes connecting lines and arcs to visualize the fractional parts. The construction order: first draw the common denominator framework, then place the fraction squares, then draw the difference region, and finally add arcs.
The prompt above was compiled from the original drawing commands and is for reference only.