Hi all,
I am stuck with the following question. This is a question posted to me by my physicist friend
Attached is the figure of a ellipse with a formula of . In other word, it has a horizontal radius of 1.5 units and vertical radius of 1 unit.
Now, suppose I launch a light from the coordinates (-1.5,0.0) at an angle alpha in such a way that the light will experience reflection on the surface. How am I going to find all the coordinates when the light hit the surface.
My approach is to find the derivative. Hence I got . Then I extend the line until it hit the surface and I check the coordinates. Draw the tangent line and reflect it with protractor manually.
The process is rather tedious since extending the line is not really a rigorous proven way. I hope to hear whether is there any alternative better way of finding the coordinates
Thanks and hope for your help
If I'm reading correctly, then this problem is usually stated as: There is a very small slit at (the given point) such that a beam of light can enter, etc.
It seems almost exactly like Problem 144 on Project Euler. I don't want to give away answers, but I see nothing wrong with your approach. But rather than using a protractor, why not just calculate the numbers? My solution to problem 144 was a bit messy but only took about 30 lines of Java code. If you can solve problem 144, you will get access to the solution forum with some nice explanations.
And in case you're stuck on one of the more basic issues (it was hard to tell from your post) -- you have an equation of a line, and an equation of an ellipse. To find points of intersection, solve the system of equations.
Hi thanks for the reply.
I aware that by finding the equations of both figures will allow me to obtain the coordinates as required
Actually I am having difficulty in finding the equations of all my incident rays.
Take the first ray for example, will I be able to obtain the equation of the incident ray given only one coordinate (0,-1.5) of the line and the angle ?
Ok this is what I manage to obtain for my 1st ray traveling at
I let = my slope for the ray
Then ,
,
C
Equating and I get (-1.12,0.660)?
Nonetheless, the subsequent stages will be hard. Unlike the case for my 1st ray, I can't seem to find the the incident angle to calculate for the slope of my second ray. Please see picture to know what I mean. Is there a guided algorithm to find out these angles?
It's easier to use point-slope equation than slope-intercept. Also I don't see why you didn't replace with .
The point of intersection I get, to two decimal places, is (-1.11, 0.67). But depending on your purposes you might want more than two decimal places of precision.
To find the angle of the reflected ray, you can use the derivative like you mentioned in the first post. By the way, the derivative you wrote in the first post isn't correct. Differentiate implicitly and you should get .
Ah, you're right, dumb mistake on my part. I neglected to apply the chain rule on .
As for finding the angle you're after, consider the normal to the curve (look up definition of normal if you're unsure), and use trigonometry or linear algebra.
I really don't like giving away answers to Project Euler problems. The philosophy over there is, if you can't solve it, you can't solve it. There is a competitive or pseudo-competitive aspect to the site, and it just wouldn't be the same if the answers were simply given. To me, not knowing is part of the fun of it, and the challenge of it. So it's mixed luck that your physicist friend posed a question extremely similar to a problem over there. I will not answer any more of your questions. Maybe someone else will.
If you're really motivated to solve this without help, then in my opinion, you will solve it without help. You just may need patience to gain the skills necessary to do so. Work through easier Euler problems and read the solution forums, read/review math books, search Wikipedia and MathWorld and whatnot, solve other problems, etc.
Good luck.