# How to find coefficients to polynomials?

**URL:** <https://community.wolfram.com/t/how-to-find-coefficients-to-polynomials/6708>\
**Category:** Questions\
**Created:** [September 17, 2015, 7:39pm UTC](https://community.wolfram.com/t/how-to-find-coefficients-to-polynomials/6708 "2015-09-17T19:39:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arne](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@arne](https://community.wolfram.com/u/arne)\
**Post date:** [September 17, 2015, 7:39pm UTC](https://community.wolfram.com/t/how-to-find-coefficients-to-polynomials/6708/1 "2015-09-17T19:39:13Z")

</div>

I would like to find coefficients to polynomials, for example,

```
f(x) = ax^2 + bx + c
f(0) = 3
f(1) = 4
f(2) = 7

```

should solve for a, b, c such that f(x) = x^2 + 3 (a=1, b=0, c=3).

Another example:

```
f(x) = ax^3 + bx^2 + cx + d
f(2) = 5
f(0) = 1
f'(2) = 22
f'(0) = 2

```

The solution is 5x^3 - 10x^2 + 2x + 1.

I can solve these kinds of problems by substituting x in the function or its derivative which will give me four linear equations with a, b, c and d, which in turn can easily be solved.

Is it possible to directly express this kind of problem using the WolframAlpha website, without writing down the intermediate manual steps?

---

<div class="post-metadata">

**Author:** ![danl](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/danl/32/41267_2.png) [@danl](https://community.wolfram.com/u/danl)\
**Post date:** [September 17, 2015, 8:23pm UTC](https://community.wolfram.com/t/how-to-find-coefficients-to-polynomials/6708/2 "2015-09-17T20:23:19Z")

</div>

This link to  
[Wolfram|Alpha](http://www.wolframalpha.com/input/?i=%20interpolate%20%7B0,3%7D,%7B1,4%7D,%7B2,7%7D)  
shows one way to do the input.

 ![ScreenShot2015-09-17at4.02.46PM.png](https://global.discourse-cdn.com/wolfram/original/2X/f/fd250b04e632028b267d15472bde1702eae23215.png)

---

<div class="post-metadata">

**Author:** ![arne](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@arne](https://community.wolfram.com/u/arne)\
**Post date:** [September 18, 2015, 12:41pm UTC](https://community.wolfram.com/t/how-to-find-coefficients-to-polynomials/6708/3 "2015-09-18T12:41:50Z")

</div>

that would work for the first example, but not for the second. Is there any way to include the derivatives into the query?
