The word 'discipline' here is used in relation to 'physical chastisement' (cf. "instruction" in verse 1), which is viewed as essential for the upbringing of a child. The contrast between 'hate' and 'love' points to the importance of the wisdom attached to it (cf. Proverbs 20:30; 23:13–14).
