Linear dependence of functions

Click For Summary

Homework Help Overview

The discussion revolves around the linear dependence of two functions, f(x) = cos(x) and g(x) = xcos(x), which are defined from R to R. Participants are exploring the conditions under which these functions can be considered linearly dependent or independent.

Discussion Character

  • Exploratory, Assumption checking, Conceptual clarification

Approaches and Questions Raised

  • Participants discuss the need to find scalars c1 and c2 such that c1cos(x) + c2xcos(x) = 0 for all x. There are attempts to substitute specific values for x to derive conditions on the scalars, as well as questions about the implications of these substitutions.

Discussion Status

The discussion is ongoing, with participants providing various approaches to the problem. Some suggest using derivatives to derive additional equations, while others question the validity of specific substitutions made in earlier posts. There is no explicit consensus on the methods being employed, but guidance has been offered regarding the nature of trivial and non-trivial solutions.

Contextual Notes

Participants are working under the assumption that the trivial solution (where both scalars are zero) must hold for all x, and they are examining specific cases to test this assumption. There is also mention of the challenge in understanding the definition of linear independence and dependence in the context of functions.

Dank2
Messages
213
Reaction score
4

Homework Statement


check for linear dependecy[/B]
f(x) = cosx and g(x) = xcosx
2 functions from R to R

Homework Equations

The Attempt at a Solution


Why this is wrong:
if i take the scalar a1 = 3, a2 = 1
i can do that since 3 is real, and a1 is in R.
so 3f(3) + -1g(3) = 0
there for we have none trivial comb for the zero vector.
 
Physics news on Phys.org
Dank2 said:

Homework Statement


check for linear dependecy[/B]
f(x) = cosx and g(x) = xcosx
2 functions from R to R

Homework Equations

The Attempt at a Solution


Why this is wrong:
if i take the scalar a1 = 3, a2 = 1
i can do that since 3 is real, and a1 is in R.
so 3f(3) + -1g(3) = 0
there for we have none trivial comb for the zero vector.
No.
You need to find scalars ##c_1## and ##c_2## for which ##c_1\cos(x) + c_2x\cos(x) = 0## for all real numbers x.

Here you have one equation with two unknowns, ##c_1## and ##c_2##. The usual trick to get another equation is to take the derivative of the first equation
 
  • Like
Likes   Reactions: Dank2
Mark44 said:
No.
You need to find scalars ##c_1## and ##c_2## for which ##c_1\cos(x) + c_2x\cos(x) = 0## for all real numbers x.

Here you have one equation with two unknowns, ##c_1## and ##c_2##. The usual trick to get another equation is to take the derivative of the first equation
i can use here x =4
then a1 = 4 = 3 ===> a1 = 0
if a1 =0, then a2 =0 for the equation to hold.

is that ok
 
Dank2 said:
i can use here x =4
No. Did you understand what I wrote in my previous post?
You need to find scalars ##c_1## and ##c_2## for which ##c_1\cos(x) + c_2x\cos(x) = 0## for all real numbers x.
Dank2 said:
then a1 = 4 = 3 ===> a1 = 0
if a1 =0, then a2 =0 for the equation to hold.

is that ok
No it's not. You wrote "a1 = 4 = 3" - what is this?
Clearly a1 = 0 and a2 = 0 is a solution whether the functions are linearly dependent or linearly independent. The deciding factor is whether there is a non-trivial solutions for these constants, independent of the value of x. In other words, don't choose a value for x.

I also gave a suggestion in my previous post.
 
  • Like
Likes   Reactions: Dank2
If the trivial equation needs to be hold for all X, then for both X =0 it should hold and X = Pi.

For X= 0 we get:

a1f(X) + a2f(X) = 0
==> 0 + a2 = 0 ==> a2 = 0
Now for X=Pi we get:
-Pi*a1 + a2 = 0 , but a2 =0. So the fore a1 = 0 .

We need to find single pair that holds the trivial equation for all X, then I took two particular x's and got that both of a1 and a2 has to be zero. Is that right?
 
Last edited:
Dank2 said:
If the trivial equation needs to be hold for all X, then for both X =0 it should hold and X = Pi.

For X= 0 we get:

a1f(X) + a2f(X) = 0
This will work, but you have two functions, not one.
The equation is ##a_1\cos(x) + a_2x\cos(x) = 0##
Here f(x) = cos(x) and g(x) = xcos(x).
If x = 0, what does the equation above simplify to?
Dank2 said:
==> 0 + a2 = 0 ==> a2 = 0
Now for X=Pi we get:
-Pi*a1 + a2 = 0 , but a2 =0. So the fore a1 = 0 .
Substitute x = ##\pi## into the equation ##a_1\cos(x) + a_2x\cos(x) = 0##
Dank2 said:
We need to find single pair that holds the trivial equation for all X, then I took two particular x's and got that both of a1 and a2 has to be zero. Is that right?
It's not the equation that is trivial -- the trivial solution is ##a_1 = 0, a_2 = 0##. If the equation has only the trivial solution, the functions are linearly independent. If the equation has solutions in addition to the trivial solution, the functions are linearly dependent.
 
  • Like
Likes   Reactions: Dank2
Dank2 said:
a1f(X) + a2f(X) = 0
Mark44 said:
This will work, but you have two functions, not one.
yeah, i meant a2g(x).
so it will simplify as above. besides that solution, what other ways i can show their linear independency?
i mean without using values for x.
 
Dank2 said:
yeah, i meant a2g(x).
so it will simplify as above. besides that solution, what other ways i can show their linear independency?
i mean without using values for x.
There is basically just one way to show linear independence (not independency), and that is to show that the equation ##c_1f_1(x) + c_2f_2(x) + \dots c_nf_n(x) = 0## has exactly one solution for the constants ##c_1, c_2, \dots, c_n##; namely all of them being zero. This definition is very subtle for many beginning students in this area, because ##c_1 = c_2 = \dots = c_n = 0##; is always a solution, whether the functions are linearly independent or linearly dependent. The deciding factor is whether there are solutions other than the trivial solution (all constants equat to zero).

Almost exactly the same equation and idea applies to linearly independent/dependent vectors.

One shortcut you can take: if you have two functions or two vectors, the two are linearly independent if neither one is a constant multiple of the other. Once you have three or more functions/vectors, you can't tell as easily.

Going back to your original work, with ##a_1\cos(x) + a_2x\cos(x) = 0##, since this equation has to be true for all values of x, it has to be true for two values you choose, so you can substitute two different values of x into it to get two different equations. From these equations you can solve for the constants ##a_1## and ##a_2##.
 
  • Like
Likes   Reactions: Dank2

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 13 ·
Replies
13
Views
2K
Replies
1
Views
2K
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K