---
jupytext:
    formats: md:myst
    text_representation:
        extension: .md
        format_name: myst
kernelspec:
    display_name: Python 3 (ipykernel)
    language: python
    name: python3
---

# Torsion

**Book: Introduction to Chapter 7, Sections 7.1, 7.3 (excluding Example 7.8) and 7.4**

The general theory for deformation of a beam due to torsion is quite complicated and will not be a subject in this course. However, for the omnipresent solid and hollow cylindrical beams (shafts), the theory is much simpler and will be part of the exam. Examples of cylindrical beams are given in Figures 7.1 (a car transmission) and 7.2 (torsion of coil springs).

We start with the most easy case.

## Torsion of thin-walled cylinders

*The result of this section can be derived quite easily as a special case of the 
solid hollow cylinders in Sections 7.1.2 and 7.1.3.*

```{figure-md} L10-fig1
<img src="Media/L10_Media/L10-fig1.jpg" width="400px">

Schematic representation of a thin-walled cylinder of length $L$ and mean radius $R_{\textrm{m}}$ subjected to a torque $T$. The applied torque produces a shear strain $\phi$ and a relative twist $\theta$. The lower figure shows the unwrapped cylinder wall, where the shear stress $\tau$ acts tangentially, and the angular deformation corresponds to $\theta = \tfrac{TL}{GJ}$ with $J = 2\pi {R_\text{m}}^3 t $.
```

The most important result is: the rotation $\theta$ of the free end relative to the fixed end of a thin-walled cylinder loaded with a moment (or torque) $T$ at the free end (see {numref}`L10-fig1`) is given by:

$$ \displaystyle \theta = \frac{TL}{GJ} \quad \text{with} \quad
\displaystyle J = 2 \pi {R_\text{m}}^3 t \quad (\text{or as we shall see later: } J = \int_{A} r^2 d A ) $$ (eq1-L10)

Since the rotation is proportional to the length we sometimes write:

$$ \dfrac{\theta}L=\frac{T}{GJ} $$ (eq2-L10)

Comparing this to the bending formula $\dfrac1R=\dfrac{M}{EI}\rule[-4mm]{0pt}{4mm}$, we can identify the rotation per unit length $\dfrac{\theta}L$ as the torsion strain and $GJ$ as the torsion stiffness.

## Torsion of solid circular shafts

```{figure-md} L10-fig2
<img src="Media/L10_Media/L10-fig2.jpg" width="350px">

Representation of a solid circular shaft under torsion, modeled as a set of concentric thin-walled cylinders. Each cylindrical layer deforms by shear, producing a uniform twist about the axis $O$, with shear stress $\tau$ acting tangentially at a point $P$ at radius $r$.
```

A solid circular shaft behaves like a set of concentric thin-walled cylinders. See {numref}`L10-fig2`. Using symmetry of a small slice of the shaft (see {numref}`L10-fig3`), it can be shown that plane cross-sections remain plane and radial straight lines remain straight after applying a torsional load.

```{figure-md} L10-fig3
<img src="Media/L10_Media/L10-fig3.jpg" width="400px">

Illustration of warping in a circular shaft under torsion. (a) A shaft element showing surfaces $S_1$ and $S_2$. (b–c) Warping displacement of surface $S_1$, viewed in cross-section and longitudinally. (d–e) Warping displacement of surface $S_2$, showing compatibility between adjacent surfaces. The deformation preserves cross-sectional circularity while allowing axial warping.
```

Consider the solid shaft in Figure 7.9. It is fixed on one side and load with torque $T$ at the other end. On the outer surface we have: $ \text{arc length PP}' =
\tan(\phi_\text{o})L = R_\text{o} \theta$, and using the definition of the shear strain $\gamma_\text{o} = \tan(\phi_\text{o})$, we get $\gamma_\text{o} = {R_\text{o}\theta}/{L}$. On an imaginary concentric cylinder with radius $r$ we find analogously $ \gamma (r) = {r \theta}/{L}$. Applying Hooke's law, the shear stress becomes

$$ \tau (r) = G \gamma (r) = \frac{Gr \theta}{L} $$ (eq3-L10)

The shear stress is a linear function of $r$ and the maximum value of the shear stress is at the outer surface:

$$ \tau_\text{o} = \frac{GR_\text{o}\theta}{L} $$ (eq4-L10)

