# Passing a function from Math Response to Graph

**URL:** <https://cl.desmos.com/t/passing-a-function-from-math-response-to-graph/8850>\
**Category:** Questions\
**Tags:** graph, function-sink\
**Created:** [October 1, 2026, 4:55am UTC](https://cl.desmos.com/t/passing-a-function-from-math-response-to-graph/8850 "2026-10-01T04:55:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Smithmath](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/smithmath/32/4065_2.png) [@Smithmath](https://cl.desmos.com/u/Smithmath)\
**Post date:** [October 1, 2026, 4:55am UTC](https://cl.desmos.com/t/passing-a-function-from-math-response-to-graph/8850/1 "2026-10-01T04:55:36Z")

</div>

Sorry of this is already somewhere in another post. I promise I looked first..

I am trying to get the function submitted in a Math Response into a Graph component (and see the result). I’m sure I missing/doing something trivial. Any help is appreciated.

> **[Passing a function in CL • Activity by Mark Smith](https://classroom.amplify.com/activity/6abde6fd6c74bf8b4fc6387f?utm_campaign=share&utm_content=activity)**
>
> Trying to pass a function defined in a Math Response to a Graph.

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [October 1, 2026, 6:24pm UTC](https://cl.desmos.com/t/passing-a-function-from-math-response-to-graph/8850/2 "2026-10-01T18:24:18Z")

</div>

I don’t think you’re missing anything as far as I can figure. Seems like the sink isn’t working correctly. Investigating…

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [October 1, 2026, 7:04pm UTC](https://cl.desmos.com/t/passing-a-function-from-math-response-to-graph/8850/3 "2026-10-01T19:04:02Z")

</div>

Okay. I’d forgotten there is some frustrating functionality here (no pun intended). Two options:

1. Keep the function in the graph, but remove the `=...` (this can make it difficult to restyle your function’s display) OR
2. Add another line `y=f(x)` with the formatting the way you want it to display

Don’t ask me why it work that way, but that should fix your issue.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/f/f5bd144684474e9a2f333002cde9840e52c5dbd3.png) [@system](https://cl.desmos.com/u/system)\
**Post date:** [October 3, 2026, 7:04pm UTC](https://cl.desmos.com/t/passing-a-function-from-math-response-to-graph/8850/4 "2026-10-03T19:04:15Z")

</div>

Closed on October 3, 2026, 7:04pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
