What does a complex function look like?

Поділитися
Вставка
  • Опубліковано 12 чер 2024
  • Join me as I explore the different ways we can visualize a complex function, to find which one deserves to be called their true graph.
    =================================================
    0:00 - Quick introduction
    0:30 - Why can't we just plot a complex function?
    1:45 - Mapping between 2 planes
    2:35 - Grid mapping
    3:07 - Reading a grid map
    4:15 - The problem with grid mapping
    5:35 - Colors to the rescue!
    7:07 - Mapping hue and brightness
    8:11 - Contour maps
    8:43 - Domain coloring: z/(z^2 + 1)
    10:07 - Domain coloring + contour lines
    10:40 - Domain coloring: z^2
    11:00 - Domain coloring: e^z
    12:05 - Domain coloring: z^5 + z^2
    12:30 - Domain coloring: tan(z) and (z-4i)/(z+4i)
    13:20 - Going 3D
    14:50 - |f(z)| + hue
    16:20 - What is a graph?
    18:12 - Projections and surfaces in 4D
    18:53 - Graphing Re(f(z))
    19:45 - Re(f(z)) + hue
    =================================================
    The bulk of the code I used can be found on github:
    [github.com/mathematimpa/compl...]
    CC atributions:
    Contour map of Mt St Helens
    Clarknova, CC BY-SA 3.0 [creativecommons.org/licenses/...], via Wikimedia Commons

