Finding the equation to a non-linear set of points

AI Thread Summary
To find the equation for the given non-linear set of points, a linear regression analysis may not suffice since the points do not fit a linear model. Instead, a piecewise linear function could be used, potentially requiring three segments to connect the points accurately. Alternatively, a unique cubic polynomial can be derived, as there exists a polynomial of degree n-1 or less that passes through n points. The polynomial can be expressed in the form y = ax^3 + bx + c + d, and by substituting the provided x and y values, a system of four linear equations can be created to solve for the coefficients a, b, c, and d. This approach will yield the desired equation that fits the set of points.
Joshk80k
Messages
17
Reaction score
0

Homework Statement



Determine the equation of the following points:

(12. 270)
(14, 300)
(16, 330)
(18. 380)

Homework Equations



The Attempt at a Solution



I realized right away that this is not a linear set of points, so it wouldn't work out to just find the slope between two points and to find the intercept. I know the answer won't be in the format y = mx+b, but I'm not really sure how to solve this.

I guess what's bothering me is the fact that the equation jumps 20 after a seemingly normal pattern. Any tips as to what direction I should take this problem next?
 
Physics news on Phys.org
Do you know how to do linear regression analysis? Because that sounds like what you want to do.
 
No, I don't know how to do that - I'll look it up though, thanks =)
 
This is either a linear fit or a piecewise function of two lines.
 
A "linear regression" line or "least squares line" is a line that does NOT go through all the points but comes "closest" in the sense of the average distance from each point to the line being smallest.

You could, as zachach suggests, use a piecewise linear function- although you might need 3, not two pieces- a line from (12. 270) to (14, 300), a line from (14, 300) to (16, 330), and a line from (16, 330) to (18. 380).

It is also true that there exists a unique n-1 or less degree polynomial through any given n points. Here you have four points so there exist a unique cubic (or less) polynomial whose graph passes through those four points.

Write the polynomial as [math]y= ax^3+ bx+ c+ d[/math] and put in the given x and y values to get four linear equations to solve for a, b, c, and d.
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Back
Top