Math is used in art all the time.
One example is the work of Leonardo Da Vinci. Da Vinci created a lot of his art according to the Golden Ratio, such as in two of his most famous pieces: The Mona Lisa and The Vitruvian Man.
In art, The Golden Ratio is a proportion that is said to be aesthetically pleasing. The Golden Rectangle is used in many places in the Mona Lisa, the face being one of them.
Another example is the famous painting The Sacrament of the Last Supper by Salvador Dali, which also uses the Golden Rectangle compositionally.
M. C. Escher’s work used mathematics and geometry. A lot of his pieces were tessellations.
Many of his works used impossible objects like the Penrose Triangle. Impossible objects are optical illusions consisting of a 2-dimensional figure that look 3-dimensional, but are impossible to actually exist.