Ask Your Question
0

Plot the solution of a system of equations

asked 2020-10-21 05:07:25 -0600

geroyx gravatar image

With

a,b,c,d,e,x = var('a b c d e x')
f(x)=a*x^4+b*x^3+c*x^2+d*x+e
f1(x)=diff(f(x),x)
f2(x)=diff(f(x),x,2)
solve([f(0)==-3, f(2)==0, f2(4)==0, f1(6)==0, f(6)==4], a,b,c,d,e)

I get [[a == (-7/432), b == (43/216), c == (-5/6), d == (5/2), e == -3]]

How can I plot f(x) with these values?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2020-10-21 05:26:31 -0600

rburing gravatar image
sols = solve([f(0)==-3, f(2)==0, f2(4)==0, f1(6)==0, f(6)==4], a,b,c,d,e)
plot(f.subs(sols[0]),(x,0,6))

image description

edit flag offensive delete link more

Comments

TYVM. Helps me good. ;)

geroyx gravatar imagegeroyx ( 2020-10-21 05:56:23 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-10-21 05:07:25 -0600

Seen: 33 times

Last updated: Oct 21