Determine if the set of functions is linearly independent

Click For Summary
The discussion focuses on determining the linear independence of the functions S = x sin x and x cos x using the Wronskian. The calculated Wronskian is W = -x², which is non-zero for all x ≠ 0, indicating that the functions are linearly independent. However, there is a debate about instances where the Wronskian is zero but functions may still be independent, suggesting that the Wronskian is not a definitive test in all cases. A formal definition of linear independence is proposed as a more reliable method, emphasizing that the only solution to Ax sin x + Bx cos x = 0 must be A = B = 0 for all x. The conversation concludes that while the Wronskian provides useful information, it is essential to understand the underlying definitions and conditions for linear independence.
QuantumCurt
Education Advisor
Messages
726
Reaction score
166

Homework Statement



Determine if the given set of functions is linearly independent or linearly dependent.

Homework Equations



$$S=x~sin~x, ~ x~cos~x$$

The Attempt at a Solution



My first instinct was to use the Wronskian.

$$W[y_1(x), y_2(x)]=\begin{vmatrix}
x~sin~x & x~cos~x\\
x~cos~x+sin~x & cos~x-x~sin~x
\end{vmatrix}$$

Now I take the determinant and I get -

$$W=x~cos~x(cos~x-x~sin~x)-x~cos~x(x~cos~x+sin~x)$$
$$W=x~cos~x~sin~x-x^2~sin^2~x-x^2~cos^2~x-x~cos~x~sin~x$$
$$W=-x^2~sin^2~x-x^2~cos^2~x$$
$$W=-x^2(sin^2~x+cos^2~x)$$
$$W=-x^2$$

Now, since ##-x^2\neq0##, can I conclude that the functions are linearly independent?

I've done some examples in my textbook that involved determining linear independence on the interval of all real numbers, and there were some instances when the Wronskian didn't equal 0, but the answer key said that they were linearly dependent. I understood that the Wronksian was to determine linear independence or dependence. Am I correct, or do I misunderstand the Wronksian?
 
Last edited by a moderator:
Physics news on Phys.org
QuantumCurt said:

Homework Statement



Determine if the given set of functions is linearly independent or linearly dependent.

Homework Equations



$$S=x~sin~x, ~ x~cos~x$$

The Attempt at a Solution



My first instinct was to use the Wronskian.

$$W[y_1(x), y_2(x)]=\begin{vmatrix}
x~sin~x & x~cos~x\\
x~cos~x+sin~x & cos~x-x~sin~x
\end{vmatrix}$$

Now I take the determinant and I get -

$$W=x~cos~x(cos~x-x~sin~x)-x~cos~x(x~cos~x+sin~x)$$
$$W=x~cos~x~sin~x-x^2~sin^2~x-x^2~cos^2~x-x~cos~x~sin~x$$
$$W=-x^2~sin^2~x-x^2~cos^2~x$$
$$W=-x^2(sin^2~x+cos^2~x)$$
$$W=-x^2$$

Now, since ##-x^2\neq0##, can I conclude that the functions are linearly independent?
Yes, since the Wronskian isn't identically zero, the two functions are linearly independent.
QuantumCurt said:
I've done some examples in my textbook that involved determining linear independence on the interval of all real numbers, and there were some instances when the Wronskian didn't equal 0, but the answer key said that they were linearly dependent. I understood that the Wronksian was to determine linear independence or dependence. Am I correct, or do I misunderstand the Wronksian?
 
  • Like
Likes QuantumCurt
QuantumCurt said:

Homework Statement



Determine if the given set of functions is linearly independent or linearly dependent.

Homework Equations



$$S=x~sin~x, ~ x~cos~x$$

The Attempt at a Solution



My first instinct was to use the Wronskian.

$$W[y_1(x), y_2(x)]=\begin{vmatrix}
x~sin~x & x~cos~x\\
x~cos~x+sin~x & cos~x-x~sin~x
\end{vmatrix}$$


Now I take the determinant and I get -

$$W=x~cos~x(cos~x-x~sin~x)-x~cos~x(x~cos~x+sin~x)$$
$$W=x~cos~x~sin~x-x^2~sin^2~x-x^2~cos^2~x-x~cos~x~sin~x$$
$$W=-x^2~sin^2~x-x^2~cos^2~x$$
$$W=-x^2(sin^2~x+cos^2~x)$$
$$W=-x^2$$


Now, since ##-x^2\neq0##, can I conclude that the functions are linearly independent?

I've done some examples in my textbook that involved determining linear independence on the interval of all real numbers, and there were some instances when the Wronskian didn't equal 0, but the answer key said that they were linearly dependent. I understood that the Wronksian was to determine linear independence or dependence. Am I correct, or do I misunderstand the Wronksian?

If the Wronskian is nonzero at any point on an interval, then the functions are linearly independent on that interval. The reverse isn't quite true. There are cases where the Wronskian is zero but the functions are still linearly independent. See http://en.wikipedia.org/wiki/Wronskian
 
  • Like
Likes QuantumCurt
It seems to me simpler to just use the definition of "independent". The two given functions are independent if and only if the only way we can have Ax sin(x)+ Bx cos(x)= 0, for all x is if A= B= 0. If that is to be true for all x, in particular it is true for x= \pi/2 so that A(\pi/2) sin(\pi/2)+ B (\pi/2) cos(\pi/2)= A(\pi/2)= 0 so A= 0. But then we must have Bx cos(x)= 0 for all x. Choose any non-zero x such that cos(x) is not 0 to see that B= 0 also.
 
  • Like
Likes QuantumCurt
Is there a formal way of showing the work using that method, or is it more along the lines of analytical guesswork?

I guess what I'm really asking is if there's an algebraic way of proving that there are no non-trivial solutions.
 
QuantumCurt said:
Is there a formal way of showing the work using that method, or is it more along the lines of analytical guesswork?

I guess what I'm really asking is if there's an algebraic way of proving that there are no non-trivial solutions.
Using the definition of linear independence is a formal way. There was not any guesswork in what HallsOfIvy did.
 
Last edited:
Guesswork wasn't the best way of putting it. Clearly when pi/2 is substituted in, the B term will go to zero and the A term will just go to A*pi/2. This is a fairly simple example, but with more complex sets of functions it may not always be so clear. I posted a set of 5 functions the other day that had to be tested for linear independence. The solutions weren't so immediately clear.
 

Similar threads

Replies
2
Views
1K
Replies
1
Views
2K
Replies
7
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 28 ·
Replies
28
Views
5K
  • · Replies 5 ·
Replies
5
Views
1K
Replies
3
Views
2K
Replies
2
Views
1K