If G is a
discrete group, then the compact subsets coincide with the finite subsets, and a (left and right invariant) Haar measure on G is the
counting measure. The Haar measure on the topological group (\mathbb{R}, +) that takes the value 1 on the interval [0,1] is equal to the restriction of
Lebesgue measure to the Borel subsets of \mathbb{R}. This can be generalized to (\mathbb{R}^n, +). In order to define a Haar measure \mu on the
circle group \mathbb{T}, consider the function f from [0,2\pi] onto \mathbb{T} defined by f(t)=(\cos(t),\sin(t)). Then \mu can be defined by \mu(S)=\frac1{2\pi}m(f^{-1}(S)), where m is the Lebesgue measure on [0,2\pi]. The factor (2\pi)^{-1} is chosen so that \mu(\mathbb{T})=1. If G is the group of
positive real numbers under multiplication then a Haar measure \mu is given by \mu(S) = \int_S \frac{1}{t} \, dt for any Borel subset S of positive real numbers. For example, if S is taken to be an interval [a,b], then we find \mu(S) = \log(b/a). Now we let the multiplicative group act on this interval by a multiplication of all its elements by a number g, resulting in gS being the interval [g\cdot a,g\cdot b]. Measuring this new interval, we find \mu(gS) = \log((g\cdot b)/(g\cdot a)) = \log(b/a) = \mu(S). If G is the group of nonzero real numbers with multiplication as operation, then a Haar measure \mu is given by \mu(S) = \int_S \frac{1} \, dt for any Borel subset S of the nonzero reals. For the
general linear group G = GL(n,\mathbb{R}), any left Haar measure is a right Haar measure and one such measure \mu is given by \mu(S) = \int_S {1\over |\det(X)|^n} \, dX where dX denotes the Lebesgue measure on \mathbb{R}^{n^2} identified with the set of all n\times n-matrices. This follows from the
change of variables formula. Generalizing the previous three examples, if the group G is represented as an open submanifold of \R^n with
smooth group operations, then a left Haar measure on G is given by \frac{1}d^n x, where e_1 is the group identity element of G, J_{(x\cdot)}(e_1) is the
Jacobian determinant of left multiplication by x at e_1, and d^n x is the Lebesgue measure on \R^n. This follows from the
change of variables formula. A right Haar measure is given in the same way, except with J_{(\cdot x)}(e_1) being the Jacobian of right multiplication by x. For the
orthogonal group G = O(n), its Haar measure can be constructed as follows (as the distribution of a random variable). First sample A \sim N(0, 1)^{n\times n}, that is, a matrix with all entries being IID samples of the normal distribution with mean zero and variance one. Next use
Gram–Schmidt process on the matrix; the resulting random variable takes values in O(n) and it is distributed according to the probability Haar measure on that group. Since the
special orthogonal group SO(n) is an open subgroup of O(n) the restriction of Haar measure of O(n) to SO(n) gives a Haar measure on SO(n) (in random variable terms this means conditioning the determinant to be 1, an event of probability 1/2). The same method as for O(n) can be used to construct the Haar measure on the
unitary group U(n). For the
special unitary group G = SU(n) (which has measure 0 in U(n)), its Haar measure can be constructed as follows. First sample A from the Haar measure (normalized to one, so that it's a probability distribution) on U(n), and let e^{i\theta} = \det A, where \theta may be any one of the angles, then independently sample k from the uniform distribution on \{1, ..., n\}. Then e^{-i\frac{\theta + 2\pi k}n}A is distributed as the Haar measure on SU(n). Let G be the set of all affine linear transformations A : \mathbb{R} \to \mathbb{R} of the form r \mapsto x r + y for some fixed x, y \in \mathbb{R} with x > 0. Associate with G the operation of
function composition \circ, which turns G into a non-abelian group. G can be identified with the right half plane (0, \infty) \times \mathbb{R} = \left\{ (x, y) ~:~ x, y \in \mathbb{R}, x > 0 \right\} under which the group operation becomes (s, t) \circ (u, v) = (su, sv + t). A left-invariant Haar measure \mu_L (respectively, a right-invariant Haar measure \mu_R) on G = (0, \infty) \times \mathbb{R} is given by \mu_L(S) = \int_S \frac{1}{x^2} \,dx\,dy and \mu_R(S) = \int_S \frac{1}{x} \,dx\,dy for any Borel subset S of G = (0, \infty) \times \mathbb{R}. This is because if S \subseteq (0, \infty) \times \mathbb{R} is an open subset then for (s, t) \in G fixed,
integration by substitution gives \mu_L((s, t) \circ S) = \int_{(s, t) \circ S} \frac{1}{x^2} \,dx\,dy = \int_{S} \frac{1}{(s u)^2} |(s)(s) - (0)(0)| \,du\,dv = \mu_L(S) while for (u, v) \in G fixed, \mu_R(S \circ (u, v)) = \int_{S \circ (u, v)} \frac{1}{x} \,dx\,dy = \int_S \frac{1}{s u} |(u)(1) - (v)(0)| \,ds\,dt = \mu_R(S). On any
Lie group of dimension d a left Haar measure can be associated with any non-zero left-invariant
d-form \omega, as the
Lebesgue measure |\omega|; and similarly for right Haar measures. This means also that the modular function can be computed, as the absolute value of the
determinant of the
adjoint representation. A representation of the Haar measure of positive real numbers in terms of
area under the positive branch of the standard hyperbola
xy = 1 uses Borel sets generated by intervals [
a,b],
b >
a > 0. For example,
a = 1 and
b =
Euler’s number e yields and area equal to log (e/1) = 1. Then for any positive real number
c the area over the interval [
ca, cb] equals log (
b/
a) so the area is invariant under multiplication by positive real numbers. Note that the area approaches infinity both as
a approaches zero and
b gets large. Use of this Haar measure to define a logarithm function anchors
a at 1 and considers area over an interval in [b,1], with 0 If G is the group of non-zero
quaternions, then G can be seen as an open subset of \R^4. A Haar measure \mu is given by \mu(S)=\int_S\frac1{(x^2+y^2+z^2+w^2)^2}\,dx\,dy\,dz\,dw where dx\wedge dy\wedge dz\wedge dw denotes the Lebesgue measure in \mathbb{R}^4 and S is a Borel subset of G. If G is the additive group of
p-adic numbers for a prime p, then a Haar measure is given by letting a+p^n O have measure p^{-n}, where O is the ring of p-adic integers. ==Construction of Haar measure==