Find the value of x such that the determinant of A is zero.

12 views (last 30 days)
I am have matrix A with x as the parameter: A=[2,8,5;2,2,8*x;6*x^2,4*x+2,x^3]; I want to find the value of x such that the determinant of A is zero.
%
format shortE
syms x
A=[2,8,5;2,2,8*x;6*x^2,4*x+2,x^3];
xc = det(A);
solve(xc == 0);
end
However, it is outputting the polynomial: 372*x^3 - 124*x^2 + 8*x + 20 . I am not sure what I am doing that is incorrect.

Answers (2)

Stephen23
Stephen23 on 31 Oct 2017
Edited: Stephen23 on 31 Oct 2017
There is no need to use symbolic operations, a simple numeric calculation can give you the answer:
>> fun = @(x)[2,8,5;2,2,8*x;6*x^2,4*x+2,x^3];
>> xval = fzero(@(x)det(fun(x)),0)
xval = -0.27922
>> fun(xval)
ans =
2.000000 8.000000 5.000000
2.000000 2.000000 -2.233791
0.467796 0.883104 -0.021770
>> det(fun(xval))
ans = 5.5955e-014
  3 Comments
Stephen23
Stephen23 on 31 Oct 2017
@Amanda: I hope that it helps. You should accept the answer that best resolves your question.
Walter Roberson
Walter Roberson on 31 Oct 2017
There are three solutions for x, two of which are complex valued. The above finds the real valued solution.
The complete set of solutions can be found by
simplify(solve(xc == 0, 'MaxDegree', 3))

Sign in to comment.


Anuja Menokey
Anuja Menokey on 16 Mar 2020
Edited: Walter Roberson on 18 Mar 2020
[airy(2,Z) airy(0,Z);airy(3,Z) airy(1,Z)]
det of this matirix is zero.. I want to solve this matrix..please help me..
  2 Comments
Walter Roberson
Walter Roberson on 19 Mar 2020
Edited: Walter Roberson on 19 Mar 2020
The Airy Ai function is complicated enough that you are not going to be able to get a closed form solution for that. You are probably going to need to use a numeric approach, or vpasolve()
There are an infinite number of solutions in the negative Z, and the only solution in positive Z is Z = infinity
The solutions get closer together as Z gets more negative.
Note: the determinent is never positive.
John D'Errico
John D'Errico on 19 Mar 2020
Edited: John D'Errico on 19 Mar 2020
Please, this is a different question. Do not ask it as an answer to another question.
Anyway, what is the determinant of a 2x2 matrix? Surely you can write that as ONE simple equation, in terms of those Airy functions?

Sign in to comment.

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!