How Do I Derive Equation From a Graph?

  • Thread starter Thread starter Gordon Arnaut
  • Start date Start date
  • Tags Tags
    Derive Graph
Click For Summary
SUMMARY

This discussion focuses on deriving equations from a set of graph coordinates, specifically the points (28,7), (30,8), (32,9), (33,10), (34,11), and (35,12). Participants suggest using the general form of a linear equation, y=mx+b, and discuss the possibility of fitting a degree 5 polynomial to the six points for an exact fit. The conversation also highlights the complexity of finding an approximating function using least squares and emphasizes the importance of trial and error in determining the best mathematical model for the data.

PREREQUISITES
  • Understanding of linear equations and the slope-intercept form (y=mx+b).
  • Familiarity with polynomial functions and their degrees.
  • Basic knowledge of least squares approximation techniques.
  • Experience with graphing tools such as graphing calculators or Excel.
NEXT STEPS
  • Learn how to derive the slope (m) and y-intercept (b) from two points on a line.
  • Study polynomial regression techniques for fitting curves to data points.
  • Explore function transformations to model complex curves accurately.
  • Investigate the use of graphing calculators and Excel for generating best fit lines.
USEFUL FOR

Students in precalculus, mathematicians, data analysts, and anyone involved in curve fitting or mathematical modeling of data points.

Gordon Arnaut
Messages
16
Reaction score
0
How can I derive the equation from a Graph?

The x coordinates are: 28,30,32,33,34,35

The Y coordinates are: 7,8,9,10,11,12


We could express this as a relation, r:

r{(7,28), (8,30), (9,32), (10,33), (11,34) (12,35)}


Regards,

Gordon,
 
Physics news on Phys.org
Are you familiar with the general form of a linear equation, y=mx+b? What are m and b?

Graph your points by hand, and you should be able to figure out m and b. Then, you should look in your book to see how you figure out m and b when you are given just two x,y points for a line in the general case...
 
BTW, I moved this thread to Homework Help, Precalculus Math. Please be sure to post all homework and coursework problems in the Homework Help forums, and not in the general forums.
 
Berkeman,

The relation describes a curve, not a line.

See the attached graph.


Regards,

Gordon
 

Attachments

  • graph.JPG
    graph.JPG
    10 KB · Views: 1,153
Ah, I'd just glanced at the first few data points, and it looked like the delta y was 1 for each 2 delta x. But now I see that it's actually two straight lines that join in the middle...

So you should be able to write the equation as piecewise continuous straight lines over two x intervals...
 
Okay thanks, Berkeman.

Actually there are more data points, so it becomes more like a curve than two straight lines.

I'm going to try function transformations to see if I can come up with a formula that comes close to matching the curve.

Regards,

Gordon.
 
The most straightforward approach is to fit an (n-1) degree polynomial to the n points, in this case a degree 5 since you have 6 points. It means solving a 6 x 6 set of simultaneous linear equations to get the coefficients of the polynomial. The fit will be exact, but the function may be wiggly - may or may not be what you want.

If you are looking for an approximating function that is fit to the points in a least squares sense, that's more complicated. There is no way I know of to determine the best form of the equation to model the points (exhaustive trial and error will get you close). If the points came from experimental data, you might glean a hint from knowledge of the mathematical/physical nature of the experiment. Short of that, you can look at the points and make intelligent guesses as to functions to try (e.g. low order polynomials, exponential, etc.). It means trial and error, but that's a perfectly valid technique.
.
 
Last edited:
There exists an infinite number of graphs that will pass through any given finite set of points. What other conditions do you have? Are you looking for the polynomial of lowest degree that gives a graph through those points?
 
You can get a best fit line from a graphing calculator or Excel, seeing as you already have the data in there
 

Similar threads

Replies
10
Views
2K
Replies
12
Views
8K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 49 ·
2
Replies
49
Views
4K