Testwiki:Reference desk/Archives/Mathematics/2020 August 23

From testwiki
Jump to navigation Jump to search

Template:Error:not substituted

{| width = "100%"

|- ! colspan="3" align="center" | Mathematics desk |- ! width="20%" align="left" | < August 22 ! width="25%" align="center"|<< Jul | August | Sep >> ! width="20%" align="right" |Current desk > |}

Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


August 23

bound to "sparsity" of a matrix

Let say I got a set of matrices, with at most k_i non zero values. What is the the upper bound of sparsity of the matrix product of the set? Meaning, how non sparse can it get? What is the upper bound of powering a sparse matrix? --Exx8 (talk) 19:27, 23 August 2020 (UTC)

It can go up pretty quickly. Let the square m×m matrix M be defined by Mi,j=1 if i=1 or j=1, while all other entries are zero. So there are only 2m1 nonzero entries. Yet M2 is completely filled with m2 nonzero entries.  --Lambiam 20:32, 23 August 2020 (UTC)

Rectangle with given Y coordinates

(please check the following logic) If I am given the Y coordinates for 4 points (in ascending order a,b,c,d), a rectangle can be made, only if a+d = b+c. Such a rectangle could be (b,a), (a,b), (c,d) , (d,c) which will have one side of length sqrt(2) (c-a) and one of length sqrt(2)(b-a) for a total area of 2*(c-a)*(b-a). Correct?Naraht (talk) 21:10, 23 August 2020 (UTC)

I have not tried all combinations, but for the quadrilateral whose vertices are given by P=(a,b), Q=(b,a), R=(d,c) and S=(c,d), this is true. For this to be a rectangle, the sides PQ and QR have to form a right angle; the rest then follows by symmetry.
We can represent the directions of these sides as vectors: PQ=(ba,ab) and QR=(db,ca). The angle is a right angle when these two vectors are orthogonal, which (assuming neither is a zero vector) means that their dot product vanishes:
(ba,ab)(db,ca)=(ba)(db)+(ab)(ca)=0.
After simplification this becomes (ba)((a+d)(b+c))=0. So, assuming ab, it follows that a+d=b+c.  --Lambiam 22:43, 23 August 2020 (UTC)
Given a, b, c, d in any order, with a+d=b+c, not only is it possible to build a rectangle with the given y-coordinates, it's possible to build a square. Namely, (a,c), (b,a) (c,d) (d, b). --RDBury (talk) 02:34, 24 August 2020 (UTC)
What is the area of that square?Naraht (talk) 14:06, 24 August 2020 (UTC)
The length of the diagonal is D=(da)2+(bc)2, so the area is D22=(da)2+(cb)22. IffyChat -- 14:54, 24 August 2020 (UTC)