# Question:How to write an expression with indices?

## Question:How to write an expression with indices?

Maple 18

I have the following expresion:

G_{ik}=|u_{i} - u_{k}|-(u_{i}-u_{k})^2

Where i, k=1,2,3,4. How can I write this expresion in maple? I want to be able to write G_{1 2} and in the RHS $$the i and the k substitutes into 1 and 2 respectively.$$

﻿