Mathematical reflections, not those supposedly practiced in metaphilosophy.
Given a function defined for , we have two basic ways to reflect it about : even reflection and odd reflection . Here is the even reflection of the exponential function :
The extended function is not differentiable at . The odd reflection, pictured below, is not even continuous at . But to be fair, it has the same slope to the left and to the right of , unlike the even reflection.
Can we reflect a function preserving both continuity and differentiability? Yes, this is what higher-order reflections are for. They define not just in terms of but also involve values at other points, like . Here is one such smart reflection:
Indeed, letting , we observe continuity: both sides converge to . Taking derivatives of both sides, we get
where the limits of both sides as again agree: they are .
A systematic way to obtain such reflection formulas is to consider what they do to monomials: , , , etc. A formula that reproduces the monomials up to degree will preserve the derivatives up to order . For example, plugging or into (1) we get a valid identity. With the equality breaks down: on the left, on the right. As a result, the curvature of the graph shown above is discontinuous: at it changes the sign without passing through .
To fix this, we’ll need to use a third point, for example . It’s better not to use points like , because when the original domain of is a bounded interval , we probably want the reflection to be defined on all of .
So we look for coefficients such that holds as identity for . The linear system , , has the solution , , . This is our reflection formula, then:
And this is the result of reflecting according to (2):
Now the curvature of the graph is continuous. One could go on, but since human eye is not sensitive to discontinuities of the third derivative, I’ll stop here.
In case you don’t believe the last paragraph, here is the reflection with three continuous derivatives, given by
and below it, the extension given by (2). For these plots I used Desmos because plots in Maple (at least in my version) have pretty bad aliasing.
Also, cubic splines have only two continuous derivatives and they connect dots naturally.