Quadratic least squares equation

Click For Summary

Homework Help Overview

The discussion revolves around finding a quadratic least squares approximating function for the given function f(x) = –3√x over the interval 1 ≤ x ≤ 4. Participants are exploring the concept of least squares fitting and the appropriate form of the approximating function g(x).

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the form of the approximating function g(x), with one suggesting a polynomial form g(x) = a0 + a1x + a2x^2. There are inquiries about the definition of 'least squares fit' and how to set up the integral for minimization. Some participants express uncertainty about the process of minimizing the coefficients a0, a1, and a2.

Discussion Status

The discussion is active, with participants offering guidance on setting up the integral and minimizing the function. However, there is a lack of consensus on the specific steps to take, particularly regarding the use of partial derivatives to find the minimum values of the coefficients.

Contextual Notes

Some participants mention missing class instruction on relevant methods, which impacts their understanding of the minimization process. There is an emphasis on the need for clarity in the definition and application of least squares fitting.

tza5021
Messages
5
Reaction score
0
f(x) = –3√x, 1 ≤ x ≤ 4
(a) Find the quadratic least squares approximating function g for the function f.

g(x)=?
 
Physics news on Phys.org
The best fit function is clearly g(x)=-3/sqrt(x). But I'm guessing you trying to fit a function that's doesn't have that form. What kind of function are you trying to fit and what's the definition of 'least squares fit'?
 
Using g(x)= a0+a1x+a2x^2 when 1<x<4
using intergral(f(x)-g(x)dx)
 
If you could help that would be very much appreciated as I do not knw how to punch and chug that in an intergral.
 
tza5021 said:
If you could help that would be very much appreciated as I do not knw how to punch and chug that in an intergral.

I think you want to minimize the integral of (f(x)-g(x))^2 don't you? Put in your f(x) and your g(x). It's not a hard integral. Just square it out. It's just powers of x. Then try to minimize with respect to a0, a1 and a2.
 
How do I minimize the a0,a1 and a2 I do not get that part
 
tza5021 said:
How do I minimize the a0,a1 and a2 I do not get that part

Use partial derivatives with respect to a0, a1 and a2. What should they be at a minimum? Didn't they teach you that part?
 
Last edited:
Yes, but I missed the class. So could you tell me how to do that
 
tza5021 said:
Yes, but I missed the class. So could you tell me how to do that

What should the partial derivatives be at a minimum? Missing the class means i) you could try to find the method yourself by looking it up or reading a book or even better, ii) thinking about it yourself.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
12
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 12 ·
Replies
12
Views
4K
Replies
6
Views
1K