# How to represent an integral equation over a pulse duration of a circuit in latex?

I would like to represent the following integral equation using latex. The square pulse in the integral denotes a square pulse of a clock. Can anyone suggest me how I can use the square pulse here? That is the only problem I am having while writing the equation. • The package ifsym provides \PulseHigh – egreg Apr 28 '17 at 9:55
• You might also consider \int I_{tot}(t) p(t) dt, where p(t) is your pulse profile. – bers Apr 28 '17 at 10:26

With ifsym:

\documentclass{article}
\usepackage{amsmath, amssymb}
\usepackage{moresize}
\usepackage[electronic]{ifsym}

\begin{document}

$E_{\text{dyn}} = V_{\text{DD}} \underset{\textbf{\ssmall\PulseHigh}}{\int} I_{\text{tot}(t)\,\mathrm dt-P_{\text{stat}\cdot T} )}$%

\end{document} • Hi, probabily there are any errors for your code in relation to the image. – Sebastiano Apr 28 '17 at 10:34

If you don't mind using TikZ, here is an ad-hoc solution. Otherwise, you can use the ifsym package as pointed out by @egreg, but, the documentation is in German.

\documentclass{article}
\usepackage{tikz,amsmath}

\begin{document}

\newcommand{\pulse}{%
\begin{tikzpicture}[line width=.7pt,scale=.3]
\draw (0,0)--++(.3,0)--++(0,.5)--++(.5,0)--++(0,-.5)--++(.3,0);
\end{tikzpicture}
}

\begin{equation}
E_\text{dyn}=V_\text{DD}\int\limits_{\pulse} I_\text{tot}(t)-P_\text{stat}\cdot T
\end{equation}

\end{document} You could use the ifsym package (but it only provides bitmap fonts) or draw yourself the symbol. Equation (1) below shows the hand-made symbol, equation (2) uses ifsym. If you go for method (1), loading ifsym is unnecessary, but pict2e is.

One should note that the symbols provided by ifsym are for text, so if used in math they have to be surrounded by \text.

\documentclass{article}
\usepackage{amsmath}

\usepackage{pict2e}
\usepackage[electronic]{ifsym}

\DeclareRobustCommand{\pulse}{%
\text{%
\settoheight{\unitlength}{T}%
\begin{picture}(2.2,1)
\roundcap
\polyline(0.1,0)(0.6,0)(0.6,1)(1.6,1)(1.6,0)(2.1,0)
\end{picture}%
}%
}

\begin{document}

\begin{equation}
E_{\mathrm{dyn}} =
V_{\mathrm{DD}}\int\limits_{\pulse} I_{\mathrm{tot}}(t)\,dt
- P_{\mathrm{stat}}\cdot T
\end{equation}

\begin{equation}
E_{\mathrm{dyn}} =
V_{\mathrm{DD}}\int\limits_{\text{\PulseHigh}} I_{\mathrm{tot}}(t)\,dt
- P_{\mathrm{stat}}\cdot T
\end{equation}

\end{document}
{"ft_lang_label":"__label__en","ft_lang_prob":0.5181424,"math_prob":0.9898733,"size":1089,"snap":"2019-51-2020-05","text_gpt3_token_len":405,"char_repetition_ratio":0.13271889,"word_repetition_ratio":0.016528925,"special_character_ratio":0.33700642,"punctuation_ratio":0.12903225,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9998041,"pos_list":[0,1,2,3,4,5,6,7,8],"im_url_duplicate_count":[null,1,null,1,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-23T14:13:10Z\",\"WARC-Record-ID\":\"<urn:uuid:40bb7369-8395-45da-b9d2-6d3a210fe52f>\",\"Content-Length\":\"151698\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7cd0a6a2-827c-464d-b79d-6b90e8bcb530>\",\"WARC-Concurrent-To\":\"<urn:uuid:1b8b3bb0-b1b9-43f7-8111-b6a43c58d72e>\",\"WARC-IP-Address\":\"151.101.65.69\",\"WARC-Target-URI\":\"https://tex.stackexchange.com/questions/367172/how-to-represent-an-integral-equation-over-a-pulse-duration-of-a-circuit-in-late\",\"WARC-Payload-Digest\":\"sha1:N7IGO6J5RU7SDKDTFZIENEFFPHK2NY67\",\"WARC-Block-Digest\":\"sha1:M7Y3FF6UXL3Q4ZD3CLESMWLLMNO4XXY5\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579250610919.33_warc_CC-MAIN-20200123131001-20200123160001-00555.warc.gz\"}"}