+ Reply to Thread
Results 1 to 2 of 2

Drawing tangent line on a curve

  1. #1
    Registered User
    Join Date
    07-02-2013
    Location
    Lahore
    MS-Off Ver
    Excel 2007
    Posts
    26

    Drawing tangent line on a curve

    Hi All !

    Can we draw tangent to a curve in excel graphs ....?
    If yes if i could have some demo....** this...
    I am working on finding rate ** change at an instantaneous point and average rate ** change ie: secant line

    Thanks in advance...

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,382

    Re: Drawing tangent line on a curve

    Short but useless answer, Yes, we can draw tangent and secants for a given curve in Excel. However, Excel is not going to do it for us.

    The details ** how to do it will depend on how the curve is defined. If I assume we are working from an equation (a polynomial y=a+bx+cx^2+dx^3+.... for example), then the general approach will look something like:

    1) Select the point x0 where want to find the tangent line. Calculate y0=f(x0) at this point
    2) From your calculus studies, take the derivative dy/dx ** the function, then use that to calculate the slope m ** the tangent line.
    3) From x0,y0 and m, you should be able to calculate x,y values along the tangent line in a new column in Excel. Add this column/data series to the chart.

    Plotting a secant line will be similar.

    1) Select the two x values (x1 and x2) for the secant line. Calculate the corresponding y values (y1=f(x1), y2=f(x2)).
    2) If you store these two points in a convenient place in the spreadsheet, you can then use the TREND() function to calculate other y values along the secant line in a new column.
    3) Add this column to the chart.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Creating an automatic tangent line from origin to a curve
    By Tintin63 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-06-2012, 10:01 AM
  2. Tangent line to two circles with VBA
    By excelvraag in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-05-2012, 01:38 PM
  3. tangent line
    By elams in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-16-2006, 03:00 AM
  4. Tangent Line Help
    By elektrikq in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-27-2005, 06:50 PM
  5. Tangent line
    By Shadow D in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-08-2005, 05:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1