# NTNUJAVA Virtual Physics LaboratoryEnjoy the fun of physics with simulations! Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

## Information about this web site => Request for physics Simulations => Topic started by: tanghb on November 11, 2009, 08:08:16 pm

 Title: Tangent to a curve Post by: tanghb on November 11, 2009, 08:08:16 pm Although, strictly speaking, this is not about physics, it should be useful to physics teachers when they teach their students on how to obtain the shape of the acceleration-time graph from a velocity-time graph.I saw this self-running animation (http://www.math.umn.edu/~garrett/qy/TraceTangent.html (http://www.math.umn.edu/~garrett/qy/TraceTangent.html)) and was wondering if Prof Hwang could improve the applet and share with physics teachers.1st improvement: user can move the pointer along the given curve to see how the tangent changes and the value of the tangent's gradient is being displayed above the line as the point is being moved.2nd improvement: A second graph to be displayed vertically below the given graph to show the variation of the tangent's gradient (first derivative) accordingly.3rd improvement: the user can decide on the original graph (say, by inputting an equation, or by selecting from a few "standard" graphs)Thank you. Title: Re: Tangent to a curve Post by: Fu-Kwun Hwang on November 11, 2009, 09:46:59 pm I hope the following applet is what you need.Put one diagram on top of another does not look good, so I re-arrange it to left/right style.You can drag the point in the f(x) diagram to change x when the simulated is in paused state.You can drag the slider at right hand side to change y-scale.More suggestions are highly welcomed!  To make it better. :-) Title: Re: Tangent to a curve Post by: tanghb on November 12, 2009, 10:13:22 am Wow! Yes, that's what wished, and now I have got it. Thank you so much for helping!I wonder if it is possible for user to choose to show only the graph of first derivative or the second derivative, or both. If not, it would be good just to indicate in words somewhere that the white line is the the graph of first derivative, and the red is for the second derivative. As teachers, we could see easily that the colors of the lines are already an indication of this, but many students may not be able to see this.Once more suggestion: white line and gray background do not give sufficient contrast, especially when the applet is projected onto a screen in a classroom during the day. A black line should be better (then the color of the dot moving on the blue curve should be changed accordingly).Thanks again! Title: Re: Tangent to a curve Post by: Fu-Kwun Hwang on November 12, 2009, 12:56:02 pm As you wish: 1. User can select check boxes to choose to show only the graph of first derivative or the second derivative, or both.2. The color of white line has been changed to black line.I would like to ask student to answer which curve is the derivate of the f(x) and tell me why/how s/he find out.So I did not add those information in the diagram. Title: Re: Tangent to a curve Post by: tanghb on November 12, 2009, 05:56:48 pm That's great!But just one more lttile suggestion: when only the graph of the first derivative is displayed, could the red tangent line on it be removed? i.e. only the moving dot along the graph should be shown. Of course, when the graphs of both the first and second derivatives are displayed, we need to show the moving red tangent line.Thanks a lot again! Title: Re: Tangent to a curve Post by: Fu-Kwun Hwang on November 12, 2009, 07:30:14 pm If only right diagram is shown, the tangent line will be shown.However, if both diagram are shown and second derivate are not shown, the tangent line will not be shown. Title: Re: Tangent to a curve Post by: tanghb on November 12, 2009, 08:55:49 pm Thanks for making the final modification. This will be a very useful simulation.