# Question:Solving a Linear System Updated

## Question:Solving a Linear System Updated

Maple
This is a follow up to my previous post. I have a set of equations I need to solve namely: x1''(t) - 3/85 * sin(wt) = -2k1 + k2 x2''(t) = 12/85 * sin(wt)*(k1 - 2k2 + k3) x3''(t) = 12/85 * sin(wt)*(k2 - 2k3 + k4) x4''(t) =12/85 * sin(wt)* (k3 - 2k4 + k5) x5''(t) =12/85 * sin(wt)* (k4 - k5) I tried using the code: eq1 := diff(x1(t), t, t)-(3/85)*sin(w*t) = -2*k1+k2; eq2 := diff(x2(t), t, t) = (12/85)*sin(w*t)*(k1-2*k2+k3); eq3 := diff(x3(t), t, t) = (12/85)*sin(w*t)*(k2-2*k3+k4); eq4 := diff(x4(t), t, t) = (12/85)*sin(w*t)*(k3-2*k4+k5); eq5 := diff(x5(t), t, t) = (12/85)*sin(w*t)*(k4-k5); sol := solve({eq1, eq2, eq3, eq4, eq5}, {k1, k2, k3, k4, k5}) I get an answer but when I check using the code: eval( rhs(eq1)-lhs(eq1), sol ); eval( rhs(eq2)-lhs(eq2), sol ); eval( rhs(eq3)-lhs(eq3), sol ); eval( rhs(eq4)-lhs(eq4), sol ); eval( rhs(eq5)-lhs(eq5), sol ); I do not get zero. How do I solve for k1..k5 in terms of all the other terms? Please help
﻿