# Use solve command to determine a shift value for graph?

**URL:** <https://community.wolfram.com/t/use-solve-command-to-determine-a-shift-value-for-graph/13171>\
**Category:** Questions\
**Tags:** calculus, equation-solving, graphics-and-visualization\
**Created:** [October 11, 2018, 9:07pm UTC](https://community.wolfram.com/t/use-solve-command-to-determine-a-shift-value-for-graph/13171 "2018-10-11T21:07:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daviskeanufi](https://avatars.discourse-cdn.com/v4/letter/d/96bed5/32.png) [@daviskeanufi](https://community.wolfram.com/u/daviskeanufi)\
**Post date:** [October 11, 2018, 9:07pm UTC](https://community.wolfram.com/t/use-solve-command-to-determine-a-shift-value-for-graph/13171/1 "2018-10-11T21:07:10Z")

</div>

Hello,

I have created a code for my graph: Manipulate[Plot[E^-2 x Cos[Pi x] + c, {x, -3, 4}], {c, 0, 3}]  
Using the sliders, it appears that F[x] must be shifted up approximately 2.12341 units up in order to pass through the point (1,2).  
However, I would like to know how to use the solve command to determine what the exact shift value is for the graph to pass through (1,2).  
I have already tried looking up the Mathematica solve command, but I could only find articles for other equations and none that could help me in this case.

Thank you.

 ![Screen Shot 2018-10-11 at 2.06.54 PM.png](https://global.discourse-cdn.com/wolfram/original/3X/a/7/a77e56e44c55196f9af78180878bb1010b6a38bd.png)

---

<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:** [October 11, 2018, 9:32pm UTC](https://community.wolfram.com/t/use-solve-command-to-determine-a-shift-value-for-graph/13171/2 "2018-10-11T21:32:53Z")

</div>

for x=1 function should be equal to 2.

```
   eq = E^-2 x Cos[Pi x] + c == 2;
   sol = Solve[eq /. x -> 1, c]
   (* {{c -> (1 + 2 E^2)/E^2}} *)
   %//N
   (* {{c -> 2.13534}} *)

   (eq /. x -> 1) /. sol
   (* {True} *)

```

---

<div class="post-metadata">

**Author:** ![daviskeanufi](https://avatars.discourse-cdn.com/v4/letter/d/96bed5/32.png) [@daviskeanufi](https://community.wolfram.com/u/daviskeanufi)\
**Post date:** [October 11, 2018, 9:50pm UTC](https://community.wolfram.com/t/use-solve-command-to-determine-a-shift-value-for-graph/13171/3 "2018-10-11T21:50:08Z")

</div>

Mariusz, I really really appreciate you and your help as always… very kind of you.

Thanks again.
