Appendix
A-4: Algebraic Expressions and Operations
Example A-4.2
Obtain the sum of the coefficients of x3 and x4 in the sum of 2 x−a4 x+a2 and 3 x−15.
Solution
Interactive Solution
Enter the sum (ensuring a space between the factors) and press the Enter key.
Context Panel: Expand
Context Panel: Collect≻x
2 x−a4 x+a2+3 x−15
2⁢x−a4⁢x+a2+3⁢x−15
= expand
a6−6⁢a5⁢x+9⁢a4⁢x2+8⁢a3⁢x3−24⁢a2⁢x4+16⁢x6+243⁢x5−405⁢x4+270⁢x3−90⁢x2+15⁢x−1
= collect w.r.t. x
16⁢x6+243⁢x5+−24⁢a2−405⁢x4+8⁢a3+270⁢x3+9⁢a4−90⁢x2+−6⁢a5+15⁢x+a6−1
Sum of the coefficients of x3 and x4 by control-drag (or copy/paste). Press the Enter key.
270+8⁢a3+−24⁢a2−405
−135+8⁢a3−24⁢a2
Coded Solution
Assign the sum to q1.
q1≔2 x−a4⋅x+a2+3 x−15
Apply the expand command.
q2≔expandq1
Apply the collect command.
q3≔collectq2,x
Use the coeff command.
coeffq3,x,3+coeffq3,x,4
<< Previous Example Section A-4 Next Example >>
© Maplesoft, a division of Waterloo Maple Inc., 2024. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
Download Help Document