# Plot a solution of NDSolve\[ \]?

**URL:** <https://community.wolfram.com/t/plot-a-solution-of-ndsolve/17852>\
**Category:** Questions\
**Tags:** calculus, graphics-and-visualization\
**Created:** [March 22, 2021, 5:32pm UTC](https://community.wolfram.com/t/plot-a-solution-of-ndsolve/17852 "2021-03-22T17:32:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbainbridge40](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@jbainbridge40](https://community.wolfram.com/u/jbainbridge40)\
**Post date:** [March 22, 2021, 5:32pm UTC](https://community.wolfram.com/t/plot-a-solution-of-ndsolve/17852/1 "2021-03-22T17:32:51Z")

</div>

I am trying to plot the solution to the following ode:

```
x'[t] = x[t]*(1 - x[t])*(1/2 ((1 - (1 - x[t])^5)/x[t] - 3/5)), 
x[0] = 0.5

```

I have attached my code that plots the solution but it doesn’t start at x[0] = 0.5, How can I rectify this?

[NDSolveQ.pdf](https://community.wolfram.com/uploads/short-url/2hHJ9hhyN3MMUzOjBNrbGl6bNhd.pdf) (52.7 KB)

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [March 22, 2021, 5:56pm UTC](https://community.wolfram.com/t/plot-a-solution-of-ndsolve/17852/2 "2021-03-22T17:56:32Z")

</div>

Not sure what you mean. In the plot when `x = 0`, `y = 0.5`. Also in `[Evaluate[x[t] /. o]`, `o` is not defined.

---

<div class="post-metadata">

**Author:** ![jbainbridge40](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@jbainbridge40](https://community.wolfram.com/u/jbainbridge40)\
**Post date:** [March 22, 2021, 10:24pm UTC](https://community.wolfram.com/t/plot-a-solution-of-ndsolve/17852/3 "2021-03-22T22:24:04Z")

</div>

Apologies I was misreading the plot.

---

<div class="post-metadata">

**Author:** ![mariuszi28cg](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mariuszi28cg/32/308_2.png) [@mariuszi28cg](https://community.wolfram.com/u/mariuszi28cg)\
**Post date:** [March 23, 2021, 1:44pm UTC](https://community.wolfram.com/t/plot-a-solution-of-ndsolve/17852/4 "2021-03-23T13:44:31Z")

</div>

Try:

```
sol = NDSolve[{x'[t] == x[t]*(1 - x[t])*(1/2 ((1 - (1 - x[t])^5)/x[t] - 3/5)), x[0] == 1/2}, x, {t, 0, 10}];
Plot[x[t] /. sol, {t, 0, 10}, PlotRange -> {Automatic, {0, 1}}, Epilog -> {Red, PointSize[0.02], Point[{0, 1/2}]}]

```