The total torque $T$ is the sum of the infinitesimal torques $ \delta T=\tau \delta A r$:

$$ T = \int_{A} \tau r \,d A = \frac{G \theta}{L}
\int_{A} r^2 \,dA $$ (eq5-L10)

Defining the polar second moment of area $J$ as

$$J = \int_{A} r^2 dA \Rightarrow J = \int_{0}^{R_\text{o}} 2 \pi
r^3 \,{d}r= \frac\pi2 R_\text{o}^4=\frac\pi{32} D_\text{o}^4 $$(eq6-L10)

we find

$$ T = \frac{GJ \theta}{L}
\quad \text{or} \quad \theta = \frac{TL}{GJ} $$ (eq7-L10)

The shear stress expression becomes $ \tau (r) = {Tr}/{J} $, which is similar to the expression for the bending stresses: $\sigma = - {My}/{I}$.
For the maximum shear stress at the outer surface we have: 

$$ \tau_\text{o}=\tau (r=R_\text{o}) = \frac{TR_\text{o}}{J} $$ (eq8-L10)

which is again similar to the expression for the maximum bending stress:
 
$$ \sigma_\text{max} =
\frac{|Mc|}{I} = \frac{|M|}{S} $$ (eq9-L10)

## Torsion of hollow circular shafts

The arguments used for deriving the expressions for a solid circular shaft also apply to a hollow circular shaft. 
For the polar second moment of area we find for this case:

$$ J = \int_{A} r^2 \,{d}A =
 \int_{R_\text{i}}^{R_\text{o}} 2 \pi r^3 \,{d}r =
 \frac{\pi}{2} ( R_\text{o}^4 - R_\text{i}^4) = \frac{\pi}{32}
 ( D_\text{o}^4 - D_\text{i}^4) \approx 0{,}1 ( D_\text{o}^4 -
 D_\text{i}^4) $$ (eq10-L10)

For a **thin-walled cylinder** we have $ R_\text{i} \approx
R_\text{o} \approx R_\text{m} $ with $R_\text{m}$ the mean radius.
Therefore, we get 

$$ J = \frac{\pi}{2} ( R_\text{o}^4 -
R_\text{i}^4)  = \frac{\pi}{2} ( R_\text{o}^2 +
R_\text{i}^2)(R_\text{o}+R_\text{i})(R_\text{o}-R_\text{i}) \approx
\frac{\pi}{2} (2R_\text{m}^2)(2R_\text{m})t = 2 \pi R_\text{m}^3 t $$ (eq11-L10)

For a wall thickness of 20\% of the inner diameter, the error in $J$ for the thin-walled cylinder
approximation is $1.2\%$. The usefulness of the approximate formula is limited, since the exact one isn't difficult to apply either.
However, it does show that for a constant thickness cylinder $J$ scales with the radius to the power three.


## Nonuniform circular shafts


```{figure-md} L10-fig4
<img src="Media/L10_Media/L10-fig4.jpg" width="400px">

Torsional deformation of composite shafts. The top figure shows two solid shafts of lengths $L_1$, $L_2$ and radii $R_1$, $R_2$, with polar moments of inertia $J_1$, $J_2$, connected in series under an applied torque $T$. The bottom figure shows a solid shaft of length $L_1$ and radius $R_1$ connected to a hollow shaft of length $L_2$ with inner and outer radii, carrying the same torque $T$. The twist is distributed according to $\theta = \tfrac{TL}{GJ}$ for each shaft segment.
```

In the examples given in {numref}`L10-fig4`, the two parts with lengths $L_1$ and $L_2$ have a different value for the polar second moment of area: $J_1$ and $J_2$. The rotation of the cross section at the end is the sum of the separate contribution of the two parts:

$$ \theta = \theta_1 + \theta_2 = \frac{T}{G} \left( \frac{L_1}{J_1} +
\frac{L_2}{J_2} \right) $$ (eq12-L10)

These examples can be generalised to a continuously varying cross section, where
the end rotation is the sum of an infinite number of infinitesimally small contributions: 

$$ \theta = \frac{T}{G}
\int_{0}^{L} \frac{1}{J(z)} \,dz $$ (eq13-L10)

