Another way to answer this question is to apply the Equivalence Principle, which Einstein called his "happiest thought" (so you know it has to be good). The equivalence principle says that if you are in an enclosed box undergoing free fall in the presence of what Newton would call a gravitational field, then everything that happens in that box must be the same as if the box was not in a gravitational field. So when you release a ball, you can imagine the ball is accelerated downward by gravity, or you can imagine everything but the ball is accelerating upward, and the ball is simply being left behind (which checks better with the stresses you can easily detect on the objects around you and are not present on a falling ball, including the feeling you are receiving from your bottom right now).
Given that rule, it is easy to see how light would be affected by gravity-- simply imagine shining a laser horizontally. In the "left behind" reference frame, we see what would happen-- the beam would start from a sequentially higher and higher point, and that rising effect would accelerate. So given the finite speed of light, the shape of the beam would appear to curve downward, and the beam would not strike the point on the wall of the box directly opposite the laser. Therefore, this must also be what is perceived from inside the box-- the beam does not strike the point directly across from the laser (as that point is getting higher than the point across from it where the light was emitted), and its path appears to curve downward. Ergo, light "falls."
Indeed, this is the crucial simplification of the Equivalence Principle-- you never need to know what the substance is, all substances "fall the same" because nothing is happening to the substance, it is just the consequences of being "left behind" by whatever actually does have forces on it and is actually accelerating.
Incidentally, it is interesting to note that even in Newtonian gravity, massless objects would "fall the same" as those with mass, but to see it requires taking a limit. Simply drop a ball in a vacuum, then a lower mass ball, then a lower still mass. All objects fall the same under Newtonian gravity. So simply proceed to the limit of zero mass, you will not see any difference along the path of that limit. Nevertheless, Newtonian gravity doesn't get the answer quite right for the trajectory of light in gravity, because Newtonian physics doesn't treat the speed of light correctly.
Answer from Ken G on Stack ExchangeAnother way to answer this question is to apply the Equivalence Principle, which Einstein called his "happiest thought" (so you know it has to be good). The equivalence principle says that if you are in an enclosed box undergoing free fall in the presence of what Newton would call a gravitational field, then everything that happens in that box must be the same as if the box was not in a gravitational field. So when you release a ball, you can imagine the ball is accelerated downward by gravity, or you can imagine everything but the ball is accelerating upward, and the ball is simply being left behind (which checks better with the stresses you can easily detect on the objects around you and are not present on a falling ball, including the feeling you are receiving from your bottom right now).
Given that rule, it is easy to see how light would be affected by gravity-- simply imagine shining a laser horizontally. In the "left behind" reference frame, we see what would happen-- the beam would start from a sequentially higher and higher point, and that rising effect would accelerate. So given the finite speed of light, the shape of the beam would appear to curve downward, and the beam would not strike the point on the wall of the box directly opposite the laser. Therefore, this must also be what is perceived from inside the box-- the beam does not strike the point directly across from the laser (as that point is getting higher than the point across from it where the light was emitted), and its path appears to curve downward. Ergo, light "falls."
Indeed, this is the crucial simplification of the Equivalence Principle-- you never need to know what the substance is, all substances "fall the same" because nothing is happening to the substance, it is just the consequences of being "left behind" by whatever actually does have forces on it and is actually accelerating.
Incidentally, it is interesting to note that even in Newtonian gravity, massless objects would "fall the same" as those with mass, but to see it requires taking a limit. Simply drop a ball in a vacuum, then a lower mass ball, then a lower still mass. All objects fall the same under Newtonian gravity. So simply proceed to the limit of zero mass, you will not see any difference along the path of that limit. Nevertheless, Newtonian gravity doesn't get the answer quite right for the trajectory of light in gravity, because Newtonian physics doesn't treat the speed of light correctly.
There are a couple of ways one could approach your question:
Black holes are regions of space that have been deformed by a sufficiently concentrated mass. Light waves/particles always travel in a straight line at a constant velocity (). Although a photon approaching a black hole will continue traveling in a straight line through space, space itself has curved so the photon's path will curve.
While photons don't speed up in the presence of a gravity well, they are affected by it in other ways. In specific, photons entering a gravity well are blue-shifted while photons leaving one are red-shifted. This red/blue-shifting happens because time passes slower within a gravity well than without. In all frames of reference, though, the speed of light remains constant. There's more info on this on the wiki.
Note: The question originally referred specifically to black holes. The above hold for any concentration of matter (of which black holes are an extreme example).