## EpsilonDelta Applet

This applet is designed to help users understand the epsilon/delta definition of a limit. The question is whether the limit as x approaches a of a function, f(x), is limit to L. Testing this involves finding a delta (greater than zero) for each epsilon (greater than zero) such that.... In this applet, the values of a, L, epsilon, and delta can be adjusted using sliders or text input boxes at the bottom of the applet. (It is possible to hide the a and L inputs with applet params.) A horizontal band about y=L is shown in pink and yellow. This band contains all points (x,y) such that |y-L| is less than epsilon. A vertical band about x=a is shown in light green and yellow. This band contains all points (x,y) such that |x-a| is less than delta. Note that the yellow rectangle is the intersection of the delta and epsilon bands. If the limits is L, then for every point (x,f(x)) in the delta band (except possibly for x=a) must also lie in the epsilon band. An easy way of saying this is that the graph of the function can't hit the green area. In addition, EpsilonDelta supports the display of open and closed points and dashed asymptote lines on the graph as part of the examples.

Here is the applet without any applet params:

In the next version of the applet, which is launched by clicking the following button, I've configured a set of examples. This version could be used as an exercise where the user is supposed to find a delta, if possible, for several values of epsilon. I've turned off the a and L inputs, since I want to provide fixed values for each example. I've turned on mouse zooming to make it easy for the user to zoom in for a closer look. Click and drag to draw a box around the part of the graph that you want to magnify. Panning with right-click-and-drag is also enabled (or command-click-and-drag on Macintosh). For small values of epsilon and delta, you will want to zoom in on the point (a,L) and use the input boxes instead of the sliders to control the values of epsilon and delta.

The applet tag for this version of the applet is:

<applet archive="webcompmath.jar" code="net.sourceforge.webcompmath.applets.EpsilonDelta" width=220 height=35>

<param name="UseFunctionInput" value="no">

<param name="UseAInput" value="no">

<param name="UseLimitInput" value="no">

<param name="UseMouseZoom" value="yes">

<param name="UsePanner" value="yes">

<param name="UseRestoreButton" value="yes">

<param name="UseLoadButton" value="no">

<param name="Example1" value="Example1: Limit of x^2 at x = 1; x^2; -1, 5, -4, 4, 1, 1, 0.3, 0.8, 0.5, 1">

<param name="Example2" value="Example2: Nice and simple!; 0.35*2^x; -1, 3, 0, 2, 1, 0.7, 0.1, 0.4, 0.1, 0.4">

<param name="Example3" value="Example3: Gap!; x < 2? x-1.05 : x>2? 2*x-2.95; -1,4, -1, 4, 2,1, 0.1, 0.2, 0.1, 0.2">

<param name="Example4" value="Example4: Look close!; x < 1? x^2+0.995 : 3 - x; -1, 5, -1, 4, 1, 2, 0.1, 0.2, 0.1, 0.2">

<param name="Example5" value="Example5: Strange function!; x*sin(1/x);-2,2,-2,2, 0, 0, 0.1, 0.2, 0.1, 0.2">

</applet>

Many of the applet params are processed by the source code in the base class, GenericGraphApplet. See the list of params for that class for information about those parameters. The additional params processed in the EpsilonDelta applet are as follows. (This applet is not as configurable as most of the others; for example, I haven't provided the means to change some of the colors.)

Param NameTypeDefaultDescriptionGraphColorColor black The color used to draw the graph. UseAInputyes/no yes If this is yes, then the user can control the value of a (the x-coordinate where the limit is tested). AInputName String a The name of the x-value where the limit is to be taken. The other common name for this is "c." UseLimitInputyes/no yes If this is yes, then the user can control the value of L (the limit that is tested). AValuenumber 0 Initial value of a. LimitValuenumber 1 Initial value of L. EpsilonValuenumber 0.25 Initial value of epsilon. It should be between 0 and 2, which are the limits on the range of epsilon values. (The limits can be changed in examples, but not with applet params.) DeltaValuenumber 1 Initial value of delta. It should be between 0 and 2, which are the limits on the range of epsilon values. Example,

Example1,

Example2,

...String (none) These params, if present, define examples that appear in an Examples menu at the top of the applet. You can define "Example1" whether or not you define "Example". However, you can only have an "Example2" if you have an "Example1", you can only have "Example3" if you have "Example2", and so on. An example takes the following form: First, a descriptive title that will appear in the example menu, followed by a semicolon. This is followed by an expression, which defines the function. These can optionally be followed by another semicolon and a list of up to ten numbers. These numbers, if present, have the following meanings: The first four numbers give the x- and y-limits to be used for the example. The fifth number is the value of the x-coordinate a. The sixth number is L, the possible limit value that is being tested. the seventh number is the initial value of epsilon. The eighth is the initial value of delta. The ninth number gives the maximum value on the epsilon slider. The tenth number gives the maximum value on the delta slider.

If there are more semicolons and elements, each such element is a comma separated list. For open points, the first item is "open" and the next two items are the x,y coordinates of the point. Closed points are similar, except that the first item is "closed". Line asymptotes use "asymptote" as the first item, followed by four numbers representing the x,y coordinates of two points on the line.