-5

How can I create a graph of the forces acting on an object like the one in the picture? enter image description here

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}


\end{tikzpicture}
\end{document}
  • 4
    Like your question http://tex.stackexchange.com/questions/303502/how-i-can-create-a-graph-free-fall-tikz this shows no effort of research –  Apr 17 '16 at 09:51
  • 5
    Questions about how to draw specific graphics that just post an image of the desired result are really not reasonable questions to ask on the site. Please post a minimal compilable document showing that you've tried to produce the image and then people will be happy to help you with any specific problems you may have. See minimal working example (MWE) for what needs to go into such a document. – Ruben Apr 17 '16 at 10:20
  • 3
    You really should try at least something. There are many examples online. If you Google 'force diagram TIkZ', the first result has what you want... – JP-Ellis Apr 17 '16 at 10:54

2 Answers2

12

You could at least fake like you're trying..

enter image description here

\documentclass{standalone}
\usepackage{bm}
\usepackage{tikz}
\usetikzlibrary{patterns,calc}

\begin{document}
\begin{tikzpicture}
    \pattern[pattern=north east lines,thin] (0,0) rectangle (12,-.5    );
    \draw (0,0) -- (12,0);
    \draw[very thick] (3,0) rectangle +(6,3);
    \draw[very thick,blue,->] ($(6,1.5)+(.5,0)$) -- +(5,0) node[very near end,above] {$\bm F$};
    \draw[very thick,red,->] ($(6,1.5)+(-.5,0)$)-- +(-5,0) node[very near end,above] {$\bm F_d$};
    \draw[very thick,green,->] ($(6,1.5)+(0,.5)$)-- +(0,3) node[very near end,right] {$\bm F_n$};
    \draw[very thick,brown,->] ($(6,1.5)+(0,-.5)$) -- +(0,-3) node[very near end,right] {$\bm F_p$};
\end{tikzpicture}
\end{document}
Enlico
  • 2,592
  • The indices on the forces should be upright. Example: $\bm F_n$ should be coded as $\bm F_{\textnormal{n}}$. Read more about this here: link – Michael.H May 31 '22 at 22:09
2

Ok, for the first time help is needed. Enjoy

Output

\documentclass[border = 5mm]{standalone}
\usepackage{tikz}

\begin{document}
    \begin{tikzpicture}[scale=1]
        \draw[dashed,black,fill=red!30, opacity=0.5] (-2,0) -- (2,0) -- (2,3) -- (-2,3) -- cycle;
        \draw[ultra thick,color=black] (-3,0) -- (3,0);
        \draw[thick,->,color=black] (.2,1.5) -- (2.5,1.5) node[above] {$F$};
        \draw[thick,->,color=black] (-.2,1.5) -- (-2.5,1.5) node[above] {$F_d$};
        \draw[thick,->,color=black] (0,1.3)--(0,-1.3) node[right] {$F_p$};
        \draw[thick,->,color=black] (0,1.7)--(0,3.7) node[right] {$F_N$};
    \end{tikzpicture}
\end{document}
M. Al Jumaily
  • 4,035
  • 2
  • 11
  • 26
Olga K
  • 981
  • Same comment here: The indices on the forces should be upright. Example: $\bm F_N$ should be coded as $\bm F_{\textnormal{N}}$. Read more about this here: link – Michael.H May 31 '22 at 22:15