How to create a 38 Khz pulse with arduino using timer or PWM?

Yes exactly. What word would you use? It's kind of like the second derivative.