DSolve[n^2*JacobiDN[x, k]^2*y[x] + (k^2*JacobiCN[x, k]*JacobiSN[x, k]*Derivative[1][y][x])/JacobiDN[x, k] + Derivative[2][y][x] == 0,y[x],x]