How can I attach an arrow with text to some part of an equation?

|
|
|
Here's something to get you started using Andrew Stacey's Adding a large brace next to a body of text
MWE
The idea is to add nodes to your expression, and then connect them as you see fit. The main tool is And if you want the right angled line
then you can use something like
|
|||||
|
|
This had to be fine tuned but it is completely general and requires no tikz. It's in plain TeX, but it should work with LaTeX after minor edits. The idea is to manually position boxes to form an arrow with the specified shape ( The MWE:
Update: MWE in LaTeX:
|
||||
|
|