Give a brief explanation that how a NOT gate is realised using NAND gate

If the inputs of NAND gate are joined together, then the NAND gate functions as NOT gate. Thus,