<<

Hercules Meets Laplace in the Classroom by Mike Huber, Muhlenberg College

Abstract The mythology surrounding has been a part of human culture for over two and a half thousand years. Laplace transforms, on the other hand, have been used in solving differential equations for about one-tenth the time. This article treats The Eleventh Labor: The of the , in which Hercules must wrestle and defeat the in order to pass through . Each time Hercules throws Antaeus to the ground, the giant recoups energy from the earth. Hercules then lifts him off the ground and Antaeus’ strength decreases. This interdisciplinary problem is a nice application of a model which can use Laplace transforms to determine a solution of how Hercules can defeat the giant. It has been used in the differential equations classroom to enhance learning in a liberal arts environment.

Introduction The following passage is taken from Apollodorus’ The Library [1], from the En- glish translation by Sir James George Frazer:

When the [ten] labours had been performed in eight years and a month, Eurys- theus ordered Hercules, as an eleventh labour, to fetch golden apples from the Hesperides, for he did not acknowledge the labour of the cattle of nor that of the hydra. These apples were not, as some have said, in Libya, but on among the Hyperboreans. They were presented by Earth to after his marriage with , and guarded by an immortal with a hundred heads, offspring of and , which spoke with many and divers sorts of voices. With it the Hesperides also were on guard, to wit, , Ery- thia, , and . So journeying he came to the river Echedorus. And , son of and Pyrene, challenged him to single combat. Ares championed the cause of Cycnus and marshalled the combat, but a thunderbolt was hurled between the two and parted the combatants. And going on foot through Illyria and hastening to the river Eridanus he came to the , the daughters of Zeus and . They revealed to him, and Hercules seized him while he slept, and though the god turned himself into all kinds of shapes, the hero bound him and did not release him till he had learned from him where were the apples and the Hesperides. Being informed, he traversed Libya. That country was then ruled by Antaeus, son of , who used to kill strangers by forcing them to wrestle. Being forced to wrestle with him, Hercules hugged him, lifted him aloft, broke and killed him; for when he touched earth so it was that he waxed stronger, wherefore some said that he was a son of Earth.

1 Background Apollodorus is often referenced as “Apollodorus of Athens,” and it is believed that he was born around 180 B.C. According to the The Oxford Classical Dic- tionary [3], Apollodorus lived in Alexandria, but he left there in approximately 146 B.C., moving to Athens, where he spent the rest of his life. He had varied interests and was considered to be a great scholar. His Library was a study of the heroic mythology. The oldest discovered copy of this book dates to the first or second century A.D. His account of the Herculean myth is commonly accepted by most as the authority.

The Hesperides were known as the “nymphs of the West,” and were often com- pared in mythology to the Three Graces. The apples grew on a magical tree which had golden leaves and a golden bark. These apples supposedly gave eter- nal life to whoever ate them. Zeus, the king of the gods, had given the tree to Hera as a wedding present. She planted the tree in a garden at the base of Mount Atlas (which gave rise to the Atlantic Ocean, which surrounded the world near Mount Atlas). The Hesperides, daughters of Atlas, liked to pilfer from the tree, so Hera placed a ferocious with one hundred heads named to guard her precious tree. To successfully accomplish this labor, Her- cules must grapple with the giant Antaeus in order to pass through Libya. Each time Hercules throws Antaeus to the ground, the giant recoups energy from the earth. Hercules then lifts him off the ground and Antaeus’ strength decreases.

The Problem Suppose that Hercules and Antaeus wrestle for five minutes before Antaeus is thrown to the ground. In the next minute, his strength is instantly recharged. The ground provides a one-minute pulse of energy to Antaeus (similar to a step or Heaviside function with an amplitude of one), and he again wrestles Hercules for five minutes, and his strength diminishes as before. This periodic forcing function continues throughout the battle. In the absence of the forcing function, the rate of change of Antaeus’ strength would decline at a rate proportional to three-fourths of his original strength. Model Antaeus’ strength and determine if Hercules can defeat him as long as he is on land.

