Lets say you had the compound inequality
which describes x being anything between 5 and 7, including both endpoints. This is the interval from 5 to 7.
To write this in interval notation, we would write [5, 7]
The square brackets mean "include the endpoint"
If we had something like
then we would write (5, 7]. Note how I'm using a curved parenthesis to exclude the endpoint 5.
If we exclude 7, but keep 5, then we will go from
to [5, 7)
Finally,
converts to (5,7) and we're excluding both endpoints. Unfortunately this last example is identical to ordered pair (x,y) point notation. So be sure not to mix up those two concepts.
--------------------
In short, interval notation is where we list the endpoints of the interval, and use parenthesis or brackets to exclude or include the endpoint.