Batman Math Equation

How to draw Batman symbol with only math formula

While browsing the internet, I stumbled upon something interesting. You recognize the image below, right?

Batman Icon
Batman Icon

Yes, that’s the legendary Batman symbol. Did you know that this symbol can be formed using a non-linear mathematical equation? Just imagine how long the quadratic equation would have to be to create a perfect and symmetrical Batman symbol.

In this post, I’ll show you the formula.

Let’s get straight to the point—here is the equation that forms the Batman symbol (commonly known as the Batman Curve Equation) that I found:

2 sqrt(-abs(abs(x)-1)*abs(3-abs(x))/((abs(x)-1)*(3-abs(x))))(1+abs(abs(x)-3)/(abs(x)-3))sqrt(1-(x/7)^2)+(5+0.97(abs(x-.5)+abs(x+.5))-3(abs(x-.75)+abs(x+.75)))(1+abs(1-abs(x))/(1-abs(x)))

,-3sqrt(1-(x/7)^2)sqrt(abs(abs(x)-4)/(abs(x)-4))

,abs(x/2)-0.0913722(x^2)-3+sqrt(1-(abs(abs(x)-2)-1)^2)

,(2.71052+(1.5-.5abs(x))-1.35526sqrt(4-(abs(x)-1)^2))sqrt(abs(abs(x)-1)/(abs(x)-1))+0.9

Want to see the result? It’s easy—just copy and paste the equation above into google.com and you’ll see the result, just like the image below.

Batman Curve Equation
Batman Curve Equation

I also made a video to visualize this Batman math equation.

As usual, thanks for reading and see you next time!


This is a rewrite of my old blog post of the same title, with more proper language.