# Pointwise

In mathematics, the qualifier pointwise is used to indicate that a certain property is defined by considering each value $f(x)$ of some function $f.$ An important class of pointwise concepts are the pointwise operations, that is, operations defined on functions by applying the operations to function values separately for each point in the domain of definition. Important relations can also be defined pointwise.

## Pointwise operations
### Formal definition

A binary operation o: Y × Y → Y on a set Y can be lifted pointwise to an operation O: (X→Y) × (X→Y) → (X→Y) on the set X → Y of all functions from X to Y as follows: Given two functions f$_1$: X → Y and f$_2$: X → Y, define the function O(f$_1$, f$_2$): X → Y by
Commonly, o and O are denoted by the same symbol. A similar definition is used for unary operations o, and for operations of other arity.

### Examples

The pointwise addition $f+g$ of two functions $f$ and $g$ with the same domain and codomain is defined by:
$(f+g)(x)=f(x)+g(x).$
The pointwise product or pointwise multiplication is:
$(f\cdot g)(x)=f(x)\cdot g(x).$
The pointwise product with a scalar is usually written with the scalar term first. Thus, when $\lambda$ is a scalar:
$(\lambda \cdot f)(x)=\lambda \cdot f(x).$
An example of an operation on functions which is not pointwise is convolution.

### Properties

Pointwise operations inherit such properties as associativity, commutativity and distributivity from corresponding operations on the codomain. If $A$ is some algebraic structure, the set of all functions $X$ to the carrier set of $A$ can be turned into an algebraic structure of the same type in an analogous way.

## Componentwise operations

Componentwise operations are usually defined on vectors, where vectors are elements of the set $K^{n}$ for some natural number $n$ and some field $K$. If we denote the $i$-th component of any vector $v$ as $v_{i}$, then componentwise addition is $(u+v)_{i}=u_{i}+v_{i}$.
Componentwise operations can be defined on matrices. Matrix addition, where $(A+B)_{ij}=A_{ij}+B_{ij}$ is a componentwise operation while matrix multiplication is not.
A tuple can be regarded as a function, and a vector is a tuple. Therefore, any vector $v$ corresponds to the function $f:n\to K$ such that $f(i)=v_{i}$, and any componentwise operation on vectors is the pointwise operation on functions corresponding to those vectors.

## Pointwise relations

In order theory it is common to define a pointwise partial order on functions. With A, B posets, the set of functions A → B can be ordered by defining f ≤ g if (∀x ∈ A) f(x) ≤ g(x). Pointwise orders also inherit some properties of the underlying posets. For instance if A and B are continuous lattices, then so is the set of functions A → B with pointwise order. Using the pointwise order on functions one can concisely define other important notions, for instance:
* A closure operator c on a poset P is a monotone and idempotent self-map on P (i.e. a projection operator) with the additional property that id$_A$ ≤ c, where id is the identity function.
* Similarly, a projection operator k is called a kernel operator if and only if k ≤ id$_A$.
An example of an infinitary pointwise relation is pointwise convergence of functions—a sequence of functions $(f_{n})_{n=1}^{\infty }$ with $f_{n}:X\longrightarrow Y$ converges pointwise to a function f if for each x in X $\lim _{n\to \infty }f_{n}(x)=f(x).$