4
$\begingroup$

Here is just an simple example that I want to use Maple to solve: $$h(x)=f(g(x))$$ $$g(x)=2x+1$$ $$h(x)=4x^2+4x+7$$

Find polynomial of $f(x)$

Thanks :)

2 Answers 2

6

enter image description here

The desire function is the last output as you see. Thanks.

  • 0
    Can you explain a bit at line 3 and 4,please. I know how they work, but I really don't understand why it works right. I'm thinking about your nice solution so much. Thanks :)2012-05-28
  • 0
    @Ilya: Thanks for your consideration, but I think we want the function $f(x)$ in that the composition of $f$ and $g$ becomes $h$.2012-05-28
  • 1
    @hqt: In this problem we should to go the inverse path you walked before for getting $h(x)$. So in line 3, I wanted to get $x$ from $g$ and that is why I named it with $t$ and solve it. In line 4 the reverse path I noted above was completed by using *subs(...)* command.2012-05-28
  • 1
    Perhaps it might be helpful to explain the commands a bit, like does "solve (g(x)=t,x)" always calculate the inverse of the fuction or what does "subs" do.2012-05-28
1

For fun,

> h:=x->4*x^2+4*x+7: > g:=x->2*x+1:  > rsolve( f(g(x)) = h(x), f(x) );                                   2                                 x  + 6 
  • 0
    No. I don't think it's just for fun. it's nice. but I don't know your solution compare to first one (above post) will be same performance or not :)2012-05-28