is it possible to find a vector as a linear combination of given vectors in algorithmic guess-free way? [closed]
In the university assignment we were given 3 vectors which can form linear combination which is expressed in another vector. They told that there some guessing involved but it gets easier with practice, but for the last 13 and a half hour i can't figure anything matching those vectors left and right. I don't want to go against university rules, but it looks very absurd because no way in hell this is guesswork.
I try to systematically get 1 in every axis to get the required variable, and then calculate another vector which has 0 in that axis and 1 in the following one, but there are no such possibilities as far as i see.
I know that if i post the assignment here people will solve it in no time, but that's not really the problem. If that's really the case of guesswork i should reconsider my choice of study as i clearly don't have the intuition for it.
P.S. googling for a solution algorithm doesn't help - or i wasn't lucky at finding anything.
Write your problem as a system of linear equations, put it in matrix form and then solve it. You can always bring it into echeleon form or prove that it does not have a solution without any guesswork; there are numerous tutorials online that explain how to do this step by step.
Or, since I assume that you are dealing with vectors in $\mathbb R^n$ and have a scalar product, you can always express any vector $\vec v$ in terms of any (Edit: orthogonal) basis $\{\vec x_1,\vec x_2,\vec x_3\}$ by projecting onto each individual basis element:
\begin{equation} \vec v = \frac{\vec v \cdot \vec x_1}{\|\vec x_1\|}\vec x_1 + \frac{\vec v \cdot \vec x_2}{\|\vec x_2\|}\vec x_2 + \frac{\vec v \cdot \vec x_3}{\|\vec x_3\|}\vec x_3. \end{equation}
Mathematical intuition is not about random guesswork. You will make your life a lot easier by assuming that every problem in your university classes has some smart way of solving it and by trying to find the trick. No solution just falls from the sky.