Тёмный

What does a complex function look like?  

mathematimpa
Подписаться 3,8 тыс.
Просмотров 119 тыс.
50% 1

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

Опубликовано:

 

12 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 103   
@TheTickterd
@TheTickterd 9 месяцев назад
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 месяцев назад
Skill issue
@TheTickterd
@TheTickterd 8 месяцев назад
@@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 месяцев назад
This has to be one of the clearest explanations from a SoME3 submission. Great work!
@orlandojimenez6941
@orlandojimenez6941 7 месяцев назад
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 месяцев назад
Love myself some #SoME3 in the evening.
@leedavis7633
@leedavis7633 9 месяцев назад
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 месяцев назад
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 месяцев назад
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 месяцев назад
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 месяцев назад
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 месяцев назад
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 месяцев назад
@@wugionyoutube Can you provide those links here? sounds fascinating.
@pavelperina7629
@pavelperina7629 8 месяцев назад
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 месяцев назад
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 месяцев назад
I really never heard of this. It'd be like plotting an R²->R² function, so it should work.
@simonflavioibanez7715
@simonflavioibanez7715 9 месяцев назад
That's how i do it, actually. It's a great way of graphing a function on the complex plane.
@SIXSHAMAN
@SIXSHAMAN 8 месяцев назад
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 месяцев назад
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 месяцев назад
my colorblindness going wild on this one lmao
@nessiecz2006
@nessiecz2006 3 месяца назад
😂😂😭
@dAni-ik1hv
@dAni-ik1hv 7 месяцев назад
never could've imagined that by simply taking the sqrt(-1) we would ever get to 4 dimensions.
@greengreen110
@greengreen110 9 месяцев назад
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 месяцев назад
Absolutely incredible video! Truly 3blue1brown level
@mathematimpa
@mathematimpa 9 месяцев назад
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 месяцев назад
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 месяцев назад
Gotta watch 24h version of spinning chip now
@mathematimpa
@mathematimpa 8 месяцев назад
With the "spinning seal" song in the background
@idjles
@idjles 9 месяцев назад
I was hoping at the end you’d plot ln(a) so we’d see the multiple layers!
@mathematimpa
@mathematimpa 9 месяцев назад
Multivalued functions are a whole other can of worms. Would take a separate video to do them justice.
@hansisbrucker813
@hansisbrucker813 9 месяцев назад
This is so great. Subscribed 😁👍 Btw, how would you approach plotting quaternions? Are quaternion valued functions a thing even?
@mathematimpa
@mathematimpa 9 месяцев назад
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 месяцев назад
@@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 Месяц назад
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 месяцев назад
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 месяцев назад
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 месяцев назад
Great ! What tool used for visualization / rendering ?
@mathematimpa
@mathematimpa 9 месяцев назад
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 месяцев назад
I uploaded the file to github: github com/mathematimpa/complex-visualize
@michaelgonzalez9058
@michaelgonzalez9058 Месяц назад
Yes
@nimeshpoudel8277
@nimeshpoudel8277 9 месяцев назад
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 месяцев назад
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 месяцев назад
if you think imaginary numbers are insane, wait until you hear about quaternions
@TheAdhdGaming
@TheAdhdGaming 9 месяцев назад
id you think quaternions are insane, wait until you hear about octernions
@TheAdhdGaming
@TheAdhdGaming 9 месяцев назад
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 месяцев назад
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 месяцев назад
Showing how the circle maps. Mapping the plane is when we look at the grids.
@StuartSimon
@StuartSimon 9 месяцев назад
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 месяцев назад
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 месяцев назад
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 месяцев назад
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 месяцев назад
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 месяцев назад
so z^2 is a potato chip nice to know
@The_Commandblock
@The_Commandblock 7 месяцев назад
POV: You are Colour-Blind
@mathematimpa
@mathematimpa 7 месяцев назад
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 месяцев назад
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 RU-vid 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
@MikeyBarca02
@MikeyBarca02 6 месяцев назад
Rip Name-xd1hv
@lordsneed9418
@lordsneed9418 5 месяцев назад
you don't know what you're talking about
Далее
🍏 #iPhone15 УСТАРЕЛ ОФИЦИАЛЬНО 🤡
00:47
LEGO Avengers - stuck
1:00
Просмотров 177
Why hyperbolic functions are actually really nice
16:03
Euler's Formula Beyond Complex Numbers
29:57
Просмотров 221 тыс.
The Strange Case of the Umbral Calculus
24:26
Просмотров 38 тыс.
Seven Dimensions
14:41
Просмотров 766 тыс.
Green's functions: the genius way to solve DEs
22:52
Просмотров 619 тыс.
Visualizing Complex-Valued Functions
23:38
Просмотров 26 тыс.