Calculus, 10th Edition (Anton)

A second-order differential equation is an equation whose highest derivative is the second derivative. $(\frac{dy}{dx})^2$ is not the second derivative, it is the first derivative squared. The highest derivative is first, making it a first-order differential equation.