In the example given in Figure 7.16 we find:
 $ J(z) = J(0)(1-\alpha z)^4 = J_1 (1-\alpha z)^4 $, which leads to

$$ \theta = \frac{T}{3 \alpha GJ_1} \left[
\frac{R_1^3}{R_2^3} - 1 \right] \quad \text{and} \quad \tau(z,r)
= \frac{Tr}{J(z)} $$ (eq14-L10)

The maximum shear stress is given by:

$$ \tau_\text{o}(z) = \frac{TR(z)}{J(z)} $$ (eq15-L10)

which is maximal at the outer surface in the smallest cross section.

If the number of unknown reaction torques is equal to one, the torsion problem is **statically determinate**, since there is also one equilibrium equation for the torque. This is explained at the beginning of Section 7.2.

Shafts are often used to transmit power, as in the transmission of a car. The **power** $P$ is defined as the energy transmitted per unit time and is given by $P = T\omega$, where $\omega$ is the rotational speed in radians per unit time.
In SI units $P$ is in Watt, $T$ in Nm and $\omega$ in rad/s (or just $\text{s}^{-1}$). 

**The text in Section 7.2 after Example 7.5 about gears is not part of the exam.**

If the shaft is **statically indeterminate**, the solution is found by considering one or more unknown torsion (reaction) moments and an equal number of additional kinematic conditions for the rotation. This is illustrated in the Example 7.7 of Section 7.3. The second example of that section (Example 7.8) can be skipped.

Examples 7.9 and 7.10 of Section 7.4 show displacements and rotations as a result of **combined bending and torsion**.


<a name="example-L10-1"></a>
`````{admonition} Statically indeterminate torsion
:class: examp dropdown

```{figure-md} L10-fig5
<img src="Media/L10_Media/L10-fig5.jpg" width="500px">

Torsion of a stepped shaft with applied torques. A shaft $AD$ of total length $L$ is fixed at both ends. Torques $T$ are applied at sections $B$ and $C$, located at $L/4$ and $L/2$ from the supports, respectively. The system illustrates equilibrium of internal torques and compatibility of twist, with angular displacements governed by $\theta = \tfrac{TL}{GJ}$.
```

In this problem we are going to assess the shaft that may be seen in {numref}`L10-fig5`. The goal is to find torsion reaction moments at $A$ and $D$, $T(z)$ and $\theta(z)$. The analysisi of $T(z)$ should be done through a torsion moment diagram.

````{admonition} Solution
:class: sol dropdown

```{figure-md} L10-fig6
<img src="Media/L10_Media/L10-fig6.jpg" width="500px">

The torsion of the stepped shaft is isalated where a global equilibrium has been applied.
```



$$
T_A + T_B +T_C+T_D = 0
$$



$$
T_A + T -T+T_D = T_A+T_D = 0 \quad \implies \quad T_D=-T_A 
$$



```{figure-md} L10-fig7
<img src="Media/L10_Media/L10-fig7.jpg" width="500px">

The torsion of the stepped shaft on the analysis of the $AB$ equilibrium.
```



$$
T_A + T_{AB} = 0 \quad \implies \quad T_{AB} = -T_A
$$



$$
\theta_B -\theta_A = \frac{T_{AB}L_{AB}}{GJ} = -\frac{T_A}{GJ}\frac{L}{4}
$$



```{figure-md} L10-fig8
<img src="Media/L10_Media/L10-fig8.jpg" width="500px">

The torsion of the stepped shaft on the analysis of the $AC$ equilibrium.
```

$$
T_A + T+T_{BC} = 0\quad \implies  \quad  T_{BC} = -(T_A+T)
$$



$$
\theta_C -\theta_B = \frac{T_{BC}L_{BC}}{GJ} = -\frac{\left(T_A+T\right)}{GJ}\frac{L}{4}
$$



```{figure-md} L10-fig9
<img src="Media/L10_Media/L10-fig9.jpg" width="500px">

