Re: Problems calculating matrix determinant



In article <dj8glu$1j1$1@xxxxxxxxxxxxxxxxx>, Paminu <asdad@xxxxxxx> wrote:
>I am trying to calculate a determinant of a matrix. But I can't seem to get
>the result to match the one found in my book. Hope someone can give me a
>hint on what I am doing wrong.
>
>http://photos3.blogger.com/blogger/3626/1346/1600/det1.JPG

You have trouble computing products of three binomials, is what you
are doing wrong.

You are trying to calculate the determinant

| a^2 a 1 |
| b^2 b 1 |
| c^2 c 1 |

You tried doing it directly; the book says it is equal to
(a-b)(a-c)(b-c).

The first thing you are doing wrong is that you are not calculating
that product correctly. You write

(a-b)(a-c)(b-c) = a^2 - 2ac + b^2 + 2bc.

Really?

(a-b)(a-c) = a^2 - ab - ac + bc

(a-b)(a-c)(b-c) = (a^2 - ab - ac + bc)(b-c)
= a^2b - ab^2 - abc + b^2c
-a^2c + abc + ac^2 - bc^2
= a^2 b - ab^2 + b^2c - bc^2 + ac^2 - ac^2.

Nothing near what you claimed that product was, but exactly equal to
what your calculation of the determinant was.


I don't know how you got that (a-b)(a-c)(b-c) was equal to a^2 - 2ac +
b^2 + 2bc. I just can't figure out what you did.

--
======================================================================
"It's not denial. I'm just very selective about
what I accept as reality."
--- Calvin ("Calvin and Hobbes")
======================================================================

Arturo Magidin
magidin@xxxxxxxxxxxxxxxxx

.



Relevant Pages

  • Re: The determinant of a matrix
    ... I have a question on calculating the determinant of a matrix and am ... for these specially formed matrices is a Toeplitz matrix. ...
    (sci.math)
  • Re: The "determinant" of three dimensional matrix.
    ... I was thinking of a way of calculating the "determinant", as the sum of ... May it be the solution of compound linear equation of the form: ... I do not think determinant is "defined" for 3D matrices. ...
    (sci.math.symbolic)
  • [OT ?] determinant computation time complexity
    ... I'm not so experienced in calculating complexity. ... calculate time complexity for calculating the determinant of a square n x n ... I know this is a really slow algorithm ...
    (comp.programming)
  • [OT ?] determinant computation time complexity
    ... I'm not so experienced in calculating complexity. ... calculate time complexity for calculating the determinant of a square n x n ... I know this is a really slow algorithm ...
    (comp.programming)
  • Re: Multiple precise: how to make 16bytes double ???
    ... > For calculating precisely,I have to make more long floating-point,like ... > Somebody could give me a hint or maybe some free source code could be ... google for "arbitrary precision math" ...
    (comp.lang.cpp)