Define partial derivatives