Message Boards Message Boards

0
|
12517 Views
|
5 Replies
|
4 Total Likes
View groups...
Share
Share this post:

Solve equations for composite functions?

Posted 6 years ago

Hello Ladies and Gentlemen, Please need instruction, how to enter equations for composite function .

Entered  f(g(1)) : f(x)=x^2+2;g(x)=4x-5 , if copied/pasted into Wolfram/Alpha. This is displayed {f(g(1))/f(x) = x^2 + 2, g(x) = 4 x - 5}.
Entered  f(g(1)),f(x)=x^2+2;g(x)=4x-5 , if copied/pasted into Wolfram/Alpha. This is displayed solve f(x) = x^2 + 2
g(x) = 4 x - 5 for f(x)
g(x).

How to input? Solve for f(g(1)) where f(x)=x^2+2 and g(x)=4x-5 ? if it is correctly entered the and calculated the correct answer should be 3.

Thanks

POSTED BY: malcolm migacz
5 Replies

You need to enter you functions correctly. Also, I forgot some parenthesis around the second example. g[1] took precedence over the composition.

In[1]:= f[x_] := x^2 + 2
 g[x_] := 4 x - 5

In[2]:= f@*g@1

Out[2]= 3

In[3]:= (f@*g)[1]

Out[3]= 3

Regards,

Neil

POSTED BY: Neil Singer
Posted 6 years ago

if f@*g[1] input , then input g(1). need input f(g(x)) need input : f(g(1)) , where f(x)=x^2+3 and g(x)=4x-5 if input correct , then output should calculate: f(g(1)) = 3 This calculation (solution) should be accomplished by WolframAlpha as : not contained in input of the problem.

POSTED BY: malcolm migacz
Posted 6 years ago

If input : f[x] := x^2 + 2 g[x] := 4 x - 5 In[3]:= f[g[1]] Then Input reads : x^2+2g does not give correct input

POSTED BY: malcolm migacz

you can also use the shortcut notation for composition (@*):

f@*g[1]

or

f@*g@1
POSTED BY: Neil Singer
f[x_] := x^2 + 2 
g[x_] := 4 x - 5
In[3]:= f[g[1]] 

Out[3]= 3 
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract