Calculus of arbitrairy Functions
The program examines an arbitrary function ƒ. This means: The derivatives are determined; the function is investigated in regard of zeros, extremes (turning points) and inflection points for a previously defined range. The graphs of ƒ, ƒ', and ƒ" are plotted and a table of values is output.
Input
The function term is entered together with the range and the accuracy of examination and the angle mode.
The range is the interval in which the function is examined with respect of zeros, extremes and inflection points. It should not be too large, as this will increase the step size of the function check for sign reversal.
Output
The derivatives ƒ' and ƒ" of ƒ are determined by means of symbolic calculus according to the usual
derivative rules. If problems arise, the derivatives can be switched off.
Then the derivatives are calculated numerically. The differential quotients
Zeros, local maxima, local minima and the inflection points of the function in the examined range are output.
Gaps in the domain of definition are not recognized by the program, simply because they often don't lie within the number domain or are skipped, due to the binary arithmetic. For this reason, extremes or inflection points can be indicated there by mistake.
What was told about the gaps in the domain of a definition is also valid for the continuity and for the existence of the derivatives of ƒ, ƒ' and ƒ". Inevitably, the user himself / herself will have to make some effort.
Example 1:
Function ¯¯¯¯¯¯¯¯ ƒ(x) = x*sin(2*x) Examination in the range from -pi to pi Derivatives ¯¯¯¯¯¯¯¯¯¯ ƒ'(x) = 2*x*cos(2*x)+sin(2*x) ƒ"(x) = 4*cos(2*x)-4*x*sin(2*x) Zeros ¯¯¯¯¯¯ N1(-3,14159 | 0 ) m = -6,28319 N2(-1,5708 | 0 ) m = 3,14159 N3(-0,000001 | 0 ) m = -0,000002 N4( 0,000000 | 0 ) m = 0 N5( 1,5708 | 0 ) m = -3,14159 N6( 3,14159 | 0 ) m = 6,28319 Extremes ¯¯¯¯¯¯¯¯ T1(-2,45659 |-2,40723 ) m = 0 H1(-1,01438 | 0,909853 ) m = 0 T2( 0 | 0 ) m = 0 H2( 1,01438 | 0,909853 ) m = 0 T3( 2,45659 |-2,40723 ) m = 0 Inflection points ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ W1(-1,8218 |-0,87662 ) m = 3,67523 W2(-0,53844 | 0,474083 ) m = -1,39101 W3( 0,53844 | 0,474083 ) m = 1,39101 W4( 1,8218 |-0,87662 ) m = -3,67523
The curves of ƒ, ƒ' and ƒ" can be switched on and off individually using the switches on the right.
Table of Values:
ƒ(x) = x*sin(2*x)
x ∈ [ -pi; pi ], Δx = pi/4
x: ƒ(x): ƒ'(x): ƒ"(x):
————— ———— ———— ————
-3,141593 0 -6,2832 4
-2,356195 -2,3562 1 9,4248
-1,570796 0 3,1416 -4
-0,785398 0,7854 -1 -3,1416
0 0 0 4
0,785398 0,7854 1 -3,1416
1,570796 0 -3,1416 -4
2,356195 -2,3562 -1 9,4248
3,141593 0 6,2832 4
Range and step of the table of values for ƒ, ƒ' and ƒ" can be defined here.
Places, where one of the functions is not defined, are marked
Example 2:
Function ¯¯¯¯¯¯¯¯ ƒ(x) = abs(x^2-2) Examination in the range from -5 to 5 Derivatives ¯¯¯¯¯¯¯¯¯¯ ƒ'(x) = 2*x*sgn(x^2-2) ƒ"(x) = 2*sgn(x^2-2) Zeros ¯¯¯¯¯¯ N1(-1,41421 | 0 ) --- N2( 1,41421 | 0 ) --- Extremes ¯¯¯¯¯¯¯¯¯ H1( 0 | 2 ) m = 0 Inflection points ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ W1(-1,41421 | 0 ) --- W2( 1,41421 | 0 ) ---
Zeros without a sign change are not detected and often appear instead as extrema.
In Example 2, they are incorrectly classified as inflection points due to the change in curvature.

