I'm a little bit of a rookie in using latex. I want to define a function using latex and I'm struggling trying to do that, the function is :


I've tried something but I know it's definitely not correct. Can you help me please?

$f$ : $B_k$ $\longrightarrow$ $B_k$\\
      $x$ &\mapsto$  f\(f_1\(x),f_2(x)\)

You can use this, if it's in-line maths:

 $\begin{aligned}[t] f\colon A &\longrightarrow A\\
                             x &\longmapsto \bigl(f_1(x),f_2(x)\bigr)

If it is a displayed equation, use \begin{align*} ... \end{align*} ine the place of $\begin{aligned}[t] ... \end{aligned}$


I would not use an aligned approach in an inline set. Here is something your can work with:

Let us consider the function
    f\colon A   &\to A,\\
        x       &\mapsto \big(f_1(x), f_2(x)\big). 
Saepe at quas accusamus molestiae possimus consequatur vitae. 
For an inline attempt, I would go with 
$f\colon A \to A,\, x \mapsto \big(f_1(x), f_2(x)\big)$. 
Saepe at quas accusamus molestiae possimus consequatur vitae.

enter image description here

Seriously, you should consider some basic training in TeX, for example https://ctan.org/pkg/lshort-english, https://ctan.org/pkg/short-math-guide or https://ctan.org/pkg/latex-amsmath.

  • 1
    indeed, and i will surely do so, thanks for the help – Ali Az Apr 2 '18 at 18:17

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.