Improving Neural Network Training using Dynamic Learning Rate Schedule for PINNs and Image Classification