# Need help solving an equation

**URL:** <https://community.wolfram.com/t/need-help-solving-an-equation/24677>\
**Category:** Questions\
**Tags:** algebra, equation-solving\
**Created:** [October 18, 2024, 1:36pm UTC](https://community.wolfram.com/t/need-help-solving-an-equation/24677 "2024-10-18T13:36:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![melkersjolin05](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@melkersjolin05](https://community.wolfram.com/u/melkersjolin05)\
**Post date:** [October 18, 2024, 1:36pm UTC](https://community.wolfram.com/t/need-help-solving-an-equation/24677/1 "2024-10-18T13:36:02Z")

</div>

This may be kinda easy, but i need help to solve a function with p(x)=ax+b, p(-1)=3, i have tried but can’t seem to fix it.

```
Solve[{ax+b}, x=-1 {a,b},x]

```

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [October 18, 2024, 6:11pm UTC](https://community.wolfram.com/t/need-help-solving-an-equation/24677/2 "2024-10-18T18:11:00Z")

</div>

I don’t quite understand you, but here is something that may be relevant:

```
p[x_] := a x + b;
Solve[p[-1] == 3]

```
