Line Integrals: Work

Line Integrals: Work
Loading the math board and drawing, please wait…
2021-10-14 09:53
In collections MATH1052-edX
This example demonstrates the application of line integrals in calculating work done by a variable force along a curve. Key math concepts include vector fields, curve integrals, and definite integrals in vector calculus. GeoGebra commands like SelectedIndex, Midpoint, Element, Derivative, ParametricDerivative, Distance, CurveCartesian, Integral, Textfield, Segment, If, Sequence, and Translate are used to construct vector fields, parametric curves, and compute the integral. Suitable for university-level STEM students learning vector calculus applications.

GeoGebra Commands & Parameters

  1. SelectedIndex(pathNames) → pathIndex
  2. Midpoint(N, P) → Q
  3. Element(pathList, pathIndex) → path
  4. Derivative(path) → DDpath
  5. ParametricDerivative(path) → Dpath
  6. Distance(N, P) → NP
  7. Element(CompX, pathIndex) → RTX
  8. Derivative(RTX, x) → DRTX
  9. Element(CompY, pathIndex) → RTY
  10. Derivative(RTY, x) → DRTY
  11. CurveCartesian(x(path(t)), y(path(t)), t, 0, s) → partPath
  12. Integral(MUL, 0, 1) → Work
  13. Textfield(F_1) → InputBox1
  14. Textfield(F_2) → InputBox2
  15. Segment(path(0.3), path(0.3 + 0.01)) → arrow1
  16. Segment(path(0.6), path(0.6 + 0.01)) → arrow2
  17. If(Work ≟ Work, Work, Sum[Sequence[((path(i + dS) - path(i)) * (F_1(x(path(i + dS / 2)), y(path(i + dS / 2))), F_2(x(path(i + dS / 2)), y(path(i + dS / 2))))), i, 0, s - dS, dS]]) → WOORK
  18. Sequence(Vector[path(i), path(i) + ((scale * F_1(x(path(i)), y(path(i)))), (scale * F_2(x(path(i)), y(path(i)))))], i, 0, s, 0.15) → PathVectors, {(0.10000000000000009, -0.10000000000000009), (0.06999999999999995, -0.06999999999999995), (0.03999999999999998, -0.03999999999999998), (0.010000000000000009, -0.010000000000000009), (-0.01999999999999999, 0.01999999999999999), (-0.050000000000000044, 0.050000000000000044), (-0.08000000000000007, 0.08000000000000007)}
  19. Sequence(path(i), i, 0.25, 0.75, 0.25) → PtPathList, {(0.5, -0.5), (0, 0), (-0.5, 0.5)}
  20. Sequence(Vector[(0, 0), (1 / sqrt((y(DDpath(i)))^(2) + (x(DDpath(i)))^(2)) * (x(DDpath(i)), y(DDpath(i))))], i, 0.25, 0.75, 0.25) → tangvectorsList, {(-0.7071067811865475, 0.7071067811865475), (-0.7071067811865475, 0.7071067811865475), (-0.7071067811865475, 0.7071067811865475)}
  21. Translate(Vector[Element[tangvectorsList, 1]], Element[PtPathList, 1]) → uu
  22. Translate(Vector[Element[tangvectorsList, 2]], Element[PtPathList, 2]) → vv
  23. Translate(Vector[Element[tangvectorsList, 3]], Element[PtPathList, 3]) → ww
  24. Textfield(xA) → InputBox3
  25. Textfield(yA) → InputBox4
  26. Textfield(xB) → InputBox5
  27. Textfield(yB) → InputBox6

AI Drawing Prompt Reference

Draw a 2D vector field with a parametric curve path. Along the path, place arrows representing the force field direction. Select three equally spaced points on the path and draw unit tangent vectors at these points. Also draw several small displacement vectors along the path to approximate the work done by the force. Include input boxes for the two force components and four input boxes for the start and end coordinates of the path. Display the computed work value as a label.
The prompt above was compiled from the original drawing commands and is for reference only.