Finding value of constants of quadric equation by experiment

Click For Summary
To determine the constants a, b, and c in the quadratic equation y = ax^2 + bx + c, one effective method involves using multiple pairs of (x, y) values to create a system of linear equations. While plotting y against x^2 can yield the value of a, it may not provide accurate results for b and c. A more precise approach is to apply the least squares fitting method, which minimizes the error across all data points. This involves expressing the problem in matrix form as AX=Y, where X contains the constants and A is a matrix of the x values. Utilizing the least squares solution X=(ATA)−1ATY allows for a more accurate determination of the constants.
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 arpon
The book claims the answer is that all the magnitudes are the same because "the gravitational force on the penguin is the same". I'm having trouble understanding this. I thought the buoyant force was equal to the weight of the fluid displaced. Weight depends on mass which depends on density. Therefore, due to the differing densities the buoyant force will be different in each case? Is this incorrect?

Similar threads

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