1
\begin{equation}
 f (u_p) = f(x)={(f(u_i ),                 d(u_p,u_i)=0 
 argmax_{v \in V} \sum{i=1}^{k} wD(v,f(u_i )) ,& otherwise )}  (5)
\end{equation}

enter image description here

Juan Castaño
  • 28,426
  • 1
    Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Oct 19 '22 at 11:16

2 Answers2

5

You should use the cases environment.

\documentclass{article}
\usepackage{amsmath}

\begin{document} \begin{align} f(u_p) = f(x)= \begin{cases} f(u_i),& d(u_p,u_i)=0 \ \arg\max_{v \in V} \sum_{i=1}^{k} wD(v,f(u_i )), & \textit{otherwise} \end{cases} \end{align} \end{document}

yields enter image description here

Arne
  • 1,305
2

You don't really want to replicate the mistakes, such as the italic “max” and ”otherwise”.

Here are two possibilities, the latter replicates the alignment in the picture using array.

\documentclass{article}
\usepackage{amsmath}

\DeclareMathOperator*{\argmax}{arg,max}

\begin{document}

\begin{equation} f (u_p) = f(x)= \begin{cases} f(u_i), & d(u_p,u_i)=0 \ \argmax_{v \in V} \sum_{i=1}^{k} wD(v,f(u_i)), & \text{otherwise} \end{cases} \end{equation} Alternative, like in the picture \begin{equation} f (u_p) = f(x)= \left{ \begin{array}{@{}l@{}} f(u_i), \hfill d(u_p,u_i)=0 \[1ex] \argmax_{v \in V} \sum_{i=1}^{k} wD(v,f(u_i)), \quad\text{otherwise} \end{array} \right. \end{equation}

\end{document}

enter image description here

egreg
  • 1,121,712