The Model We will model Antaeus’ strength using an ordinary differential equation with a step forcing function. Often we are faced with solving initial value problems that are differential equations with constant coefficients, but they may have a piece-wise continuous or step forcing function. The forcing function is also known as a “driving” function, since it comes from an external force or source that “drives” the system. One approach to solving such a problem is to trans- form the equation into another equation that is hopefully easier to work with. We then solve the new equation and reverse the transformation, interpreting the

2 solution back in the context of the original problem. In particular, one method is to use Laplace transforms, which are used to transform the initial value prob- lem into an algebraic equation that can then be easily solved using algebra.

The Laplace transform of a function a(t) uses integration in comparing a(t) to an exponential function of the form est. We define the Laplace transform function L[a](s) of the function a(t) to be

∞ −st L[a](s) = a(t) e dt. (1) Z0 Mathematically, the Laplace transform is a function that converts a(t) into a new function A(s), but we use the script letter L to represent that function (we usually write that A(s) = L[a](s), or simply, A = L[a]. Most calculus and dif- ferential equations textbooks have tables of commonly-used Laplace transforms (of polynomials, of exponential and trigonometric functions, of step functions, etc.). In addition, computer algebra systems, such as Mathematica and Maple, also have built-in algorithms for applying the Laplace transform operator. Here is a procedure for using Laplace transforms with initial value problems contain- ing constant coefficients:

Step 1. Apply the Laplace transform to the initial value problem. This yields an algebraic equation in the transform of the solution. Any initial condition and forcing function is also transformed.

Step 2. Solve the algebraic equation for L[a](s), the transform. Use alge- braic manipulation to ensure each term in the transform’s formula is itself in the form of a Laplace transform (see the example).

Step 3. Apply the inverse Laplace transform to obtain the solution to the initial value problem.

The Laplace transform has a very special property involving its derivative that really forms the basis for its use in solving differential equations. Given a func- da tion a(t) with associated Laplace transform L[a], the Laplace transform of dt is da L = sL[a] − a(0). (2)  dt  da This is easily verified by using the definition of L dt and evaluating the im- proper integral using integration by parts.  

How does the pulse affect the strength? This is similar to a harvesting problem. Let’s define a(t) to be the strength of Antaeus at time t, which is measured in minutes. Since Hercules takes away strength from Antaeus when he lifts him off of the ground, the coefficient for the rate of change of Antaeus’ strength (proportional to three-fourths of his original strength) is negative. This gives

3 us the following ordinary differential equation da 3 = − a(t) + f(t). (3) dt 4 This differential equation is first-order, linear, and non-homogeneous. Initially, we assume that Antaeus is at full strength, so a(0) = 1. The forcing function of this ODE is a square-wave pulse. A plot of the f(t) is shown in Figure 1, and it can be modeled as 0 for0 ≤ x < 5  1 for5 ≤ x < 6   0 for6 ≤ x < 11   1 for11 ≤ x < 12 f(t) =  .  0 for12 ≤ x < 17 1 for17 ≤ x < 18   0 for18 ≤ x < 23   etc.  

Now that we have the initial value problem, we need to solve it.

The Solution The Laplace Transform of the homogeneous portion of Equation3 is

da 3 3 L = − a(t) =⇒ sL [a] − a(0) = L [a] .  dt 4  4

The forcing function f(t) looks like a series of unit step functions. A unit step function has a discontinuity where it jumps from 0 to 1 or back from 1 to 0. It is commonly used in differential equations to model discontinuous processes. The step function’s main use is to turn other functions on and off, like a light switch. Since the function we are modeling is Antaeus’ strength, which is equal to either 1 or 0, our model needs to turn the value of the strength on and off at the appropriate time. For example, f(t)·Step(t,α) turns the function f(t) on at t = α, setting the function to a value of 1. Further, f(t)·{Step(t,α)−Step(t, β)} turns f(t) on at t = α and off at t = β. Our function f(t) can therefore be modeled as

f(t) = 1 ×{Step(t, 5) − Step(t, 6) + Step(t, 11) −Step(t, 12) + Step(t, 17) − Step(t, 18) + ···}.

The Laplace Transform of Step(t, 5) as a function of s is

1 − s L [Step(t, 5)] = × e 5 , s

4

¦¤

¤

¤

¨

©£

¤

¤§

¤

¤¦¤¦§¤§

¥ ¥¥

¡

¢£

Figure 1: The forcing function for Antaeus’ strength and when we add up all the terms, the Laplace Transform of f(t) becomes

1 − s − s − s − s − s − s L [f(t)] = e 5 − e 6 + e 11 − e 12 + e 17 − e 18 + ··· . s  

We could truncate the forcing function at t = 18 and see if we can determine any trend, but let’s keep a generalized form for the moment. Thus, the transformed differential equation becomes

3 1 − s − s sL [a] − a(0) = − L [a] + e 5 − e 6 4 s − s − s − s − s +e 11 − e 12 + e 17 − e 18 + ··· . (4)  Assign the value of a(0) = 1 and solve Equation 4 for L [a].

3 1 − s − s − s − s − s − s s + L [a]=1+ e 5 − e 6 + e 11 − e 12 + e 17 − e 18 + ··· .  4 s  

5 So,

1 1 − s − s − s − s − s − s L [a] = + e 5 − e 6 + e 11 − e 12 + e 17 − e 18 + ··· . s + 3 s (s + 3 ) 4 4   (5)

All that’s left to do now is take the inverse Laplace transform of the right-hand side of Equation 5 and we have the solution. The inverse transforms take the following forms:

− 1 kt L 1 = e , s − k

− 1 −rs 1 k t−r L 1 e = Step(t,r) (1 − e ( )). s (s − k)  k So, the solution to the initial value problem transforms to

− 3 t 4 − . t . a(t) = e 4 + Step(t, 5) 1 − e 0 75 +3 75 3   4 − . t . − Step(t, 6) 1 − e 0 75 +4 50 3   4 − . t . + Step(t, 11) 1 − e 0 75 +8 25 3   4 − . t . − Step(t, 12) 1 − e 0 75 +9 00 3   4 − . t . + Step(t, 17) 1 − e 0 75 +12 75 3   4 − . t . − Step(t, 18) 1 − e 0 75 +13 50 3   + ··· . (6)

Equation 6 represents the changing strength on the giant Antaeus as the match progresses, and this solution is plotted in Figure 2. We see that there is exponential decay while Hercules holds Antaeus above the ground for the first five minutes. Then, as his strength is almost at nothing, Antaeus is thrown to the ground, and he regains his strength (notice the positive steep rate of change). Hercules wrestles again with Antaeus, and the cycle repeats and repeats. The only way in which Hercules will win is if he can either strangle Antaeus while he is in the air or throw Antaeus into the water, where he will not gain strength from the earth. Apollodorus tells us the Hercules kills Antaeus while holding him in the air.

In the Classroom This is an appropriate interdisciplinary project to use in a differential equations course. Many textbooks are concerned with offering “practical applications”

6





!



























 







Figure 2: Antaeus’ strength as he wrestles Hercules or “real world” problems, and when Laplace transform applications problems are described, they usually involve an energy pulse or engineering flavor. This scenario, although contrived by the author, combines a nice approach using Laplace transforms with . In a liberal arts setting, students can relate the problem to a course outside the science or mathematics department. The labor has been in existence for 2000 years. By inserting some ideas to model the rise/fall of Antaeus’ energy, this becomes an exercise which my students have enjoyed solving. They know who Hercules is and can relate their solutions to the myth itself, as Apollodorus does not go into details.

References

[1] Apollodorus. 1939. Apollodorus, The Library, with an English Translation by Sir J. G. Frazer, in 2 Volumes. Cambridge, Massachusetts: Harvard University Press. Includes Frazer’s notes. [2] R. Borelli and C. Coleman. 2004. Differential Equations: A Modeling Per- spective. 2d Edition. New York: John Wiley & Sons, Inc.

7 [3] M. Huber. 2009. Mythematics: Solving the 12 Labors of Hercules. Prince- ton, New Jersey: Princeton University Press. [4] S. Hornblower and A. Spawforth, editors. 1996. The Oxford Classical Dic- tionary. New York: Oxford University Press.

8