Where about am I getting the mistake...

package com.codegym.task.task06.task0609;
/*
Distance between two points
*/
import java.lang.*;
public class Util {
public static double getDistance(int x1, int y1, int x2, int y2) {
//write your code here
double d = Math.sqrt(Math.pow(x1,2) - Math.pow(x2,2)) + (Math.pow(y1,2) - Math.pow(y2,2));
return d;
}
public static void main(String[] args) {
Util.getDistance(1,4,5,1);
}
}

](x1-x2)^2+(y1-y2)^2