Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

tangent to a curve

Status
Not open for further replies.

robyengIT

Mechanical
Dec 20, 2013
894
0
0
IT
Excel spreadsheet : while designing a curve on a diagram (X & Y data known) how can I draw the tangent in a specific point ?
 
Replies continue below

Recommended for you

maybe something like:

Page1_joztkt.png


Dik
 
IRS

Works for a circle, or pretends it's a circle at the point of tangency (as any other tangent would). The two points are as follows, one defines the centre of the circle and the other defines the point of tangency. A line through them determines the radius of the circle and also the slope of the line. The inverse gives you a slope that matches the tangent.

The equation of the line is created by using a known point (ie, the tangent) and the slope of the tangent. From way back, y = mx + b, for a slope intercept definition of a line. By using the point data for the point of tangency, the function yields a 0 for the solution.

If it's just an arbitrary curve (not a circle) you have to determine the 'centre' for this and this would be the inverse to the derivative at the point. The centre of this 'circle' would fall anywhere on that line, but the point of tangency would remain.

Dik
 
If you know the centre point for each point on any curve it's pretty easy to find the slope of the radius, and hence the slope of the tangent, but I assume the question relates to data where we just have the x,y values at points along some curve, and no other information.

There are of course infinitely many different curves that may be drawn through any finite number of points, but a reasonable approach is often to generate a cubic spline, which is a series of cubic curves where the slope and the curvature are continuous at each point.

See for an Excel spreadsheet that will generate a cubic spline through any xy data (listed with increasing x), and will return the y, slope and curvature for any x value.

Also search the blog for "cspline" for further articles with different types of cubic spline.

The latest version of the spreadsheet may be downloaded from:



Doug Jenkins
Interactive Design Services
 
IDS:

For a circle, you only need to know the centre point of the circle and the tangent point... no other points are necessary.

Dik
 
Status
Not open for further replies.
Back
Top