# How can we save & extract Derivatives from the Solver in Julia?

**URL:** <https://discourse.julialang.org/t/how-can-we-save-extract-derivatives-from-the-solver-in-julia/124667>\
**Category:** General Usage\
**Created:** [January 11, 2025, 10:23am UTC](https://discourse.julialang.org/t/how-can-we-save-extract-derivatives-from-the-solver-in-julia/124667 "2025-01-11T10:23:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![abraemer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abraemer/32/51403_2.png) [@abraemer](https://discourse.julialang.org/u/abraemer)\
**Post date:** [January 12, 2025, 4:19pm UTC](https://discourse.julialang.org/t/how-can-we-save-extract-derivatives-from-the-solver-in-julia/124667/2 "2025-01-12T16:19:49Z")

</div>

Does this help you or are you looking for something else?

> [@DifferentialEquations and derivatives of solutions?](https://discourse.julialang.org/t/differentialequations-and-derivatives-of-solutions/49995/3):
>
> You just add a second argument with the order of derivative you want: julia\> begin using DifferentialEquations f(u,p,t) = 1.1\*u u0 = 1/2 tspan = (0.0,1.0) prob = ODEProblem(f,u0,tspan) sol = solve(prob, Tsit5(), reltol=1e-10, abstol=1e-10) end; julia\> sol(1.0) # solution at t = 1.0 1.50208301197696 julia\> sol(1.0, Val{1}) ) # First derivative of the solution at t = 1.0 1.6522913131746269 julia\> 1.1 \* sol(1.0) ≈ sol(1.0…

---

_[View the full topic](https://discourse.julialang.org/t/how-can-we-save-extract-derivatives-from-the-solver-in-julia/124667)._
