wrapfigureを使用してサブセクションを画像の直下に移動し、空白を削除する方法

wrapfigureを使用してサブセクションを画像の直下に移動し、空白を削除する方法

さまざまな回答を読んで解決策を試しましたが、問題の解決策にたどり着けませんでした。私のドキュメントでは、左側に画像があり、右側に画像のすぐ隣に数式があり、画像と数式の下に新しいセクションがあります。

\documentclass[12pt][report]
\usepackage{graphicx}
\usepackage{mathptmx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{wrapfig}

\begin{document}

\subsubsection{My first section}
\begin{wrapfigure}{l}{0.40\textwidth}
\centering
\includegraphics[width=0.40\textwidth]{triangular.png}
\caption{Triangular MF}
\end{wrapfigure}

\begin{equation}
    triangle(x; a,b,c)=\begin{cases}
        0, x<a.\\
        \dfrac{x-a}{b-a}, a \leqslant x \leqslant b.\\
        \dfrac{c-x}{c-b}, b \leqslant x \leqslant c.\\
        0, c \leqslant x
    \end{cases}
\end{equation}

\subsection{A section the goes directly under the image}

\end{document}

しかし、ページの左側にある画像の下に余白が多すぎるようで、私のセクションは右側に書かれています。

を使ってみたのです\begin{wrapfigure}[3]{L}{0.40\textwidth}が、画像の下に通常のテキストがある場合はうまく機能しますが、セクションを画像のすぐ下に配置する場合は機能しません。

セクションを画像とそのキャプションの真下に配置するにはどうすればよいですか? または、画像の下の空白を削除して、左から右に通常どおり書き続けるにはどうすればよいですか?

ここに画像の説明を入力してください

関連情報