2

I'm a new LaTeX user and I need to draw a graph that looks like this at short notice. I have no idea where to start, please can someone help me out?

enter image description here

8

Here is a start.

\documentclass[tikz,border=3mm]{standalone}
\begin{document}
\begin{tikzpicture}[bullet/.style={circle,fill,inner sep=1pt}]
 \draw[-stealth] (-5,0) -- (8,0) node[below left]{$\omega$};
 \draw[-stealth] (0,-4) -- (0,4) node[below left]{$D$};
 \draw[dashed] (-5,-2) -- (8,-2) node[midway,above]{$m$};
 \draw (-3.5,-2) --++ (5.5,5.5)node[above right] {$A$} 
    to[out=-60,in=180] node[pos=0.1,bullet,label=below left:$A_1$](A1){}
    node[pos=0.2,bullet,label=below left:$A_2$](A2){}   ++ (5.5,-5.5);
 \draw[<->] (3.4,0|-A1)--(3.4,0|-A2);
 \draw (-4.5,-2) --++ (5.5,5.5) node[above right] {$B$} 
 to[out=-60,in=180] node[pos=0.7,bullet,label=below left:$B_1$](B1){}
    node[pos=0.8,bullet,label=below left:$B_2$](B2){} ++ (5.5,-5.5);
 \draw[<->] (3.2,0|-B1)--(3.2,0|-B2);
\end{tikzpicture}
\end{document}

enter image description here

  • 1
    Of course your answer is perfect, but if the dashed line actually represents an aymptote and looking at the OP graph, I would extend the two lines to indicate "A function can cut an asymptote". – manooooh Nov 2 '19 at 14:50
  • 1
    @manooooh In that case one needs to move the dashed line down by a tiny bit and use, say, in=179 instead of in=180. – Schrödinger's cat Nov 2 '19 at 14:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.