Interesting functions thread

I'll start with the Cantor Step Function - continuous everywhere, derivative exists almost everywhere, but it always 0.

Other urls found in this thread:

en.m.wikipedia.org/wiki/Dirac_delta_function
twitter.com/AnonBabble

The identity function

Constant functions cuz the don't give a fuck what you plug in

how is it constructed my nigga?

Isn't that impossible? I remember that if a function's derivative is 0 for every x in R and is continuous than the function is constant.

>I remember that if a function's derivative is 0 for every x in R and is continuous than the function is constant.

Wrong. To see why, try to prove that.

That's why its an interesting function. It isn't really intuitive.

What? No, that's true. The Cantor function is *almost* everywhere differentiable, which is the catch.

Suppose f is continuous and f'(x)=0 for all x in R. Let a,b be any two distinct points in R, then f satisfies the mean value theorem on [a,b]. Then there exists some c such that f'(c) (b-a)= f(b)-f(a). But f'(c) = 0, and thus f(b) = f(a). It follows that f is constant on R

Not him but its putting x into base 3 then forcing it to become a binary number that is then read back into base 10

the derivative isn't 0 everywhere, it's only 0 where it's defined (which is *almost* everywhere).

f(0)=0, f(1)=1
split (0,1) into 3 equal length open intervals and let f(x)=1/2 for the middle one
split both remaining in 3 equal length open intervals and let f(x) for the middle one be arithmetic mean between already defined neighboring values
repeat ad infinitum

Better description than in the related pic.

I like this thread idea OP, I'll start dumping some classic ones to get discussion rolling. Here's sin(1/x), which has a discontinuity at zero where the limit from either side fails to exist, and also doesn't diverge to plus or minus infinity.

Here's the Weierstrass function, which is continuous everywhere but differentiable nowhere.

>continuous everywhere, derivative exists almost everywhere, but it always 0.

>interesting functions thread
>people only post gay ass satanic functions that only exist to bother people

Not to mention that its graph is connected, but not path-connected.

The function I'm going to define one has no picture, to accompany it, but I still think it's cool. It requires a bit of context first.

Theorem: Suppose [math]f: \mathbb{R} \to \mathbb{R}[/math] is monotonically increasing (meaning that if [math]x \leq y[/math], then [math]f(x) \leq f(y)[/math]). Then f only has simple discontinuities, meaning the left and right limit must always exist.

Proof: The left limit at x will be the supremum of [math]f((-\infty, x))[/math], and the right limit will be the infimum of [math]f((x, \infty))[/math]. It's very straightforward to check this works.

We of course have an analogous result for a monotonically decreasing function. A function which is either monotonically increasing or decreasing is monotonic.

Corollary: If f is monotonic, then f has at most countably many discontinuities.

Proof : By the above theorem, any discontinuity for f is a jump discontinuity. Then at each point of discontinuity, we can choose a rational point between the left and right limit at the discontinuity. This implies there are at most countably many points of discontinuity.

This corollary raises the question of whether there is a monotonic which is discontinuous at countably many points. The answer is yes, and here's an example!

Let [math]\sum_{n=1}^\infty x_n[/math] be a convergent sequence of positive numbers. We enumerate the rationals [math]\{q_n\}_{n=1}^\infty[/math]. Now define [math]f: \mathbb{R} \to \mathbb{R}[/math] as follows:

[eqn]
f(x) = \sum_{n : q_n < x} x_n.
[/eqn]

Because the [math]x_n[/math] are positive, it's easy to see this function is monotonically increasing. It's also easy to see by definition that for a rational point [math]q_m[/math], the left limit is [math]\sum_{n: q_n < q_m} x_n[/math], while the right limit is [math]\sum_{n: q_n \leq q_m} x_n[/math], so there is a jump discontinuity at this point.

In sum, we've constructed a monotonic function which is discontinuous at every rational point!

The Dirichlet function.

It maps all real numbers x to the set {0,1}, such that:

if x is rational, then f(x) is 1
if x is irrational, then f(x) is 0

Defined everywhere, discontinuous everywhere, differentiable nowhere.

And the area under the curve from x=0 to x=1 is..... ???

I was going to talk about the Dirichlet function in this post, but snipped me. Here's another function that's somewhat similar. If x is irrational, define f(x) = 0. If x is rational, write it in simplest form as x = p/q. Then define f(x) = 1/q. It's easy to see this function is discontinuous an every rational point. In fact, [math]\lim_{x \to a} f(x) = 0[/math] for every a, which implies that f is continuous at every irrational point. Pic related is a graph of the function.

Also, the Riemann integral of that function is undefined, and the Lebesgue integral is 0.

Last one I have for now is the Takagi function, also called the Blancmange Curve. It is, like the Weierstrass function, continuous and nowhere differentiable. Further, it is neither increasing nor decreasing on any interval of positive length.

The last thing I would like to point out are two other cool properties of the Cantor function (from the OP) which haven't been mentioned yet.
1) If you think about it, the length of a graph in the unit square can have maximum length 2. The length of the graph of the Cantor function is in fact 2.
2) Let f be the Cantor function and C the cantor set. We can see by definition f(C^c) is countable, and thus a measure zero set. This implies that the measure of f(C) is 1. In other words, the Cantor function maps a null set to a set of positive measure (this means f fails to satisfy the Luzin property).

The dirac delta function is a *generalized* function which is 0 everywhere but at x=0, yet has an area of 1 under the graph.
(Not actually a function, more of a limit to a series of functions)
en.m.wikipedia.org/wiki/Dirac_delta_function

How's high school treating ya?

>dirac delta function

PolarPlot[(1 + 0.9 Cos[8 t]) (1 + 0.1 Cos[24 t]) (0.9 + 0.05 Cos[200 t]) (1 + Sin[t]), {t, -Pi, Pi}]

Sign function

A flat function - meaning at some point, all derivatives of the function are 0.

Example: y = exp(-x^(-2))

Since any derivative of y is 0 at x=0, it cannot be approximated by a Taylor series.

its not defined at origin

>mfw a electrical engineer is being brainlet near me

its defined as 0 at the origin which is why it has the described property of derivatives of all orders 0 at the origin

>Babbys first analysis class

hey guys. I am very bad at math. Is it possible to draw this function? and what is mathemathics behind it?

Conway base 13 function, not continuous but still has the IVT property of a continuous function.

i meant origo

and often piecewise defined functions tend to have not taylor series

>derivative is 0 for every x in R
>ignoring the phrase "almost everywhere"
found the Analysis D-student

>sit in on a Veeky Forums thread to see how much of a joke they are
>user says dirac delta "function"

>Is it possible to draw this function?
It looks like you just did.

Cool problem I did in first year maths:
Construct an explicit bijection between (0,1) and [0,1]

I used paint program: ( Is it possible to draw it via math? is there function behind it?

...

sine wave

this is my favorite i like this, thanks anons

the integral function

-exp(-x)/(x-1)

my teacher called it "The Devils function"

2+exp(-0.5x)/(x-1)

>exp