Ball in a Cylinder

Ball in a Cylinder
Loading the math board and drawing, please wait…
2013-05-19 17:55
This example demonstrates the geometric shape formed by rotating a ball within a cylinder and the changes in volume. Key math concepts include solid geometry, volume of rotational solids, and vector operations. GeoGebra commands and objects used in construction are Point, Intersect, Rotate, Vector, OrthogonalLine, CurveCartesian, Midpoint, Sequence, and Circle. Suitable for high school and above students to understand rotational bodies, volume calculations, and dynamic geometry demonstrations, as well as for mathematical modeling education.

GeoGebra Commands & Parameters

  1. Point(xAxis) → E
  2. Intersect(f, xAxis) → H, H_2
  3. Rotate(H, 90.0*°, E) → I
  4. Vector(B_1, Z) → w
  5. Vector(B_1, X) → u
  6. Vector(B_1, Y) → v
  7. OrthogonalLine(View3d, yAxis) → a_1
  8. OrthogonalLine(View3d, xAxis) → b
  9. CurveCartesian(x(O - R * (0.0 * sin(i°) * w + sin(i°) * u - cos(i°) * v)), y(O - R * (0.0 * sin(i°) * w + sin(i°) * u - cos(i°) * v)), i, 0.0, 360.0) → a
  10. CurveCartesian(x(A - R * (0.0 * sin(i°) * w + sin(i°) * u - cos(i°) * v)), y(A - R * (0.0 * sin(i°) * w + sin(i°) * u - cos(i°) * v)), i, 0.0, 360.0) → e
  11. Midpoint(B, O) → C
  12. Sequence(CurveCartesian[x(C + d / 2.0 * cos(i) * cos(j) * u + d / 2.0 * sin(i) * cos(j) * v + d / 2.0 * sin(j) * w), y(C + d / 2.0 * cos(i) * cos(j) * u + d / 2.0 * sin(i) * cos(j) * v + d / 2.0 * sin(j) * w), i, 0.0, 6.28319], j, -1.5708, 1.5708, 3.141592653589793 / m) → liste1
  13. Sequence(CurveCartesian[x(C + d / 2.0 * cos(i) * cos(j) * u + d / 2.0 * cos(i) * sin(j) * v + d / 2.0 * sin(i) * w), y(C + d / 2.0 * cos(i) * cos(j) * u + d / 2.0 * cos(i) * sin(j) * v + d / 2.0 * sin(i) * w), i, 0.0, 6.28319], j, 0.0, 6.28319, 3.141592653589793 / m) → liste2
  14. Circle(C, d / 2.0) → d_1
  15. Sequence(O - R * (0.0 * sin(i°) * w + sin(i°) * u - cos(i°) * v), i, 0.0, 360.0, 360.0 / n) → liste3
  16. Sequence(A - R * (0.0 * sin(i°) * w + sin(i°) * u - cos(i°) * v), i, 0.0, 360.0, 360.0 / n) → liste4
  17. CurveCartesian(x(D - R * (0.0 * sin(i°) * w + sin(i°) * u - cos(i°) * v)), y(D - R * (0.0 * sin(i°) * w + sin(i°) * u - cos(i°) * v)), i, 0.0, 360.0) → ff
  18. Sequence(Segment[Element[liste3, i], Element[liste4, i]], i, 1.0, Length[liste4]) → liste5
  19. Vector(D, O) → z
  20. Sequence(Translate[ff, i * z], i, 0.0, 1.0, 0.05) → liste6
  21. CurveCartesian(x(D - d / 2.0 * (0.0 * sin(i°) * w + sin(i°) * u - cos(i°) * v)), y(D - d / 2.0 * (0.0 * sin(i°) * w + sin(i°) * u - cos(i°) * v)), i, 0.0, 360.0) → i

AI Drawing Prompt Reference

Draw a cylinder and a sphere inside it, showing the geometric shape formed by rotating the sphere and the change in volume. Start by drawing the cylinder's axis, then find the intersection points between the axis and the cylinder surface. Rotate one intersection point 90 degrees around the axis to get another intersection point. Define three perpendicular vectors to describe the sphere's rotation. Draw lines perpendicular to the Y and X axes, then use parametric equations to plot the curves of the sphere and the cylinder surface. Calculate the midpoint of the sphere and cylinder, and use the midpoint and vectors to generate the rotating surface of the sphere. Finally, rotate the sphere vertically to demonstrate the dynamic changes of the rotating body.
The prompt above was compiled from the original drawing commands and is for reference only.