Linear combination of functions -- meaning?

In summary, a linear combination is an expression constructed from a set of terms by multiplying each term by a constant and adding the results, and the absence of any operation other than addition and scalar multiplication makes it linear. The use of the term "linear" in this context refers to the fact that the expression is linear in the parameters, meaning that none of the terms appear with an exponent greater than 1. This is why linear least squares is used when fitting this type of expression, as it allows for the use of linear algebra methods to solve for the optimal parameters. However, the model can still be considered linear even if it is not linear in all of the variables, as long as it is linear in the parameters being optimized.
  • #1
Vol
16
3
h(x) = cf(x) + kg(x) is the linear combination of functions. What makes it linear?
 
Mathematics news on Phys.org
  • #3
Vol said:
h(x) = cf(x) + kg(x) is the linear combination of functions. What makes it linear?
The absence of any operation other than addition and scalar multiplication.
 
  • #4
Vol said:
h(x) = cf(x) + kg(x) is the linear combination of functions. What makes it linear?
Do you mean to ask whether the expression cf(x)+kg(x) is linear or whether h(x) is linear ( It is not necessarily linear)?
 
  • #5
WWGD said:
Do you mean to ask whether the expression cf(x)+kg(x) is linear or whether h(x) is linear ( It is not necessarily linear)?
Here's what the OP wrote:
Vol said:
h(x) = cf(x) + kg(x) is the linear combination of functions.
I believe he was asking about the meaning of the expression "linear combination," and not whether either of the constituent functions was linear.
 
  • #6
One answer is that it fits the definition of "linear combination", which @DrClaude gave you at #2. But are you asking why the terminology is used, why it is called a linear combination?

I don't know the history of the term. I do know the expression is linear in the parameters ##c## and ##k##, neither appears with an exponent greater than 1. Because of that if you are doing curve fitting to this form, trying to find the optimal values of ##c## and ##k## for a given fixed ##f(x)## and ##g(x)##, then you use linear least squares. Exactly the same procedure as fitting a straight line.
 
  • #7
RPinPA said:
I don't know the history of the term. I do know the expression is linear in the parameters ##c## and ##k##, neither appears with an exponent greater than 1. Because of that if you are doing curve fitting to this form, trying to find the optimal values of ##c## and ##k## for a given fixed ##f(x)## and ##g(x)##, then you use linear least squares. Exactly the same procedure as fitting a straight line.
What you wrote is incorrect. It is the fact that ##f(x)## and ##g(x)## appear with to the power of 1 that makes it a linear combination. What you wrote about ##c## and ##k## doesn't make sense:
$$
h(x) = cf(x) + w^2 g(x)
$$
is as much a linear combination as
$$
h(x) = cf(x) + k g(x)
$$
(Hint: set ##k \equiv w^2##.)
 
  • Like
Likes Ibix
  • #8
DrClaude said:
What you wrote about ##c## and ##k## doesn't make sense:

Nevertheless, that's the definition of linear least squares. For instance, linear least squares includes the problem of fitting of polynomials ##f(x) = \sum_{k=0}^n a_k x^k##. The model is linear in the parameters The least squares criterion leads to a set of linear equations in the ##a_k##.

I do know the expression is linear in the parameters ##c## and ##k##

As it is. That's a correct statement.

DrClaude said:
##h(x)=cf(x)+w^2g(x)##

That doesn't negate my comments about linear least squares. If you were trying to find the optimum parameters, then using this model would not allow you to use linear least squares. The model is not linear in these chosen parameters. The equations for an optimal value of ##c## and ##w## would not be linear in those parameters and could not be solved with linear algebra methods. But as you note, you can change it to a linear model.

An example of a nonlinear model would be ##f(x) = a e^{bx} + c##. That is nonlinear in ##x##, but what makes it nonlinear least squares is the fact that it's nonlinear in ##b##. The model ##f(x) = a e^{3x} + c## would allow use of linear least squares methods.

My comments are correct. Including the comment that I didn't know the history of the term including why it was applied here. That's a correct statement. I accept that my comments, while correct as to linear least squares, are not relevant to OP's question. But they are correct :-)
 
  • #9
RPinPA said:
do know the expression is linear in the parameters ccc and kkk, neither appears with an exponent greater than 1.
This is the answer to a question which wasn't posed. Furthermore it is definitely wrong. As you can see, the LHS of ##h(x) = cf(x) + kg(x)## depends on ##x## and does not depend on neither ##c## nor ##k## of the RHS. This makes ##c,k## scalars. To implicitly assume such a dependency, despite it is explicitly ruled out, is a misinformation here and yes, wrong.

The question is not: what is a linear dependency, the question is, what is a linear combination. For the latter it is completely irrelevant what you wrote, i.e. which powers the scalars are written in! ##h(x) = cf(x) + k^2g(x)## is as a linear combination as ##h(x) = cf(x) + kg(x)## is!
 
  • Like
Likes Ibix, berkeman and DrClaude
  • #10
Thread closed, as the question has been asked and answered. @Vol, if you are still not certain, please send me a PM and I will reopen this thread.
 

1. What is a linear combination of functions?

A linear combination of functions is a mathematical operation that involves multiplying each function by a constant and then adding them together. It is a way to create a new function by combining two or more existing functions.

2. What is the purpose of using linear combinations of functions?

The purpose of using linear combinations of functions is to create a new function that can better model a given data set or problem. By combining different functions, we can create a more complex and accurate function that can better represent the relationship between variables.

3. How is a linear combination of functions different from a single function?

A linear combination of functions is different from a single function in that it is a sum of multiple functions, while a single function is just one function. Linear combinations allow us to create more complex functions that can better fit our data or solve more complex problems.

4. Can linear combinations of functions be used in all areas of science?

Yes, linear combinations of functions can be used in all areas of science. They are commonly used in physics, engineering, economics, and other fields to model real-world phenomena and solve complex problems.

5. How do you determine the coefficients for a linear combination of functions?

The coefficients for a linear combination of functions can be determined through various methods, such as trial and error, using mathematical techniques like least squares regression, or by solving a system of equations. The best method to use depends on the specific problem and data set.

Similar threads

  • General Math
Replies
0
Views
703
  • General Math
Replies
2
Views
727
  • General Math
Replies
1
Views
888
Replies
1
Views
957
  • Calculus and Beyond Homework Help
Replies
1
Views
296
Replies
8
Views
2K
Replies
3
Views
258
Replies
18
Views
2K
  • General Math
Replies
12
Views
1K
Replies
3
Views
423
Back
Top