np.square(arr1)

Read more of this post