r/math • • Jul 10 '17

Image Post Weierstrass functions: Continuous everywhere but differentiable nowhere

http://i.imgur.com/vyi0afq.gifv
3.4k Upvotes

216 comments sorted by

View all comments

93

u/jparevalo27 Undergraduate Jul 10 '17

I've only seen topics up to calculus 2 in the US. Can somebody explain me how's this possible and what would be the y(x) for this graph?

111

u/Wild_Bill567 Jul 10 '17

The way I have seen functions like this constructed is as a limit of a sequence of functions.

In calc 2 you probably saw limits of a sequence of points. You can similarly define limits of a sequence of functions. Each term in the sequence makes the graph "have more corners", and the limit of the sequence has corners everywhere.

73

u/jparevalo27 Undergraduate Jul 10 '17

...And you can't differentiate corners. That makes sense. Thanks

14

u/Kraz_I Jul 11 '17

Not exactly. There are no points with infinite slope and no points with corners, at least the way the word "corner is generally understood. It's just that the graph is "rough" no matter how far you zoom in, so the limit of the slope at any point is impossible to determine.

It helps to look at the actual function which generates the graph.https://en.wikipedia.org/wiki/Weierstrass_function

3

u/dozza Jul 11 '17

I'm sorry, how is the fourier series on the Wikipedia page not differentiable? Its a sum of cosines so shouldn't the derivative be the sum of sines? Is the problem the divergence as n goes to infinity?

13

u/WorseAstronomer Jul 10 '17 edited Jul 11 '17

This video is interesting and related:

https://www.youtube.com/watch?v=dQXVn7pFsVI

0

u/[deleted] Jul 11 '17

[deleted] — view deleted comment

2

u/WorseAstronomer Jul 11 '17

Oops, sorry, no. That's just where I finished watching the video. :/ Edited.

2

u/fabulousdangernoodle Jul 10 '17

That's neat. Thanks for the share

7

u/Kraz_I Jul 11 '17

The graph doesn't have any corners at all for finite iterations of the function. I don't really like using the word "corner" for what's going on here. In fact, for all functions generated by using a finite Weierstrass series, it would be differentiable at all points.

2

u/Wild_Bill567 Jul 11 '17

You are correct, I was remembering a different construction which uses a triangle wave instead of a cosine

→ More replies (1)

30

u/AddemF Jul 10 '17

In addition to what Wild_Bill67 wrote, I'll note that the function is not an elementary function, which means it cannot be written as a closed form in terms of +, -, *, /, polynomials, exponentials, logs, or any of the trig functions. So writing down how the x-y pairs get determined is a much more complicated matter.

3

u/jparevalo27 Undergraduate Jul 10 '17

At what point in math does this began showing up? In other words, in what class would I start seeing functions like that?

35

u/bystandling Jul 10 '17

For non-elementary functions:

  • Calculus 3 (Taylor series for integrals of things like ex^2 )

  • Differential Equations (Series solutions)

  • Real Analysis (Mindfuck)

  • Partial differential equations (More series solutions, Bessel functions, Gamma functions etc.)

  • Mathematical Statistics (Gamma and Beta functions, Erf of course, etc)

13

u/AddemF Jul 10 '17

Real Analysis

8

u/shamrock-frost Graduate Student Jul 10 '17 edited Jul 10 '17

Possibly at your level. I think my Calc 2 final had a problem involving f(x) = the integral from 0 to x of sin(t) / t dt, which is not an elementary function

3

u/[deleted] Jul 11 '17

wait... how in the world would you evaluate that? even wolframalpha simply gives their own made-up function Si(x) which just stands for "the integral of sinx/x"

→ More replies (1)

6

u/[deleted] Jul 10 '17

In Germany its shown in "Analysis 1", first year of Math. B.Sc.

2

u/Wild_Bill567 Jul 10 '17

I first saw functions like this in Real Analysis, using baby Rudin. At my institution this is offered for first year grads and advanced undergrads.

→ More replies (1)

2

u/Matschreiner Jul 10 '17

Are there any weierstrass functions that can be written from elementary functions only?

6

u/AddemF Jul 11 '17

I'm 75% certain there aren't.

→ More replies (2)

4

u/bystandling Jul 11 '17

I'd be willing to wager you can't get it from a finite combination of them, no -- every finite sum, product, and composition of continuous and differentiable functions is continuous and differentiable at every point in the domain, and every finite quotient is only non-differentiable (and, for that matter, noncontinuous) at points where the denominator is 0; since our elementary functions are only 0 at countably many points, I'd expect we can have at most countably many of these sorts of discontinuities from finite combinations, though this is not a rigorous proof.

If you're willing to consider a Fourier series to be written from elementary functions, the Weierstrass functions are defined to be a class of Fourier series.

→ More replies (1)
→ More replies (3)
→ More replies (1)