October 2006, Vol. 12, 636–661 www.edpsciences.org/cocv
DOI: 10.1051/cocv:2006015
THE GEOMETRICAL QUANTITY IN DAMPED WAVE EQUATIONS ON A SQUARE
Pascal H´ ebrard
1and Emmanuel Humbert
1Abstract. The energy in a square membrane Ω subject to constant viscous damping on a subset ω ⊂ Ω decays exponentially in time as soon as ω satisfies a geometrical condition known as the
“Bardos-Lebeau-Rauch” condition. The rate τ(ω) of this decay satisfies τ(ω) = 2 min(−µ(ω), g(ω)) (see Lebeau [Math. Phys. Stud. 19(1996) 73–109]). Hereµ(ω) denotes the spectral abscissa of the damped wave equation operator andg(ω) is a number called the geometrical quantity ofωand defined as follows. A ray in Ω is the trajectory generated by the free motion of a mass-point in Ω subject to elastic reflections on the boundary. These reflections obey the law of geometrical optics. The geometrical quantity g(ω) is then defined as the upper limit (large time asymptotics) of the average trajectory length. We give here an algorithm to compute explicitlyg(ω) whenω is a finite union of squares.
Mathematics Subject Classification. 35L05, 93D15.
Received November 14, 2003. Revised July 19, 2004 and June 13, 2005.
Let Ω = [0,1]2 be the unit square of R2 and let ω ⊂Ω be a subdomain of Ω. We are interested here in the problem of uniform stabilization of solutions of the following equation
⎧⎪
⎪⎪
⎪⎨
⎪⎪
⎪⎪
⎩
utt(x, t)−∆u(x, t) + 2χω(x)ut(x, t) = 0, x∈Ω, t >◦ 0, u(x, t) = 0, x∈∂Ω, t >0
u(.,0) =u0∈H01(Ω), ut(.,0) =u1∈L2(Ω),
(0.1)
where χω is the characteristical function of the subset ω. This equation has its origin in a physical problem.
Consider a square membrane Ω. We study here the behaviour of a wave in Ω. Letu(x, t) be the vertical position of x ∈Ω at time t > 0. We assume that we apply on ω a force proportional to the speed of the membrane atx. Then,usatisfies equation (0.1). To get more information on this subject, one can refer to [2, 7, 10]. With regard to the one-dimensional case, the reader can consult [3, 6].
We do not deal here with the existence of solutions. We assume that there exists a solutionu. Let us define the energy ofuat time tby
E(t) =
Ω|∇u|2+u2tdx.
Keywords and phrases. Damped wave equation, mathematical billards.
1Institut ´Elie Cartan, Universit´e de Nancy 1, BP 239 54506 Vandœuvre-l`es-Nancy Cedex, France;pascal [email protected];
c EDP Sciences, SMAI 2006
Article published by EDP Sciences and available at http://www.edpsciences.org/cocvor http://dx.doi.org/10.1051/cocv:2006015
It is well known that, for anyt≥0,
E(t)≤CE(0)e−2τ t, (0.2)
whereC, τ ≥0. As proven by E. Zuazua [13], this result remains true in the semilinear case when the dissipation is in a neighborhood of a subset of the boundary satisfying the multiplier condition. Let us now define
Definition 0.1. The exponential rate of decayτ(ω) is defined by
τ(ω) = sup{τ≥0 s.t. ∃C >0 for which (0.2) holds}.
Many articles have been devoted to finding bounds forτ(ω). The reader can consult [1, 9, 11]. In the case of a non-constant damping, the reader may see [4]. Lebeau proved in [9] that
τ(ω) = 2 min(−µ(ω), g(ω)).
Hereµ(ω) denotes the spectral abscissa of the damped wave equation operator andg(ω) is a number called the geometrical quantity ofω and defined as follows. A ray in Ω is the trajectory generated by the free motion of a mass-point in Ω subject to elastic reflections in the boundary. These reflections obey the law of geometrical optics: the angle of incidence equals the angle of reflection. If a ray meets a corner of Ω, the reflection will be the limit of the reflection of the rays which go to this corner. It is easy to verify that the ray runs along the same trajectory before and after the reflection but in an opposite direction.
Letγ:R+→Ω be the parametrization of the ray by arclength. Let C=
rays in Ω .
Furthermore, let ρ0 = (X0, α), where X0 ∈Ω andα∈[0,2π[. Consider the rayγρ0 which starts atX0 in the direction of the vector (cos(α),sin(α)). Each ray ofCcan be defined in this way. More precisely, if Γ = Ω×[0,2π[
then
C={γρ0 s.t. ρ0∈Γ}.
In the whole paperγ∈ Cwill be noted γ= [X0, α]. Ifγ∈ C and ift >0 is a positive real number, we write:
γt=γ/[0,t]. Let
C =
t>0
γt γ∈ C
be the set of paths of finite length not necessarily closed. Forγt∈ C of lengtht >0, we define:
m(γt) =1 t
t
0 Xω(γt(s))ds.
The definition ofmcan be extended to C. Indeed, ifγ∈ C, set m(γ) = lim sup
t→+∞ m(γt).
It is proven in Section 1.2 that
m(γ) = lim
t→+∞m(γt). (0.3)
For a rayγ belonging toC,m(γ) represents the average time thatγ spends in Ω.
Definition 0.2. The geometrical quantityg(ω) is defined by g(ω) = lim sup
t→+∞ inf
γ∈Cm(γt).
We are interested here in a precise study of the geometrical quantityg. The first part of this paper is devoted to studying the rays. We recall some well known properties of rays. In the second part, another expression forg is given. Namely, we prove that ifω⊂Ω whose boundary is a finite union ofC1-curves, then
g(ω) = inf
γ∈Clim sup
t→+∞ m(γt) = inf
γ∈Cm(γ).
It is easier to work with this second definition of g(ω). An important application of this theorem is given in the third part: we obtain an algorithm which gives an exact computation ofg(ω) when ω is a finite union of squares. This work has many interests. At first, Theorem 2.1 gives another definition for g(ω), much more easy to manipulate than the original one. Secondly, maximizing the exponential rate of decay is interesting from the point of view of physics. For these questions, knowing exactlyg(ω) is important. We give some exact computations ofg(ω) with the help of our algorithm at the end of the paper. An interesting question is then:
how can we choose the subsetω such that g(ω) is maximum? At the moment, this problem is still open. The following inequality is always trueg(ω)≤ |ω|(see Sect. 2) where|ω|is the area ofω. Let us set forα∈[0,1]
S(α) = sup
|ω|=αg(ω).
Some questions then arise naturally
– What is the value ofS(α)? In particular, is it true thatS(α) =α?
– Can we find a subsetω for whichg(ω) =|ω|?
– Can we find an optimal ω (i.e. anω that maximizesg) among the domains that satisfy the multiplier condition?
If |ω|= 0 or |ω|= 1, the answers are obvious. However, if |ω| ∈]0,1[, these questions seem to be much more difficult and are still open.
1. Basic properties of rays 1.1. Different representations of rays
In this section, we regard billards in Ω from different point of views (see for example [12]). Instead of reflecting the trajectory with respect to a side of Ω, one can reflect Ω with respect to this side. We then obtain a square grid and the initial trajectory is straightened to a line. This gives a correspondance between billard trajectories in Ω and straight lines in the plane equipped with a square grid. Two lines in the plane correspond to the same billard trajectory if they differ by a translation through a vector of the lattice 2Z+ 2Z. The factor 2 in 2Z+ 2Z is important. Indeed, two adjacent squares have an opposite orientation in the sense that they are symmetric with respect to their common side.
Now, consider T = [0,2]2 and identify its opposite sides. A trajectory then becomes a geodesic line in the flat torus.
Finally, trajectories in Ω can be seen in three different ways
– the definition which consists in reflecting trajectories in sides of Ω;
– the point of view of straight lines inR2;
– the point of view of geodesic lines in a flat torusT.
Note that the set ω must be reflected in the same way as we did for Ω. This means that the setsω contained in two adjacent squares must be symmetric with respect to their common side (see Figs. 1 and 2).
X0
ω 1’=1
2’
3’
4’
0 1 2
1
Figure 1. Point of view of infinite plane.
X0
ωT
0 1 2
1 2
Figure 2. Point of view of flat torus.
Lett >0 andγ∈ C. The value
1 t
t
0 Xω(γt(s))ds does not depend on the point of view we adopt.
1.2. Open and closed rays
A ray is said to be closed if it is periodic in the flat torus. It is said to be open if it is not closed. We have the following characterization. The ray [X0= (x0, y0), α] is open if and only if cosαand sinαare independent over Z, i.e. if and only if tanα ∈ R−Q. Indeed, for example using the point of view of a flat torus, the trajectory is periodic if and only if there exist 0≤t1< t2 andn, m∈Nsuch that
x0+t1cosα=x0+t2cosα+ 2n y0+t1sinα=y0+t2sinα+ 2m.
Hence 2m(t1−t2) cosα−2n(t1−t2) sinα= 0. Let us now consider open rays. They have the following properties (see for example [5], p. 172).
Proposition 1.1. Letγ= [X0, α] be an open ray. Then,{γt, t≥0} is dense in the torusT and then inΩ. In addition, ifω is quarrable (i.e. χω Riemann-integrable on Ω) then m(γt)−−−−→t
→+∞ |ω|. More precisely, let αbe such that tanα∈R−Qthen
∀ >0,∃t0|t≥t0,∀X0∈Ω : ifγρ0 = [X0, α]then |m(γt)− |ω||< . In other words,t0 is independent ofX0.
Here,|ω|stands for the area ofω. Consider now closed rays. They satisfy the following properties:
Proposition 1.2. Let γ= [X0, α] be a closed ray. Then, there existp, q∈Z relatively prime such that:
cosα= p
p2+q2 and sinα= q p2+q2· The periodL of the trajectory isL= 2
p2+q2. We have m(γt)−−−−→t
→+∞
1 L
L
0 χω(γ(s))ds.
Remark 1.1. The assertion (0.3) follows immediately from Propositions 1.1 and 1.2. Moreover, letγ∈ C. Ifγ is open, we havem(γ) =|ω|and ifγ is periodic of periodL, we havem(γ) =L1 L
0 χω(γ(s))ds.
As one can check, an immediate consequence of Proposition 1.2 is the following result Proposition 1.3. Let ω⊂Ωbe Riemann-integrable, then
g(ω)≤ |ω|.
Closed rays can easily be described. Let us adopt the point of view of a flat torus. Let us consider a ray γ = [X0, α] with X0 ∈T and cosα=p/
p2+q2,sinα=q/
p2+q2, p andq relatively prime. We assume that p≥0 andq≥0 (i.e. α∈[0, π/2]). From Remark 3.1 below, the study can be restricted to such rays.
Theorem 1.1. The rayγ is an union of p+qparallel segments directed byu= cosαi+ sinαj. Among these segments, pof them start atAk,1≤k≤p, and theqothers start at Bk,1≤k≤qwith
Ak
0,
y0+q/p(2k−x0)−2E 1
2(y0+q/p(2k−x0))
and
Bk
x0+p/q(2k−y0)−2E 1
2(x0+p/q(2k−y0))
,0
.
In addition, the distance between two neighbouring segments is constant and equal to δ = 4/L, where L = 2
p2+q2 is the period.
Proof. In the infinite plane R2, the ray is defined by x(t) = x0+ 2tp/L and y(t) = y0+ 2tq/L, where L = 2
p2+q2 is the period. Let us restrict the study to the segment [X0X1] of length L. In ]X0X1[, the ray intersects pvertical straight lines defined by the equationsx= 2k, k= 1, . . . , pandq horizontal straight lines defined by the equationy= 2k, k= 1, . . . , q. This givesp+qsegments starting at points with coordinates
0, y0+q/p(2k−x0)
X0
X1
∆ x = 2p
∆ y = 2q
A1
A2
A3
B1
B2
Ω
0 2 4 6 8
2 4 6
Figure 3. Closed ray forp= 3 andq= 2 in the infinite plane.
X0 = X1 A1
A2 A3
B1 B2
δ δ δ δ
Ω
0 1 2
1 2
Figure 4. Closed rayp= 3 andq= 2 in the flat torus.
and
x0+p/q(2k−y0),0 .
Coming back to the point of view of the torus, this givesp+qsegments starting atAk andBk.
Sincepandqare relatively prime, it is well known that{kq[p],1≤k≤p}={0,1, . . . , p−1}. Hence, ifAk1
andAk2 are two neighbouring points,Ak1Ak2 = 2/p. As a consequence, the distance between the straight lines (Ak1, u) and (Ak2, u) is
δ= −−−−−→
Ak1Ak2.u⊥ = 2
pj.−qi+pj p2+q2 = 4
L·
In the same way, ifBk1 andBk2 are two neighbouring pointsBk1Bk2 = 2/q, the distance between (Bk1, u) and (Bk2, u) is
δ= −−−−−→
Bk1Bk2.u⊥ = 2
qi. qi−pj p2+q2 = 4
L·
Letk1, k2 be such that
dist(Ak1,0) = min
k dist(Ak,0) anddist(Bk2,0) = min
k dist(Bk,0).
It remains to prove that the distance between the two segments starting atAk1 andBk2 isδ= 4/L. Since the distance between two pointsAk is 2/p, there exists n∈Nsuch that the ordinatey∗ofAk1 satisfies
2n≤y0+q/p(2k1−x0)−2E 1
2(y0+q/p(2k1−x0))
<2n+ 2/p
=⇒ y∗=y0+q/p(2k1−x0)−2E 1
2(y0+q/p(2k1−x0))
−2n <2/p.
In the same way, there existsm∈Nsuch that the abscissax∗ ofBk2 satisfies 2m≤x0+p/q(2k2−y0)−2E
1
2(x0+p/q(2k2−y0))
<2m+ 2/q
=⇒ x∗ =x0+p/q(2k2−y0)−2E 1
2(x0+p/q(2k2−y0))
−2m <2/q.
The distanceδbetween the two segments verifies:
δ= −−−−−→
Ak1Bk2.u⊥ = |qx∗+py∗| p2+q2 ·
An easy computation shows that|qx∗+py∗|is an even integer number. Consequently,δcan be written as 4k/L, wherek is an integer. Since 0≤x∗ <2/qand 0≤y∗<2/p, we getδ <8/L, and hence,δ= 4/L.
Remark 1.2. If a quarrable domain ω is such that g(ω) = |ω| then for all α ∈ [0, π/2] and for almost all X0∈T,m(γ) =|ω|, whereγ= [X0, α].
Indeed, consider an open ray γ. Then m(γ) = |ω|. Let X0 ∈ Ω. Assume that a ray γ starting at X0 is closed of lengthL. LetM andN be two points ofγ such that−−→
M N is orthogonal touandM N =δ. Let also P(s) =sM+ (1−s)N andγs= [P(s), α], then
g(ω)≤ inf
s∈[0,1]m(γLs)≤ 1
0 m(γLs)ds≤ |ω|.
If g(ω) = |ω|, then m(γLs) = |ω| almost everywhere. If ∂ω is a finite union of curves of class C1, then the number of discontinuity points of m(γLs) is finite. It is null if ∂ω does not possess any segments. The remark above immediately follows.
2. An equivalent definition for g 2.1. The geometrical quantity g
We define, for any set ω:
Definition 2.1. The geometrical quantityg(ω) is defined by g(ω) = inf
γ∈Cm(γ).
As easily seen,g is easier to study thang. As shown in Section 3,g(ω) can be computed explicitly for a certain class of domainsω. Together with Theorem 2.1, this gives an algorithm for computingg(ω).
Theorem 2.1. Let ω be a closed set whose boundary is a finite union of curves of class C1. Then g(ω) =g(ω).
As a first remark, the same argument as in the proof of Proposition 1.3 shows that
0≤g(ω)≤ |ω|. (2.1)
The proof of Theorem 2.1 is given in the appendix. It is easy to see thatg(ω)≤g(ω). Inequalityg(ω)≤g(ω) is much more difficult to obtain. To prove Theorem 2.1, we consider a sequence of rays γn = [xn, θn] and a sequence of real numbers tn → +∞ for which m(γtnn) → g(ω). After choosing a subsequence, there exists (x, θ)∈Ω×[0,2π[ such that limnxn=xand limnθn =θ. We will now show that limnm(γtnn)−m([x, θ]tn) = 0.
The conclusion then follows. The difficulty in this proof is that the function (x, θ)→m([x, θ]t) is not continuous.
A direct consequence of Theorem 2.1 is that it suffices to consider closed rays in the explicit computation ofg(ω).
Namely, letCc be the set of closed rays, then we have:
g(ω) = inf
γ∈Ccm(γ). (2.2)
3. Explicit computation of g
We prove in this section that for a particular class of domainsω, the properties of the geometrical quantity g we obtain above allow to compute explicitly g(ω). Let N ∈N∗, and let ω ⊂Ω be a finite union of squares (Ci,j)1≤i,j≤N, with
Ci,j = i−1
N , i N
× j−1
N , j N
·
Obviously,ω is Riemann-measurable, closed and its boundary is a finite union ofC1 curves.
3.1. Influence of α
The first result we obtain is the following
Theorem 3.1. Let γ = [X0, α] be a closed ray such that tanα = q/p, with p and q relatively prime and p+q >2N, then
|m(γ)− |ω| | ≤N2
pq min{|ω|,1− |ω|} ≤ N2 2pq·
Proof. We adopt the point of view of flat torusT = [0,2]2. At first, letK be one of the Ci,j i.e.
K=Ci0,j0 =
i0−1 N ,i0
N
×
j0−1 N ,j0
N
=ABCD.
The period of γ is L= 2
p2+q2. Letδ = 4/L. Then cosα=pδ/2 and sinα=qδ/2. By Theorem 1.1, the rayγis constituted byp+qsegments directed byu. The distance between two neighbouring segments isδ.
Let us define the orthonormal frame Ru = (X,−→ Iu,−→
Ju), where X is such that −−→
XD.u = 0, −−→
XD.−−→
XA = 0,
−
→Iu=−−→XD/||−−→XD||, and−→
Ju=−−→XA/||−−→XA||=u(see Fig. 5).
In this frame, the coordinates ofA, B, C and Dsatisfy A
0,sinα
N
; B sinα
N ,sinα+ cosα N
; C
sinα+ cosα N ,cosα
N
; D
cosα N ,0
.
A B
D C X
0 1 2
1 2
Figure 5. Rayγ= [0, α] with tanα= 4/15.
A B
C
D
X x
0 x
1 x
2
Figure 6. Vertical segments in the squareABCD.
The ray γ is constituted ofp+qvertical segments. R of them meetK (see Fig. 6). We note x0, x1, . . . xR−1
their abscissa
x0=r∈[0, δ]
xi=x0+iδ, 0≤i≤R−1.
Since sinα+cosN α= p2+Nqδ > δ, there exists at least one segment inK andR≥1.
Let
f1(x) = cotα x+sinα
N = cotα
x−sinα N
+sinα+ cosα
N line (AB)
f2(x) =−tanα
x−sinα N
+sinα+ cosα N
=−tanα
x−sinα+ cosα N
+cosα
N line (BC) g1(x) =−tanα x+sinα
N =−tanα
x−cosα N
line (AD) g2(x) = cotα
x−cosα N
= cotα
x−sinα+ cosα N
+cosα
N line (CD) and
f(x) =
⎧⎪
⎪⎪
⎪⎪
⎪⎪
⎨
⎪⎪
⎪⎪
⎪⎪
⎪⎩ sinα
N ifx≤0 f1(x) if 0≤x≤ sinNα
f2(x) if sinNα ≤x≤sinα+cosN α cosα
N ifx≥sinα+cosN α
andg(x) =
⎧⎪
⎪⎪
⎪⎪
⎪⎨
⎪⎪
⎪⎪
⎪⎪
⎩ cosα
N ifx≤0 g1(x) if 0≤x≤ cosNα
g2(x) if cosNα ≤x≤ sinα+cosN α cosα
N ifx≥ sinα+cosN α·
Then
Rf−g=
sinα+cosα
N
0 (f(x)−g(x))dx=|K|= 1 N2 and
1 L
L
0 χK(γ(s))ds=δ 4
R−1 i=0
f(xi)−g(xi).
Letkbe the number of vertical segments which meet [AB], i.e. thek segments such that r+ (k−1)δ≤sinα
N ≤r+kδ.
If 1≤k≤R−1, if at least one segment meets [AB] and if at least one segment meets [BC] then, as one can see
1 L
R−1 i=0
f(xi) = δ 4
k−1
i=0
f1(xi) +δ 4
R−1 i=k
f2(xi)
= 1 4
k−1
i=0
xi+δ/2
xi−δ/2 f1(x)dx+1 4
R−1 i=k
xi+δ/2
xi−δ/2 f2(x)dx
= 1 4
r+(k−1/2)δ
r−δ/2 f1(x)dx+1 4
r+(R−1/2)δ
r+(k−1/2)δ f2(x)dx. (3.1) Ifk= 0 ork=R, equation (3.1) remains true. Hence, in all cases
1 L
R−1 i=0
f(xi) =1 4
(p+q)δ/2N 0
f(x)dx−1 4
r−δ/2 0
f1(x)dx
+1 4
r+(k−1/2)δ
qδ/2N (f1(x)−f2(x))dx+1 4
r+(R−1/2)δ
(p+q)δ/2N f2(x)dx.
In the same way, letl be the number of segments which meet [AD]
r+ (l−1)δ≤ cosα
N ≤r+lδ.
We obtain that, in all cases 1
L
R−1 i=0
g(xi) =1 4
r+(l−1/2)δ
r−δ/2 g1(x)dx+1 4
r+(R−1/2)δ
r+(l−1/2)δ g2(x)dx
=1 4
(p+q)δ/2N
0 g(x)dx−1 4
r−δ/2
0 g1(x)dx +1
4
r+(l−1/2)δ
pδ/2N (g1(x)−g2(x))dx+1 4
r+(R−1/2)δ
(p+q)δ/2N g2(x)dx.
Finally 1 L
L
0 χK(γ(s))ds− 1
4N2 =−1 4
r−δ/2
0 f1−g1+1 4
r+(k−1/2)δ
qδ/2N f1−f2 +1
4
r+(l−1/2)δ pδ/2N
g1−g2+1 4
r+(R−1/2)δ (p+q)δ/2N
f2−g2
=tanα+ cotα 8
−(r−δ/2)2+ (r+ (k−1/2)δ−qδ/2N)2
+(r+ (l−1/2)δ−pδ/2N)2−(r+ (R−1/2)δ−(p+q)δ/2N)2 .
However, in this last equality, each of the four square terms is less than δ/2 and tanα+ cotα= sinα1cosα =
pqδ42 =4Lpq2 hence
1 L
L
0 χK(γ(s))ds− 1 4N2
≤ 1
4pq· (3.2)
We now consider:
ωT =
(i,j)∈E
Ci,j,
whereE is a subset of {1,2, . . . ,2N}2and card(E) =N2|ωT|= 4N2|ω|; then m(γ) = 1
L L
0 χωT(γ(s))ds=
(i,j)∈E
1 L
L
0 χCi,j(γ(s))ds.
Hence
m(γ)− |ω|=
(i,j)∈E
1 L
L
0 χCi,j(γ(s))ds− 1 4N2
· This leads to
|m(γ)− |ω| | ≤card(E) 4pq =N2
pq|ω|.
If the area ofωis greater than 1/2, letω be the adherence of Ω−ωwhich is also a finite union of squaresCi,j.
Hence
1 L
L
0 χω(γ(s))ds−(1− |ω|) ≤ N2
pq(1− |ω|)
0 1 C1
C 2 2
C 3 3
C 4 4
C 5 5
C 6 6 L 1
1 L22 L 3
3 L 4
4 L 5
5 L 6
6
columns
lines
x y
Figure 7. A domainω forN = 6.
or
1 L
L
0 χω(γ(s))ds= 1− 1 L
L
0 χω(γ(s))ds.
Finally, we get|m(γ)− |ω| | ≤ Npq2(1− |ω|).
3.2. Representation of ω
For convenience, consider the frame (O, I , J) withI=i/(2N) andJ=j/(2N). As a consequence, Ω is now the square [0, N]2, andT is the torus [0,2N]2. The length of closed rays defined by (p, q) (p, qrelatively prime) such that cosα=p/
p2+q2 and sinα=q/
p2+q2 must be modified. The period is now L= 2N
p2+q2 andCi,j is such that:
Ci,j= [i−1, i]×[j−1, j].
Let us define the matrixM N×N such thatMi,j= 1 ifCj,i⊂ω, andMi,j= 0 ifCj,i⊂ω. With this notation, the matrix M is a representation ofω. As an example, ifω is as in Figure 7 then
M =
⎛
⎜⎜
⎜⎜
⎜⎜
⎝
1 1 0 0 1 1
1 1 1 1 0 1
0 1 0 1 0 1
0 0 0 0 1 1
1 1 0 0 0 0
0 1 1 0 0 0
⎞
⎟⎟
⎟⎟
⎟⎟
⎠ .
Let us also define the 2N×2N matrixAsuch thatAi,j = 1 ifCj,i⊂ωT, Ai,j= 0 ifCj,i⊂ωT,i.e.
Mi,j =Ai,j =A2N+1−i,j=Ai,2N+1−j=A2N+1−i,2N+1−j. (3.3)
X0
X1 X2
X3
u u1 u2
u3
u u
u
0 1 2
1 2
Figure 8. Starting points withα∈[0, π/2].
3.3. Influent rays
Letγ be a horizontal ray starting atX0= (x0, y0). Then, m(γ) = 1
N N j=1
Mi,j.
Assume thaty0=kis an integer. Since eachCi,j is closed, m(γ) = 1
N N j=1
(Mk−1,j+Mk,j).
Obviously, this ray does not realize the infimum in the definition ofg. In the same way, for a vertical ray, only the numbers
1 N
N i=1
Mi,j, 1≤i≤N
must be considered. Now, let us deal with oblique rays and fix α. Let us denote tanαbyq/p, wherepand q are relatively prime integers.
Remark 3.1. One has to consider only the rays defined by γ = [X0, α] with X0 ∈ T and α∈ [0, π/2], i.e.
p≥0 andq≥0.
Indeed, keeping the notations of Figure 8, the rayγ1 = [X0,−u→1] is equivalent to ˜γ1 = [X1, u]. In the same way, the raysγ2= [X0,−→u2] andγ3= [X0,−→u3] are equivalent to ˜γ2= [X2, u] and ˜γ3= [X3, u].
Let us now study the influence of the starting point of rays. We have the following result
Proposition 3.1. Among oblique closed rays of angleα, the ray which spends the least time inω in average is a ray which meets a point with integer coordinates.
Proof. Let B = (x0, y0) be a point of T such that the ray γ = [B, α] does not meet a point with integer coordinates. Let us adopt the point of view of infinite plane and let B0, B1, B2, . . . be the intersection points of γ with the lattice Z+Z. A direct consequence of Theorem 1.1 is that B0B2N(p+q) = L = 2N
p2+q2.
u= (pi+qj)/
p2+q2 is the direction of the ray. Letn= (−qi+pj)/
p2+q2 be such that (u, n) is a direct
B0
B1 B2
B3
B4 B5
B6
B7 B8
B9
B10 B11
B12
A0
A1 = A2
A3
A4 = A5
A6
A7 = A8
A9
A10 = A11
A12
C0
C1
C2 = C3
C4
C5 = C6
C7
C8 = C9
C10
C11 = C12
0 2 4 6 8
2 4
Figure 9. Case of a ray which does not meet any point with integer coordinates.
orthonormal frame. For a point P = (k, l) with integer coordinates, let us compute the algebraic distance to the rayγ
d(P, γ) =−−→
BP .n=pl−qk−(py0−qx0) p2+q2 · There exists a pointAwith integer coordinates and which verifies:
d(A, γ) = min{d(P, γ)|P has integer coordinates andd(P, γ)>0}.
Let Ai be the intersection point of the line meeting A and directed by u(the points A solutions of the mini- mization problem above are clearly on a same line directed by u) and the line belonging to the latticeZ+Z which contains Bi (see Fig. 9 for the case N = 2). In the same way, there existsC with integer coordinates which satisfies
d(C, γ) = min{d(P, γ)|P has integer coordinates andd(P, γ)<0}.
Let us note Ci the intersection of the line meeting C and directed byuand the line belonging to the lattice Z+Zwhich contains Bi (see Fig. 9).
There are three oblique rays of angleα γA= [A0, α], γB = [B, α] = [B0, α] andγC= [C0, α]. According to the definitions ofAandC, the segments [AiAi+1], [BiBi+1] and [CiCi+1] belong to the same squareCk,l. We defineεk = 1 if [BkBk+1]⊂ωT,εk= 0 if [BkBk+1]⊂ωT. Then, if
m(γB) = 1 L
[B0B2N(p+q)]χωT = 1 L
2N(p+q) k=1
εkBk−1Bk,
we have:
m(γA) = 1 L
2N(p+q) k=1
εkAk−1Ak and m(γC) = 1 L
2N(p+q) k=1
εkCk−1Ck.
These three rays are parallel. Hence, there existst∈(0,1) such that for alli,Biis the barycenter of (Ai, t) and (Ci,1−t). If the quadrilateralAiAi+1CiCi+1is a trapezium (or in the degenerate case a rectangular triangle), Thales’ theorem implies thatBiBi+1 =t AiAi+1+ (1−t)CiCi+1. If the quadrilateral is a parallelogram, this inequality remains valid because the three lengths are equal. As a consequence, we have
m(γB) =tm(γA) + (1−t)m(γC).
The minimum of the three quantities m(γA), m(γB) andm(γC) is attained for one of the two raysγA ouγC. This shows that γcannot be the minimum in the set of oblique closed rays.
It remains to find the anglesαwe need to consider among the rays which meet a point with integer coordinates.
In the flat torusT = [0,2N]2, there are 4N2 possible starting points. However, the rayγ = [(x0, y0), α] with (x0, y0)∈N2 meets 2N points with integer coordinates. Indeed, γmeets the point (x1, y1) if and only if there existsλ∈[0,2N) such that
x1=x0+λp [2]
y1=y0+λq [2].
Therefore, the points belonging to γ and with integer coordinates are exactly the 2N points obtained for λ= 0,1, . . . ,2N−1. There exist at least 2N rays which meet a point with integer coordinates.
Proposition 3.2. Let dbe the G.C.D. ofpand2N, let d be such thatd d = 2N. Then, the2N rays of angle αstarting at (i, j)with 0≤i≤d−1 and0≤j≤d−1 meet one and only one time all the points of T with integer coordinates.
Proof. Letp be such thatd p=p. We note thatp andd are relatively prime. Let alsoγ1andγ2 be the rays starting respectively at A and B with integer coordinates (k1, k2) and (k3, k4) (with 0 ≤k1, k3 ≤d−1 and 0≤k2, k4≤d−1 ). There exists a point C∈γ1∩γ2 with integer coordinates if and only if there exist four integer numbersλ, µ, nandmsuch that
x=k1+λp=k3+µp+ 2N n y=k2+λq=k4+µq+ 2N m.
Therefore,k1−k3= (µ−λ)p+ 2N nandk1−k3is divisible byd. Since−(d−1)≤k1−k3 ≤d−1, we have k1=k3 and (µ−λ)p=−2N n. As a consequence, (µ−λ)p =−dnand since p andd are relatively prime, (µ−λ) =kd, where k∈ Z. In the same way, k2−k4 = (µ−λ)q+ 2N m=kdq+ 2N m. Hence k2−k4 is divisible byd. Since−(d−1)≤k2−k4≤d−1, we havek2=k4 andγ1=γ2.
3.4. The algorithm
In this section, we give a method to compute explicitlyg when ω is a finite union of squaresCi,j. At first, according to Propositions 1.1 and 3.1, the study can be restricted to closed rays starting at a point with integer coordinates.
The user of the program must input the matrixM which representsωand the value of a parameterP Qmax which avoids infinite loops (this problem never appeared until now).
The algorithm is the following
1. Compute the minimum gof the 2N numbers 1
N N i=1
Mi,j and 1 N
N j=1
Mi,j,
which corresponds to the minimum ofm(γ) whenγ is a vertical or horizontal ray.
2. From the matrixM, build the matrixA defined in (3.3).
3. For all (p, q) such thatp≥1,q≥1,p+q≤2N andpandqrelatively prime, compute the number (the way to computemp,q is explained below)
mp,q = min
X∈{1,2,...,2N}2{m(γ)|γ= [X,arctanq/p]}. (3.4) Theng←min{g, mp,q}.
4. If at this stepg=|ω|, the user inputs the parameterP Qmaxwhich corresponds to the greatest product pq which will be considered; in the other casesP Qmax=E(|ωN|−2gmin{|ω|,1− |ω|}) + 1.
5. Find all the (p, q) relatively prime such thatp≥1,q≥1,p+q >2N,pq≤P Qmax. Sort these couples from the lowest productpq to the greatest one. This gives a listLcontainingncouples.
6. i←1 and as long as|ω| −g≥ Npq2 min{|ω|,1− |ω|}andi≤n, g←min{g, mp,q} and i←i+ 1,
where (p, q) is thei-thcouple ofLandmp,q is defined above (see (3.4)).
7. Finally
• if at the end of this loop,g=|ω|, then
|ω| − N2
P Qmaxmin{|ω|,1− |ω|} ≤g(ω)≤ |ω|.
This means that one of the following cases occurs;g(ω) =|ω|, or too few families of rays have been considered;
• ifg=|ω|, according to Theorem 3.1,g(ω) is equal tog.
We now present the method of computation defined in (3.4) for two relatively prime integers p≥ 1, q ≥1.
At first, let us consider the rayγ0 = [0,arctanq/p] and let us study the way to compute m(γ0). Its period is L= 2N
p2+q2and between the instantst= 0 andt=L, it meets 2N(p+q−1) + 1 points which have at least one integer coordinate. Let P1, . . . , P2N(p+q−1)+1 be these points (see Fig. 10). Remember that Pl(p+q−1)+1, 1≤l≤2N have integer coordinates.
Let (ik), (jk) and (εk) be the three other finite sequences (1≤k≤2N(p+q−1)) defined by PkPk+1⊂[ik, ik+ 1]×[jk, jk+ 1]
and
εk=
1 if [ik, ik+ 1]×[jk, jk+ 1]⊂ω 0 if not.
Then, m(γ0) = L1 2kN=1(p+q−1)εkPkPk+1, the computation of m(γ0) is equivalent to the computation of the sequences (PkPk+1), (ik) and (jk).
• Computation of the lengthsPkPk+1
At first, note that it suffices to compute the lengthsPkPk+1for 1≤k≤p+q−1. Indeed,−−−−−−−−−→
Pk+(p+q−1)Pk=pi+qj,