# Reduce returns false on equation solvable by LInearSolve [closed]

I was looking for general solutions of an equation I already solved for specific values with LinearSolve, but using Reduce returned False.

Here's the code:

B = {{c, 1}, {c, d}, {1, c}};
v = {1, 1, 2};
Reduce[B.x == v, {c, d}, Reals]


This returned False

The case I solved was:

d = 1;
c = 2;
LinearSolve[B, v]


This returned {0, 1}

What am I doing wrong? Thanks for your help :)

• Try Reduce[B.{x, y} == v, {x, y}, Reals]. – Henrik Schumacher Mar 13 '19 at 13:27
• Technically, you should be doing LeastSquares[{{c, 1}, {c, d}, {1, c}}, {1, 1, 2}]. – J. M.'s technical difficulties Mar 13 '19 at 13:29
• To make that explicit, you can't use a symbolic vector in Reduce (x in your example). Write the components. – Szabolcs Mar 13 '19 at 13:30
• Writing x as a vector {x,y} did the trick, thank you all! – Lorad Mar 13 '19 at 13:42
• @Lorad, would you write that up as an answer to your question? Self-answers are encouraged here, and it would help to have this question show up as answered if anybody else in the future might run across it. – MarcoB Mar 13 '19 at 17:45

Reduce[B.{x, y} == v, {c, d}, Reals]