Finding value of constants of quadric equation by experiment

Click For Summary
SUMMARY

The discussion focuses on determining the constants (a, b, c) of the quadratic equation y = ax^2 + bx + c through experimental data. Participants suggest using a least squares fitting method to achieve more accurate results than simply solving three pairs of (x, y) values. The least squares solution is derived from the matrix equation AX=Y, where X is the vector of constants and A is the matrix containing the values of 1, x, and x². This method ensures that the solution is optimal even when more than three data points are available.

PREREQUISITES
  • Understanding of quadratic equations and their standard form
  • Familiarity with linear algebra concepts, particularly matrix operations
  • Knowledge of least squares fitting techniques
  • Experience with plotting graphs and interpreting experimental data
NEXT STEPS
  • Research the least squares fitting method in detail
  • Learn how to implement matrix operations using Python libraries such as NumPy
  • Explore the concept of overfitting and how it relates to data analysis
  • Study the derivation and application of the normal equation in regression analysis
USEFUL FOR

Students and researchers in physics and engineering, data analysts, and anyone involved in experimental data analysis and regression modeling.

arpon
Messages
234
Reaction score
16

Homework Statement


Suppose, the following equation describes the relation between an independent and a dependent variable physical quantities(that will be measured by experiments; for example, temperature, current, voltage etc) x & y :
##y = ax^2 + bx + c##
We have to find the values of the constants (a, b, c).

Homework Equations

The Attempt at a Solution


I have done this experiments for linear relations ,i.e. y = mx + c, where the y-intercept is c and the slope is m. I have also performed experiments for equations like ##y = ax^2## . In this case, I plotted a graph ##y## vs ##x^2##, and the slope of the straight line is ##a##.
In this case, I can easily find the values of a, b, c by taking three pairs of (x, y) value and then solving the three equations, but it gives me less accurate answer.
What is the best way to find the values of the constants in this experiment?
 
Physics news on Phys.org
Since you are given x and y values, the fact that it is a quadratic is unimportant. Rather, you have a system of linear equations in three unknowns.
Assuming you have more than three pairs of x,y values, it is overspecified. There is a standard equation for getting the least squares fit.
If you write the system in matrix form AX=Y, (X being the vector a, b, c, and A being the matrix of 1, x, x2 values) ATA ought to be invertible. The least squares solution is X=(ATA)-1ATY.
 
  • Like
Likes   Reactions: arpon

Similar threads

  • · Replies 15 ·
Replies
15
Views
5K
Replies
25
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
Replies
13
Views
2K
Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 40 ·
2
Replies
40
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K