If you are detected, you do not have much time before you fail! Quickly use worm software (the hand icon on the action screen when hacking) on the point directly below the red column when it is being 'traced'. Then use nuke software or regular capture to get the target locations on the right hand side of the hacking screen. If you don't have enough nukes and have a worm software or 2, use one nuke to capture the node directly below the 'red column' (which is where the trace starts once you have been detected). My advice is to use all your nukes to get the nodes if you have that many.
The 3rd one is really tricky to do without Nuke or Worm software, even for someone like me who has maxed out Hacking: Capture and Hacking: Stealth. In order to triangulate her position, you need to hack 3 relay stations.