The torsion of the stepped shaft on the analysis of the $CD$ equilibrium.
```



$$
T_{CD}-T_D = 0 \quad \implies \quad  T_{CD} = T_D
$$



$$
\theta_D -\theta_C = \frac{T_{CD}L_{CD}}{GJ} = -\frac{T_A}{GJ}\frac{L}{2}
$$

We thus have found that

$$
\begin{align*}
\theta_B -\theta_A &= -\frac{T_A}{GJ}\frac{L}{4},\\
\theta_C -\theta_B &= -\frac{\left(T_A+T\right)}{GJ}\frac{L}{4},\\
\theta_D -\theta_C &=  -\frac{T_A}{GJ}\frac{L}{2}.
\end{align*}
$$

For the total relative rotation of $D$ against $A$..

$$
\begin{align*}
\theta_D -\theta_A &=  -\frac{L}{4GJ}\left[T_A+(T_A+T)+2T_A\right],\\
\theta_D -\theta_A &=  -\frac{L}{4GJ}\left[4T_A+T\right],\\
&=0.
\end{align*}
$$

With this it can now be shown that $\displaystyle \implies T_A = -\frac{T}{4}$ and hence $\displaystyle T_D = \frac{T}{4}$. 

Now $T_{AB}, T_{BC}$ and $T_{CD}$ can be related to $T$ by

$$
\begin{align*}
T_{AB} &= -T_A = \frac{1}{4}T,\\
T_{BC} &= -(T_A+T) = -\frac{3}{4}T,\\
T_{CD} &= -T_A = \frac{1}{4}T.
\end{align*}
$$

From here the torsion moment diagram can be restructed which is shown in {numref}`L10-fig10` below. 

```{figure-md} L10-fig10
<img src="Media/L10_Media/L10-fig10.jpg" width="500px">

Torsion moment diagram for the stepped shaft.
```

```{figure-md} L10-fig11
<img src="Media/L10_Media/L10-fig11.jpg" width="500px">

Relative rotation of $\theta$ with respect to each shaft equilibrium.
```

Now for the relative rotation $\theta(z)$ which may be analysed on basis of {numref}`L10-fig11` by....



$$
\theta_B -\theta_A = \frac{T_{AB}L_{AB}}{GJ} = \frac{TL}{16GJ} \quad \implies \quad \theta_B = \frac{TL}{16GJ}
$$



$$
\theta_C -\theta_B = \frac{T_{BC}L_{BC}}{GJ} = -\frac{3TL}{16GJ} \quad \implies \quad \theta_C = -\frac{TL}{8GJ}
$$



$$
\theta_D -\theta_C = \frac{T_{CD}L_{CD}}{GJ} = \frac{TL}{8GJ} \quad \implies \quad \theta_D = 0
$$



From here we may also graph the $z$ coordinate as a function of the angle $theta$. This is shown in {numref}`L10-fig12` below.

```{figure-md} L10-fig12
<img src="Media/L10_Media/L10-fig12.jpg" width="500px">

$z$ as a function of $\theta$ for the stepped shaft.
```

To find the relation between $T_D$ and $T$ we set a superposition between $\theta_D$ and $\theta_A$ where we get 

$$
\begin{align*}
    \theta_D -\theta_A &= \frac{1}{GJ}\left(\frac{TL}{4}-\frac{TL}{2}+T_DL\right),\\
    &= \frac{L}{GJ}\left(-\frac{T}{4}+T_DL\right) =0 \quad \implies \quad T_D = \frac{T}{4}.
\end{align*}
$$

Below in {numref}`L10-fig13` is a complimentary overview of $z$ as a function of $\theta$ for each segment.

```{figure-md} L10-fig13
<img src="Media/L10_Media/L10-fig13.jpg" width="500px">

$z$ as a function of $\theta$ for the stepped shaft split into each equilibrium segment.
```

````

`````


<a name="example-L10-2"></a>
`````{admonition} Combined bending and torsion
:class: examp dropdown


```{figure-md} L10-fig14
<img src="Media/L10_Media/L10-fig14.jpg" width="500px">

Cantilevered L-shaped circular rod with arms of length $L$ and diameter $D$, fixed at $A$, kink at $B$, and a vertical tip load $F$ applied at the free end $C$; deformation involves coupled bending and torsion of the two legs.
```

A L-shaped cantilever may be seen in {numref}`L10-fig14` above. $E$ and $\nu$ are known material constants. What is the amount by which $C$ moves down?



````{admonition} Solution
:class: sol dropdown



```{figure-md} L10-fig15
<img src="Media/L10_Media/L10-fig15.jpg" width="400px">

First (left) split off segment from the entire L shaped cantilever.
```

```{figure-md} L10-fig16
<img src="Media/L10_Media/L10-fig16.jpg" width="400px">