КОМЕНТАРІ • 103

  • @TheTickterd
    @TheTickterd 9 місяців тому +299

    I never fully grasped why four dimensions were needed for complex functions, but the way it was explained here finally made it click

    • @muffinconsumer4431
      @muffinconsumer4431 8 місяців тому +16

      Skill issue

    • @TheTickterd
      @TheTickterd 8 місяців тому +10

      @@muffinconsumer4431 lol

    • @MikeyBarca02
      @MikeyBarca02 6 місяців тому

      I was only used to read that in FutBin comments lmaoo@@muffinconsumer4431

    • @agrajyadav2951
      @agrajyadav2951 3 місяці тому

      2 inputs 2 outputs

  • @battleprof2743
    @battleprof2743 9 місяців тому +28

    This has to be one of the clearest explanations from a SoME3 submission. Great work!

  • @orlandojimenez6941
    @orlandojimenez6941 7 місяців тому +13

    I love how this video is 20 minutes long and it felt like 5 minutes. Everything was well explained and it just kept getting more and more interesting. Congrats!

  • @roygalaasen
    @roygalaasen 9 місяців тому +13

    Love myself some #SoME3 in the evening.

  • @leedavis7633
    @leedavis7633 9 місяців тому +74

    I love your motivation at the beginning! You really hook the viewer with exactly what you're talking about, why it's interesting, and make promises for later in the video. It really kept me watching! In terms of clarity, I also loved how basic you started, letting anyone with even a small knowledge of imaginary numbers and what they are get by and understand the video. I think you could've done with maybe a short reminder of what imaginary numbers are and why were graphing their functions, but other than that it was fantastic. I also love your use of constant examples and animations, which really make sure the viewer is staying with you as your progress through the video. I think a couple of your steps could be more well thought through or explained, such as explaining polar coordinates, but even those were not bad and could be fixed with just a few seconds. In terms of originality and memorability, this was fantastic! I've never seen this covered before, but it's such an important problem with dealing with complex functions. I feel like most people take your first solution for granted when looking at the problem, so it's super interesting for someone to dive into possibilities we haven't considered for such a basic task.

    • @mathematimpa
      @mathematimpa  9 місяців тому +13

      Thanks for the nice comment. Once I started editing and watching the end product I noticed that some parts probably needed some expanding. Mainly the polar form as you pointed out and what does it mean to talk about exp or tan of a complex number. Unfortunately the deadline was looming so I stuck with the original script.
      Making these videos is also a learning experience :)

    • @pedroivog.s.6870
      @pedroivog.s.6870 5 місяців тому

      My only problem is that without the color circle mapping the angle to the hue on the side, it's hard to understand what the color represents on the graph, as I'm not very used to it. Great video, though, looking forward to learning more that soon

  • @user-gl1ql1bh8s
    @user-gl1ql1bh8s 7 місяців тому +1

    only once did my teacher visually show the complex region on the white board, but this video helped it explain what it looks like. cool!

  • @gianlucadegliesposti7241
    @gianlucadegliesposti7241 9 місяців тому +22

    I love domain coloring, I used in a paper to visualize complex numerical solutions to a differential equation and people loved it too :)
    not only can you immediately see all poles/zeros/essential singularities/branch points immediately, but you also see the order of such just by seeing how many times the hue changes around a point
    Mathematica has a beautiful color function to visualize contour lines and at the same time lines of constant real/imaginary parts that I found the most complete

  • @HyperCubist
    @HyperCubist 9 місяців тому +17

    It actually is possible plot a 4D graph, for instance a surface with two parameters, in a 4D space. The solution is exactly what we do with plotting 3D surfaces on a screen. We project it onto a flat screen, and then rotate around in three dimensions to examine different views. You also can take 4D information (the surface), project it to a 2D screen, and similarly rotate around in four dimensions, examining the surface from different points of view in 4D space. For instance one view might show the real output on an axis perpendicular to the xy plane (the z-axis), another view would show the imaginary output on a different perpendicular axis (the w-axis). And you can rotate partially between the two views. The difficulty is interpreting what your seeing, which is a matter practice, but it certainly is possible.

    • @wugionyoutube
      @wugionyoutube 9 місяців тому +3

      I agree with your introduction, I was actually excited that at least one person was going to mention "true" 4D methods and examples! But then in your examples you relapsed into mere 3D cases (Re, Im...). Are you familiar with "true" 4D complex function graphs? Did you see my comment three days ago, with my links to exactly that? If not, welcome to have an overall look at 4D objects ;)

    • @stirlingblackwood
      @stirlingblackwood 9 місяців тому +3

      @@wugionyoutube Can you provide those links here? sounds fascinating.

    • @pavelperina7629
      @pavelperina7629 8 місяців тому +1

      But there are some easy to understand visual cues helping to understand it, for example animated rotation, shading, perspective projection and functions are usually simple and predicable so when you see spiral in isometric view, you assume it's a spiral. When you see color-encoded heightmap with contour lines and shading which depends much slope faces the north, you have information to read height (color), gradient (density of countour lines) and direction of slope (shadow and color going from green to brown).
      In 4D there are usually no visual clue and even projection to pseudo-3d on screen with time is not obvious.

  • @John-xl5bx
    @John-xl5bx 9 місяців тому +43

    Why doesn't anyone plot these like a vector field? Those plots often put little 2D vectors at points all over the domain. For many functions I think this provides a nice combination of accurate and intuitive.

    • @mathematimpa
      @mathematimpa  9 місяців тому +15

      I really never heard of this. It'd be like plotting an R²->R² function, so it should work.

    • @simonflavioibanez7715
      @simonflavioibanez7715 9 місяців тому +9

      That's how i do it, actually. It's a great way of graphing a function on the complex plane.

    • @SIXSHAMAN
      @SIXSHAMAN 8 місяців тому +6

      This is a good way to plot the functions! But at points where the function value is very large, the arrows become too long and everything starts being messy.

    • @epicm999
      @epicm999 8 місяців тому +3

      Had to do that for an exercise once. It's helpful to see how a complex function transforms the complex plane. Only reason I don't keep on doing it is because it's tedious, but it's a good way to build intuition around what functions should look like.

  • @miguelangelhernandezortiz7303
    @miguelangelhernandezortiz7303 7 місяців тому

    I'm a mexican collegue student and i enjoyed the video, i always wanted to understand how to visulize a complex function and this is the first video that explain it well.

  • @heatheretaithaha
    @heatheretaithaha 8 місяців тому +9

    my colorblindness going wild on this one lmao

  • @dAni-ik1hv
    @dAni-ik1hv 7 місяців тому +2

    never could've imagined that by simply taking the sqrt(-1) we would ever get to 4 dimensions.

  • @greengreen110
    @greengreen110 9 місяців тому +7

    you could add a colour wheel in one of the corners in the coloured graphs to better convey what each colour means

  • @vladimirshitov2160
    @vladimirshitov2160 9 місяців тому +10

    Absolutely incredible video! Truly 3blue1brown level

    • @mathematimpa
      @mathematimpa  9 місяців тому +4

      Now that's some high praise :D

  • @thiagoulart
    @thiagoulart 5 місяців тому

    Literally the best video I've seen about this.

  • @borat1
    @borat1 9 місяців тому

    Fascinating video, this explained everything in a way that i could understand, and I haven't even gone through calculus yet. Please make more videos!

  • @brunot.4058
    @brunot.4058 7 місяців тому

    Such a concise and well explained video!

  • @PXWantonio
    @PXWantonio 8 місяців тому

    You explained it perfectly, I understood Everything!

  • @Chuck-sc9mb
    @Chuck-sc9mb 8 місяців тому

    Outstanding discussion!

  • @leocmen
    @leocmen 6 місяців тому

    God bless you
    Awesome lecture

  • @dowchbag
    @dowchbag 6 місяців тому

    i hope not winning anything from some3 doesn't discourage you i loved the content and you should definitely make more videos

    • @mathematimpa
      @mathematimpa  6 місяців тому

      I do have ideas for more. Just need to find time

  • @physira7551
    @physira7551 9 місяців тому +1

    You just earned a subscriber

  • @keepgoing8252
    @keepgoing8252 8 місяців тому

    It was so original! though I have to watch this few more times to understand better

  • @abzynt666
    @abzynt666 7 місяців тому

    amazing!!

  • @kummer45
    @kummer45 2 місяці тому

    This IS parametric architecture. Complex calculus and complex analysis should be requisite for architects.

  • @andrewtate8792
    @andrewtate8792 8 місяців тому +2

    Gotta watch 24h version of spinning chip now

    • @mathematimpa
      @mathematimpa  8 місяців тому

      With the "spinning seal" song in the background

  • @idjles
    @idjles 9 місяців тому +4

    I was hoping at the end you’d plot ln(a) so we’d see the multiple layers!

    • @mathematimpa
      @mathematimpa  9 місяців тому +3

      Multivalued functions are a whole other can of worms. Would take a separate video to do them justice.

  • @hansisbrucker813
    @hansisbrucker813 9 місяців тому +1

    This is so great. Subscribed 😁👍
    Btw, how would you approach plotting quaternions? Are quaternion valued functions a thing even?

    • @mathematimpa
      @mathematimpa  9 місяців тому +5

      The i, j, k coordinates play a similar role. So I think nice way of visualizing a quaternion would be use 3 spatial dimensions for these coordinates and color or some other visual cue to represent the real part of the quaternion.
      Quaternion valued functions are definitely a thing, but would be even trickier to visualize (you need to squish 8 dimensions of information somehow and even the graph projections would be 4d)

    • @hansisbrucker813
      @hansisbrucker813 9 місяців тому +1

      @@mathematimpa interesting 🤔 😊

  • @NoLongerBreathedIn
    @NoLongerBreathedIn 9 місяців тому

    Just plotting the argument of the value when domain coloring gives enough information to work out the entire function up to a scale factor, as long as the function is differentiable.

  • @etramulnn785
    @etramulnn785 5 місяців тому

    thank you for the explanation, even though this is really a good video I still have a hard time to understand this, maybe because I'm still in high school

  • @bbrozbart
    @bbrozbart 7 місяців тому

    You got my sub just for simple "hope you liked bye"

  • @algea2299
    @algea2299 6 місяців тому

    10:35 looks like 3 quarks forming into a baryon

  • @michaelgonzalez9058
    @michaelgonzalez9058 Місяць тому +1

    Morbius equation is a zeta function

  • @Sidd-rb4ec
    @Sidd-rb4ec 9 місяців тому

    Very insightful video. Can you tell the software you used so i can use it and get better understanding of the visualization?

    • @mathematimpa
      @mathematimpa  9 місяців тому

      This was all done in python. I uploaded the file (in all its uncommented glory) to github:
      github com/mathematimpa/complex-visualize

  • @angeldude101
    @angeldude101 9 місяців тому

    A graph is just a set of input and output coordinates? So I guess that means that domain colouring _is_ a true graph of a ℂomplex function. It's a set of points (x, y, |f(x + iy)|, arg(f(x + iy))). Those last two coordinates then actually get mapped _up_ a dimension so technically it ends up as a _5_ dimensional graph used to plot a 4 dimensional function. Adding the height makes it a total of 6-dimensional, though with said dimensions not all be linearly independent, and then it gets projected down to 5-dimensions anyways in order to display on a flat screen.
    People talking about it being "impossible to plot a 4D graph" really do often forget that even their "2D graphs" are ultimately 5 dimensional, though it is true that the redundancy and less dense information can make it much easier to interpret.

  • @thomasolson7447
    @thomasolson7447 9 місяців тому

    Pretty much what I am saying in a round about way. Except I'm relating this to electro-magnetic light. You can represent your colors in two ways, potential energy or kinetic energy. The cone is a special case of kinetic energy when mass is zero. Potential energy is the flat disc but only when when there is mass (numbers between -1 and 1 on output can't be included). If there is mass, potential energy has a small lip on the edge. I have to make my own graphing calculator, I guess. If I want it done right. When kinetic energy has mass, it is a hyperboloid. If the mass is negative, it is potential energy. If the mass is positive, it is kinetic energy. At least that is my theory this morning. I'm going to fudge with the numbers and try to verify it.

  • @miguelcerna7406
    @miguelcerna7406 9 місяців тому +1

    9:40 So if I start at origin,(blackness) and walk right on red I'm in positive real number territory and walking left on cyan I'm in negative real number territoy; I don't understand why the yellow line represents 'positive' imaginary number (it is below real line) and purple represents 'negative'?(it is above real line) why is this the convention?
    Super nice video. Really makes the 4-d concept make sense. Thanks for your work.

    • @mathematimpa
      @mathematimpa  9 місяців тому +1

      The function is z/(z^2 + 1), so for large z it is pretty much 1/z = z*/|z^2|, so the imaginary part gets flipped. So the real and imaginary axis of the domain are oriented as usual, but the function flips everything (Note that close to zero, yellow-green and purple are as you'd expect)

  • @MarcosCapixaba
    @MarcosCapixaba 9 місяців тому +2

    Great ! What tool used for visualization / rendering ?

    • @mathematimpa
      @mathematimpa  9 місяців тому +6

      This was all done with matplotlib (for the 2d stuff) and mayavi (for the 3d stuff)

    • @MarcosCapixaba
      @MarcosCapixaba 9 місяців тому

      @@mathematimpa care to share code ?

    • @mathematimpa
      @mathematimpa  9 місяців тому +1

      I uploaded the file to github:
      github com/mathematimpa/complex-visualize

  • @michaelgonzalez9058
    @michaelgonzalez9058 Місяць тому

    Yes

  • @nimeshpoudel8277
    @nimeshpoudel8277 9 місяців тому +1

    Once, I was playing with Geogebra on my phone with complex function and got one ovel-like function I liked it so much I took a screenshot (with out axis)
    Now it's my profile picture but I forgot what the function was. 😂

    • @mathematimpa
      @mathematimpa  9 місяців тому +1

      My avatar is a bit similar, but I was toying in a fractal generating program.

    • @wugionyoutube
      @wugionyoutube 9 місяців тому

      Mine is the complex "Circle-Hyperbola" w=1/z. With Graphing Calculator 4, the only I know to offer "true 4D".

  • @TheAdhdGaming
    @TheAdhdGaming 9 місяців тому +2

    if you think imaginary numbers are insane, wait until you hear about quaternions

    • @TheAdhdGaming
      @TheAdhdGaming 9 місяців тому +1

      id you think quaternions are insane, wait until you hear about octernions

    • @TheAdhdGaming
      @TheAdhdGaming 9 місяців тому +1

      if you think octernions are insane, wait until you hear about polyternions

  • @murtez22
    @murtez22 8 місяців тому

    Can I know what programs you use for such video creations and thx

    • @mathematimpa
      @mathematimpa  8 місяців тому

      This was all python, there is some information in the description.

  • @jonpritzker9709
    @jonpritzker9709 9 місяців тому +1

    2:15 why is the domain a unit circle and not the whole plane? or you're just showing how that circle maps

    • @mathematimpa
      @mathematimpa  9 місяців тому +2

      Showing how the circle maps. Mapping the plane is when we look at the grids.

  • @StuartSimon
    @StuartSimon 9 місяців тому +1

    Is this a collaborative project between a graph author who lives in the U.S. (spelling "color") and a narrator who lives in another country (calling Z "zed"?)

    • @mathematimpa
      @mathematimpa  9 місяців тому

      A project by a Brazilian that learned English from British people, but I try to keep my spelling more American XD

  • @anywallsocket
    @anywallsocket 8 місяців тому +1

    As someone with mild protean RG ‘color blindness’, the function colors without contours don’t perfectly match the contours 😂 @10:10

    • @mathematimpa
      @mathematimpa  8 місяців тому

      The Re(f(z)) graph being colorblind friendly is a plus I didn't got in.

  • @logo2462
    @logo2462 9 місяців тому

    At 9:44 I would have expected the green line to have a negative imaginary part and the purple line to have a positive imaginary part. These are flipped in the narration. Not sure if my expectation is wrong or the narration is wrong

    • @mathematimpa
      @mathematimpa  9 місяців тому +1

      The function is f(z)=z/(z^2+1), so for example f(2i)=-2i/3. As the imaginary part grows f->0 but always with negative imaginary part.
      Another way of seeing this is that when z is large f(z)~1/z=z*/|z|^2, so that's why f(z) and z end up with imaginary parts with opposite signs.
      Looking back it may not be the best first example from a pedagogical point of view, since I had that mixed up in the text and picked it up during recording.

  • @violet_isle
    @violet_isle 9 місяців тому

    what software do you use to graph these?

    • @mathematimpa
      @mathematimpa  9 місяців тому +1

      This was all python. I added some info in the description.

  • @MisterPenguin42
    @MisterPenguin42 9 місяців тому

    Is this available in 3Blue1Brown's Python package?

    • @mathematimpa
      @mathematimpa  9 місяців тому +1

      It's not on Manim. This is all matplotlib and mayavi.

    • @MisterPenguin42
      @MisterPenguin42 9 місяців тому

      @@mathematimpa thank you!!

  • @mathechne
    @mathechne 8 місяців тому

    very very interesting! we find fractal equations...

  • @faik...
    @faik... 8 місяців тому +1

    so z^2 is a potato chip
    nice to know

  • @The_Commandblock
    @The_Commandblock 7 місяців тому +1

    POV: You are Colour-Blind

    • @mathematimpa
      @mathematimpa  7 місяців тому +1

      At least the graph of Re(f(z)) is still usable

  • @michaelgonzalez9058
    @michaelgonzalez9058 Місяць тому

    Tw0 dimesion qua cubed

  • @kremenskiyjr
    @kremenskiyjr 9 місяців тому

    z^2 is a pringle chip change my mind

  • @subzerocatalyst
    @subzerocatalyst 8 місяців тому

    pringle

  • @pancito3108
    @pancito3108 5 місяців тому +1

    just one criticism: 16:31
    you say that the graph of 𝑓(𝑥) is {(𝑥, 𝑓(𝑥)) ∀ 𝑥 ∈ ℝ} when in reality that only counts as the graph of a function 𝑓(𝑥) with domain ℝ, but not for any function whose domain doesn't span all real numbers.
    for the rest, the video is an amazing learning tool, hope you the best!

  • @omargaber3122
    @omargaber3122 6 місяців тому

    I thank God and then I thank UA-cam for recommending this amazing icon to me
    ((Free Palestine))

  • @MarcusLing-kh7uv
    @MarcusLing-kh7uv 9 місяців тому

    I am the 48th comment

  • @ElloGovnaShorts
    @ElloGovnaShorts 7 місяців тому

    Wow this looks really complex 🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣

  • @Name-xd1hv
    @Name-xd1hv 8 місяців тому

    This will kill me

  • @lordsneed9418
    @lordsneed9418 5 місяців тому +1

    you don't know what you're talking about