Basic Examples (2)
Compute the derivative of a piecewise function:
Compute the derivatives of a function whose domain is not an interval:
Compute just the third derivative:
Plot the function together with its first three derivatives:
Scope (4)
Find and plot the first- and second-order derivatives. The function and its first-order derivative are continuous at x=0, but not the second-order derivative:
Check that the first derivative is continuous:
Check that the second derivative is not continuous:
Plot the results:
Applications (5)
The following function has a removable discontinuity at x=3 and an infinite discontinuity at x=4:
Extend the definition at x=3 to make the extended function continuous there:
The extended function is actually differentiable at x=3:
The resource function EnhancedPlot produces a correct plot:
The function g is differentiable at x=0 and PiecewiseD returns the correct value, 1. The function D, however, returns the value 0 for the derivative at x=0:
However, the derivative is not continuous:
This function is differentiable at x=0 and its derivative is continuous there:
Plot the result using the resource function EnhancedPlot:
A function with a singularity at x=-1 and x=1; PiecewiseD returns the correct result. Note that if this expression is simplified, the singularity at x=1 will be lost:
The resource function EnhancedPlot is able to produce a correct plot:
Extend the function so that it becomes continuous at -1 and 1:
The first and second derivatives are continuous at ±1:
Plot the extended function and its first two derivatives:
A classic example of a nonzero infinitely differentiable function all of whose derivatives at x=0 are 0 and hence all of whose Taylor polynomials based at 0 are the zero polynomial:
Illustrate with ResourceFunction["EnhancedPlot"]: