# Graph mark intersections

**URL:** <https://community.wolfram.com/t/graph-mark-intersections/6150>\
**Category:** Questions\
**Tags:** mathematica, graphics-and-visualization\
**Created:** [July 13, 2015, 9:51am UTC](https://community.wolfram.com/t/graph-mark-intersections/6150 "2015-07-13T09:51:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![claudedax](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@claudedax](https://community.wolfram.com/u/claudedax)\
**Post date:** [July 13, 2015, 9:51am UTC](https://community.wolfram.com/t/graph-mark-intersections/6150/1 "2015-07-13T09:51:40Z")

</div>

Hey guys,  
i wanna create a plot with 3 different functions and mark specific intersection:  
the code is the following:`

```
p = 0.8
epsH = 6
u[x_] := 2*Sqrt[x]
Plot[{Derivative[1][u][1 + b[t]], p, p - (p b[t])/(2 epsH)}, {b[t], 0,
   2 epsH}]`

```

Is there an easy way to mark the intersections. i did it using grids and it does what i want but im not fully satisfied with it. i tried this one here too but did not manage to get it to run. [Curve Intersection: New in Mathematica 10](http://www.wolfram.com/mathematica/new-in-10/basic-and-formula-regions/curve-intersection.html) . The Code for this try is here:

```
p = 0.8
epsH = 6
u[x_] := 2*Sqrt[x]
test2 = Plot[{Derivative[1][u][1 + b[t]], p, 
    p - (p b[t])/(2 epsH)}, {b[t], 0, 2 epsH}];
test = Solve[p == Derivative[1][u][1 + b[t]], b[t]]
test1 = test[[1]]
intersections = {Red, PointSize[Medium], Point[b[t] /. test1]}
Show[Graphics[{test2, intersections}]]

```

Im sure there is a mistake in the Show line but i dont get it. i would be happy about any response how to graph intersections and is that possible for a manipulate graph? here is the code so you see what i mean.

```
p =.
Manipulate[
  Plot[{Derivative[1][u][1 + b[t]], p, p - (p b[t])/(2 epsH)}, {b[t], 
    0, 2 epsH}, PlotLegends -> "First order conditions"], {p, 0.5, 
   0.9}];

```

Thx for all answers in advance

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [July 13, 2015, 1:47pm UTC](https://community.wolfram.com/t/graph-mark-intersections/6150/2 "2015-07-13T13:47:34Z")

</div>

The intersections are given by

```
Solve[u'[1 + x] == p, x]
Solve[p - p x/(2 epsH) == u'[1 + x], x, Reals]

```

You can plot them this way

```
Plot[{Derivative[1][u][1 + b[t]], p, p - (p b[t])/(2 epsH)}, {b[t], 0,
   2 epsH}, 
 Epilog -> {PointSize[Large], 
   Point[{x, u'[1 + x]} /. 
     Join[Solve[u'[1 + x] == p, x], 
      Solve[p - p x/(2 epsH) == u'[1 + x], x, Reals]]]}]

```

---

<div class="post-metadata">

**Author:** ![claudedax](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@claudedax](https://community.wolfram.com/u/claudedax)\
**Post date:** [July 14, 2015, 8:50am UTC](https://community.wolfram.com/t/graph-mark-intersections/6150/3 "2015-07-14T08:50:28Z")

</div>

first ty for your suggestion. this is the result and it looks nice.

 ![graph_intersection.png](https://global.discourse-cdn.com/wolfram/original/3X/f/e/feb36ef6b88906a47fad495bf9dd73f5c4178f58.png)

This is good and i could work with it but honestly i would like to have lines added for the intersection. here is what i mean,

 ![graph_intersection2.png](https://global.discourse-cdn.com/wolfram/original/2X/9/97d55a81208a79a84c2512e6f63fd18296cb07f5.png)

if anyone got an idea to add this please let me know 🙂  
i wish you all a good day
