Refraction of light | Physics | Khan Academy
We see incredible optical illusions all around us almost every day, right? But what causes them? One of the main reasons is that when light goes from one medium to another, like say from vacuum or air into glass, it changes its speed, because of which it bends. This bending is what we call refraction.
So, refraction is the phenomena where light bends when it changes medium, and it happens because it changes its speed when it goes from one medium to another. Now, one part of physics would be figuring out exactly how much it bends, and then using that to figure out the geometry of, like, you know, how we get the images, why are the images big, they're small, and inverted, and all of those cool things. We call that geometrical optics.
We're not going to do that in this video, because in this video, we're going to try and understand why this happens. A couple of questions that we could be having in our mind is that, question number one, we could ask, "Hey, why is it that if light changes its speed, it should bend?" I mean, for example, when light enters glass, it slows down, but why should it bend? Why can't it just continue in the same direction, just a little slower? Why should it bend?
And then we could have an even more fundamental question: Why does light change speed in the first place? Why does light slow down, for example, when it enters glass? What's going on? So, let's try and answer these questions one by one.
So, let's start with the first one: Why does light changing speed imply bending? To answer this question, let's remember our model of light, that is, it's an electromagnetic wave with oscillating electric fields. You can think of these as electric field vectors, and also magnetic fields, which I've not shown over here.
Okay, but let me also get rid of these electric field vectors, and let me just look at the wave. This is an electromagnetic wave. Now, the key thing over here is that this light is a wave in three dimensions. So, if you were to sort of like look from the top, we may see something like this. This was the wave that we looked at earlier, but now you can imagine a lot of these waves all stacked up.
I'll show some more of these waves, but you can imagine like there are a lot of these waves all stacked up. That's what, you know, this is how you can visualize this wave in 3D, and you now get to see something that you couldn't earlier. You can see these lines. These lines represent a set of all crests, another set of all crests. You also see here a set of all troughs, right?
We give a name to these lines; we call them wavefronts. Okay, what are wavefronts? You can say wavefronts are a set of all points that are in phase with each other. Remember the word phase? In phase basically means that the electric field vectors over here are all oscillating in sync with each other. They all finished the same number of oscillations at any given time. Think of it that way, okay?
So, a set of all such points in phase we call them as wavefronts. And over here, we see these wavefronts to be parallel and straight and stuff, but that may not be true. Waves can have different shapes, but what's important for us is that the direction in which the wave travels will always be perpendicular to the wavefront. You can see that over here, right?
Let me give another example. Let's take a familiar example of water waves. If you're looking at water waves from the top, you can now see circular wavefronts. Again, set of all points that are in phase with each other, they're all cresting over here. You can see another; they're all cresting over here, right? So these are circular wavefronts.
But again, if you look at the direction in which the wave is traveling, look at that. You can see, um, locally at that particular point, it is perpendicular to the wavefront. It is perpendicular to the wavefront. You can make sense that the wave is traveling outwards, but wave direction is always perpendicular to the direction of the wavefront. That's an important one for us now to understand what happens when it enters a medium like glass.
Let's just focus on one of these wavefronts, and introduce our glass piece. And what helps me to visualize this is, instead of looking at this as a complete continuous wavefront, let me convert it into a few dots representing the wave crests. So, you can imagine this is one of the wave crests of the wave; this is another wave crest of the wave. This whole thing is a wavefront.
And now let's see what happens when it enters into the glass. Remember, the waves slow down, so let's see how that, you know, results in bending. Okay, so let's look at it frame by frame. So, in the next frame, all of them would have traveled equal distance forward because they're all traveling with the same speed. Again, they will travel equal distance forward, but now you can see that this one, the one at the bottom, this crest enters the glass piece first.
Therefore, it's going to slow down first. So, in the next frame, this one will travel less distance, but the one over here would travel the same distance as before. And see what happens as a result. You'll get something like this. That makes sense, right? This has traveled less distance, but the rest of them have traveled the same distance as before.
And now notice this one enters into the glass piece, so now this one will slow down, and so it will also travel less distance. Now this and this will travel at the same speed, but the rest of them will continue traveling at the same earlier speed. Now you see what happens. Boom! Can you see what's going on as a result? Notice what you notice. Oh my God! You can actually now see the wavefront bending.
What caused the bending? The bending happened because not all the wave crests slow down at the same time. The ones at the bottom slow down first, and then slowly and steadily the rest of them start slowing down. And now, if you could see the waves just like before, there you have it—this is what it would look like. Let's animate this one more time. Here's what it would look like.
There it is, the waves are bending. They've slowed down, and they're bending because of that. Beautiful, right? But now remember, if you want to figure out the direction in which the light ray is traveling, that direction will always be perpendicular to the direction of the wavefront. So, let's look at it one more time and focus on just a beam of light.
And let's see what we get. So, we're just going to focus on a beam of light, and boom! There you go. You can now clearly see the whole thing bending. Beautiful, right? This is how we model refraction, thinking of light as an electromagnetic wave.
Okay, let's test our understanding quickly. What if the light did not slow down as much in glass? For example, if this was a different medium in which light was slightly faster, what would this bending look like? Well, now it wouldn't bend as much because the wavefront will not slow down as much as it did before, and as a result, look, they won't bend as much as they did before.
So you can see how much the light ray bends clearly depends upon how much this light slows down—how much the light changes its speed. But another thing that would matter is the angle at which we incident light. For example, what if we incident light perpendicular to the surface? What would happen then?
Well, now light wouldn't bend at all. Why? Because even though light is slowing down, look—the entire wavefront enters at exactly the same time, and therefore the whole wavefront slows down together. There's no bending. So when you incident light perpendicularly, there will be no bending at all.
So, it depends on the angle at which you incident light as well. This means the amount of bending depends upon the angle at which you shine light on the surface, and it also depends upon how much light slows down or speeds up. It can speed up as well.
And now that brings us to the second question, the more fundamental one: Why does light change its speed in the first place? Why does light, for example, slow down when it goes from, say, air to glass? What really happens to the electromagnetic waves when it enters glass? One of the cool ways to figuring this out is to, instead of looking at the entire glass piece at once, just take a tiny, very tiny portion of the glass and see what happens to it.
Okay, so if the glass piece was not there, then the wave would just keep going forward. But because the glass piece is there, and the glass contains electrons inside of it, we can model these electrons to be kind of like a tiny spring. And so, now when the electromagnetic waves go over those electrons, let me just show that.
So here is an electron, for example. And as the electromagnetic wave passes over that electron, look—it makes it go up and down, it forces it to go up and down. And so we have these electrons that are all going up and down, oscillating up and down. And what happens when charges oscillate up and down? They create their own electromagnetic waves. Ooh!
This means all the electrons of this glass piece are going to generate another electromagnetic wave. They'll come out in both directions. I'm just going to show it over here so that we can see them apart. So here it is. Now, the one going to the left is the reflected light, but since we're not interested in that, let's just look at the one that's going to the right. It's going to merge with the incoming light, with the original light that we have incident.
And now the big question is: What happens when they merge together? Well, the technical term over here is interference. We say that these two waves will interfere with each other. And to figure out what happens to the resulting wave when waves interfere with each other, all we have to do is just add up their heights at each location.
For example, if we have a situation like what we have over here, where the crests and the troughs, the peaks and the valleys are all lining up like this, then in the resulting wave, the peaks would be even bigger. The valleys would be even deeper, right? They all add up, and we would get something that looks like this. We'll get a wave that looks very similar to this, but bigger peaks and bigger valleys.
We call this constructive interference because they are constructing each other, right? But what if the secondary wave was not like this? What if the secondary wave was like this, where the peaks matched exactly with the valleys of the secondary wave? What would happen then?
Now they tend to cancel each other. The peaks over here tend to cancel with the valleys, and the valleys over here tend to cancel with the peaks. But because this wave is still much smaller compared to this one—because this wave is generated by a tiny sliver of a glass piece over here, so it's not much—so the height of this wave should be very, very tiny compared to the height of this one.
But what will end up happening? The net result is that you'll get a wave that looks, again, very much like this, but with decreased peaks and valleys. We call this destructive interference because they're destroying each other. In fact, if this wave had the same height as this wave, they would completely destroy each other because the peaks would be completely destroyed by the valleys, the valleys would be completely destroyed by the peaks, and so on.
Which means to understand what really happens over here, we need to know exactly what is the phase difference between these two waves. In other words, we need to understand, you know, um, how are the crests and the crests—how are the crests of the waves and the troughs of the waves aligned?
Like, how are they aligned over here? Now, for that, we need to do the math, which we're not going to do. But if we do the math, it turns out for visible light frequency and for glass-like material, we would find that the secondary waves are not—the peaks are not completely lined up, but they are slightly shifted back like this. In fact, the peak of this will line up with the zero of the secondary wave, something like this.
This is how they will line up; unfortunately, we will not be able to understand intuitively as to why it lines up that way, because we have to do the math, which we're going to skip over here. But now comes the question: What would the resulting wave look like?
Well, the resulting wave will not be of constructive interference, nor a destructive interference. It'll be something in between. What we will end up seeing is a wave again that looks pretty much like this, but since the peaks of these are not lined up, the resulting one will have a peak that is somewhere in between the peak of this one and the peak of this one.
It'll be very close to the peak of this one, but it'll look somewhat like this. So you can kind of see, in fact, I think it should be very close like this. Okay, kind of like this. So the peaks of this one will be very, very close to the peaks of this one, but because of this wave, it will be slightly pulled back.
So the net effect, like putting it all together to summarize, the net effect of these secondary waves is that the peaks of these waves get slightly pulled back. So if I draw that wave over here, it would look very similar to this, but it would be slightly pulled back. Look at it carefully. Boom! This is the effect of one tiny glass piece over here.
What if I put another glass piece somewhere over here? Well, again, the wave in front of it gets pulled back. Same idea. Boom! What if I put another one? Pulls back. So notice that the wave is not really slowing down. The light is actually traveling at the same speed, but when you introduce these glass pieces, because of interference, the wave gets pulled back.
So imagine a ball or something that's moving forward at some speed, but then it gets pulled back, and then again continues to travel at the same speed where it's pulled back. Now, this is what happens if there are discrete tiny pieces of glass, but remember we have a continuous medium, which means there will be continuous pullback happening.
Again, imagine this ball going forward at some speed, but being continuously pulled back. What it would look like? Here it is. And we'll compare it to the ball that is not being pulled back. Look at this. Can you see it? Both the balls are always traveling at the same speed, but this one starts lagging because it's being continuously pulled back.
It almost looks like it is slower than the other ball, but it's not. But it gives you that illusion of being slower. The same thing is going to happen over here because of this continuous pullback. It will give us the illusion that the light has slowed down, and as a result, you will now get light traveling at a slower speed, and you'll also see the wavelength being compressed because of the pullback effect as well.
Finally, when you shine white light on a piece of glass, since it has different colors, meaning different frequencies, they would have different pullback effects. Therefore, different colors will travel with different speeds. It turns out that the violet end of the spectrum will have the maximum pullback effect, and so it'll travel with the slowest speed.
But the red end of the spectrum will have the least pullback effect, and it will travel with a higher speed. Which means if you shoot white light at an angle, the different colors will bend differently. The violet, since it slowed down a lot, will bend more compared to red. So red will bend less, white will bend more, and as a result, all the colors will be in between.
And as a result, the colors separate out. That's why the prism separates out all the colors, and this is also the reason why we see rainbows.