Hi In LyX you use branches to accomplish this. In document->settinsg make a new branch, mark the text with the branch tool under insert->branch. When you only want to print the equation deactivate the branch. When you want to print the all, activate the branch.
For more detail see the documentation or on the wiki. Ingar
