Solving Kernel Ridge Regression with Gradient Descent for a Non-Constant Kernel