I was doing a problem where the goal was to find whether two functions: $$f(x) = \sin(2x) ,~~~~~ \text{and}~~~~~~ g(x) = \cos(2x)$$ are linearly independent or not using the wronskian.
The problem is simple enough, and after evaluating the wronskian I got a result of $~-2~$. Therefore, the implication is that the two functions are linearly independent for any value of $~x~$. And the way we've defined linear dependence is the following:
If we can find some $~c_1~$ and $~c_2~$ constants such that $$c_1~f(x) + c_2~g(x) = 0~,$$ where $~c_1~$ and $~c_2~$ can't both be zero, then $~f(x)~$ and $~g(x)~$ are linearly dependent.
However, with this definition, I can easily think of a counter example to the result of our wronskian: If I pick $~c_1 = 1~$ and $~c_2 = -1~$, then at $~x = \frac{\pi}{8}~$, we get that $~\frac{\sqrt 2}{2} - \frac{\sqrt 2}{2} = 0~$.
So clearly, $~f(x)~$ and $~g(x)~$ are linearly dependent at $~x = \frac{\pi}{8}~$ and, in fact, any $~x~$ such that $~x = \frac{\pi}{8} +2 ~\pi~n~$
This contradicts the result of our wronskian, which implies that $~f(x)~$ and $~g(x)~$ are linearly independent for any $~x~$.
Did I miss something?
Maybe I'm interpreting some definition the wrong way.
In order for $f(x)$ and $g(x)$ to be linearly dependent functions, there have to be constants $a$ and $b$ such that $$ af(x)+bg(x)=0 $$ for all $x$. You have found constants that work for one specific value of $x$, but they won't work for other values.
Notice that I haven't said anything about the Wronskian yet. There are two relevant facts about the Wronskian:
What this means is, if you're given any $n$ functions, there are four possible options:
The functions $\sin 2x$ and $\cos 2x$ are examples of option 1; whatever functions you computed to have Wronskian $4x^2$ would be examples of option 2 (that is, any ODE which has them as solutions must be singular at $0$).