Question: in matlab plz part d only Required File: Program_12_1.m Use symbolic expressions to complete the problem pictured below. Use the pretty() function to display your
in matlab plz part d only


Required File: Program_12_1.m Use symbolic expressions to complete the problem pictured below. Use the pretty() function to display your final answers for parts a,b, and c. Please ensure your output matches the example output. 350 Chapter 11: Symbolic Math 11.10 PROBLEMS 1. Define x as a symbolic variable and create the two symbolic expressions: S1=(x4)2(x+3)2+16x4andS2=x36x2x+30 Use symbolic operations to determine the simplest form of following expressions: a) S1S2. b) S2S1. c) S1+S2. d) Use the subs command to evaluate the numerical value of the result from part c for x=2. Example Output Output for Program_12_1 written by Geoff Berl. OriginalSymbolicEquations:S1=16x(x+3)2+(x4)24S2=x36x2x+30Parta:S1*S2S1S2=(16x(x+3)2+(x4)24)(x+6x2x330)collect(S1xS2)=2x49x320x2+57x+90pretty(S1xS2)2x49x320x2+57x+90 Part b: S1/S2 S1divS2 = (16x(x+3)2+(x4)24)/(x3+6x2+x30) simple(S1/S2) S1divS2 = (2x+3)/(x3+6x2+x30) pretty(S1/S2) 2x+3 x+6x+x30 ------------- Part c: S1+S2 ----------------- S1plusS2 = 15x(x+3)2+(x4)26x2+x3+26 expand (S1+S2) S1plusS2 = x36x2+x+33 pretty(S1+S2) 32 x6x+x+33 ------ Part d: subs(S1plusS2,x,2) S1plusS2_x_eq_2 = 19
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