Second (right) split off segment from the entire L shaped cantilever.
```
We split the L-shaped cantilerver into a left ({see {numref}`L10-fig15`}) and a right (see {numref}`L10-fig16`) part. Regarding the left part we can assess that....

$$
\theta= \frac{TL}{GJ}=\frac{FL^2}{GJ}
$$



$$
\upsilon_B = -\frac{FL^3}{3EI}
$$

From the right part (see {numref}`L10-fig16`) we get

$$
\begin{align*}
    \upsilon_C&= \upsilon_B-\theta L-\frac{FL^3}{3EI},\\
    &= -\frac{2FL^3}{3EI}-\frac{FL^3}{GJ}.
\end{align*}
$$

Now for $\upsilon_v$....

$$
\upsilon_C= -\frac{2FL^3}{3EI} -\frac{FL^3}{GJ} 
$$


$$
I= \frac{\pi D^4}{64}
$$


$$
J= \frac{\pi D^4}{32} = 2I
$$

$$
E = 2G (1+\nu)
$$

Where now these relations may be filled into $\upsilon_c$ to find that 

$$
\upsilon_C= -FL^3 \left[\frac{2}{3EI} +\frac{2(1+\nu)}{E}\frac{1}{2I} \right] = - \frac{FL^3}{EI}\left(\frac{5}{3}+\nu\right).
$$


````



`````




## Additional Video

This video by The Efficient Engineer provides a comprehensive visual breakdown of torsion in shafts. It begins with the fundamental definition of torque and demonstrates how it causes torsional deformation (angle of twist) and shear strain. A key focus is the derivation of the torsion formula ($\tau = T\rho / J$), which relates shear stress to the applied torque and the polar moment of inertia. The video also explores how to analyze shafts with multiple applied torques and explains the distinct failure modes for ductile and brittle materials under torsion. This video is non mandatory and is purely to give a different perspective on the topic.

<div class="video-wrapper">
  <iframe width="560" height="315" 
    src="https://www.youtube.com/embed/1YTKedLQOa0" 
    frameborder="0" 
    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" 
    allowfullscreen>
  </iframe>
</div>



## Quiz
### Question 1

```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L10_quizzes/q1.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions, shuffle_answers=True)
```

### Question 2

```{figure-md} L10-figQ2
<img src="Media/Quizzes/L10_quiz/quiz2.png" width="600px">

Figure for question below.
```


```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L10_quizzes/q2.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions, shuffle_answers=True)
```
### Question 3


```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L10_quizzes/q3.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions, shuffle_answers=True)
```


### Question 4

```{figure-md} L10-figQ4
<img src="Media/Quizzes/L10_quiz/quiz4.png" width="500px">

Figure for question below.
```

```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L10_quizzes/q4.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions, shuffle_answers=True)
```

### Question 5

```{figure-md} L10-figQ5
<img src="Media/Quizzes/L10_quiz/quiz5.png" width="500px">

Figure for question below.
```

```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L10_quizzes/q5.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions, shuffle_answers=True)
```

### Question 6

```{figure-md} L10-figQ6
<img src="Media/Quizzes/L10_quiz/quiz6.png" width="600px">

Figure for question below.
```


```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L10_quizzes/q6.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions, shuffle_answers=True)
```

### Question 7

```{figure-md} L10-figQ7
<img src="Media/Quizzes/L10_quiz/quiz7.png" width="600px">

Figure for question below.
```


```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L10_quizzes/q7.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions, shuffle_answers=True)
```


### Question 8

```{figure-md} L10-figQ8
<img src="Media/Quizzes/L10_quiz/quiz8.PNG" width="500px">

Figure for question below.
```


```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L10_quizzes/q8.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions, shuffle_answers=True)
```

### Question 9

```{figure-md} L10-figQ9
<img src="Media/Quizzes/L10_quiz/quiz9.png" width="500px">

Figure for question below.
```


```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L10_quizzes/q9.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions, shuffle_answers=True)
```


### Question 10

```{figure-md} L10-figQ10
<img src="Media/Quizzes/L10_quiz/quiz10.png" width="600px">

Figure for question below.
```


```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L10_quizzes/q10.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions, shuffle_answers=True)
```
